From 7a642dfc0ffaca8a27f82edb5a34e9da1a569a24 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 24 Mar 2026 19:03:23 +0000 Subject: [PATCH 1/6] feat: add folders and teamFolders related changes to v1 docs: A comment for field `force` in message `.google.cloud.dataform.v1.DeleteRepositoryRequest` is changed PiperOrigin-RevId: 888723444 Source-Link: https://github.com/googleapis/googleapis/commit/29214fa04adfdf39cab5cfc0f08b27b23fcfae1a Source-Link: https://github.com/googleapis/googleapis-gen/commit/5125e3feaf76ea66810c0c5f59607f21b0aaba76 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxLy5Pd2xCb3QueWFtbCIsImgiOiI1MTI1ZTNmZWFmNzZlYTY2ODEwYzBjNWY1OTYwN2YyMWIwYWFiYTc2In0= --- .../google-cloud-dataform-v1/.gitignore | 22 + .../.repo-metadata.json | 17 + .../google-cloud-dataform-v1/.rubocop.yml | 33 + .../google-cloud-dataform-v1/.toys.rb | 28 + .../google-cloud-dataform-v1/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../google-cloud-dataform-v1/CHANGELOG.md | 2 + .../google-cloud-dataform-v1/Gemfile | 14 + .../google-cloud-dataform-v1/LICENSE.md | 201 + .../google-cloud-dataform-v1/README.md | 154 + .../google-cloud-dataform-v1/Rakefile | 169 + .../gapic_metadata.json | 383 + .../google-cloud-dataform-v1.gemspec | 30 + .../lib/google-cloud-dataform-v1.rb | 22 + .../lib/google/cloud/dataform/v1.rb | 45 + .../cloud/dataform/v1/bindings_override.rb | 75 + .../lib/google/cloud/dataform/v1/dataform.rb | 57 + .../cloud/dataform/v1/dataform/client.rb | 7794 +++++++++++++++++ .../cloud/dataform/v1/dataform/credentials.rb | 48 + .../cloud/dataform/v1/dataform/operations.rb | 841 ++ .../cloud/dataform/v1/dataform/paths.rb | 311 + .../google/cloud/dataform/v1/dataform/rest.rb | 55 + .../cloud/dataform/v1/dataform/rest/client.rb | 7248 +++++++++++++++ .../dataform/v1/dataform/rest/operations.rb | 925 ++ .../dataform/v1/dataform/rest/service_stub.rb | 4636 ++++++++++ .../google/cloud/dataform/v1/dataform_pb.rb | 216 + .../cloud/dataform/v1/dataform_services_pb.rb | 234 + .../lib/google/cloud/dataform/v1/rest.rb | 38 + .../lib/google/cloud/dataform/v1/version.rb | 28 + .../lib/google/longrunning.rb | 41 + .../google/longrunning/bindings_override.rb | 71 + .../lib/google/longrunning/operations.rb | 59 + .../google/longrunning/operations/client.rb | 952 ++ .../longrunning/operations/credentials.rb | 40 + .../longrunning/operations/operations.rb | 837 ++ .../lib/google/longrunning/operations/rest.rb | 57 + .../longrunning/operations/rest/client.rb | 776 ++ .../longrunning/operations/rest/operations.rb | 921 ++ .../operations/rest/service_stub.rb | 322 + .../lib/google/longrunning/rest.rb | 34 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 473 + .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../google/cloud/dataform/v1/dataform.rb | 3308 +++++++ .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/expr.rb | 75 + .../proto_docs/google/type/interval.rb | 45 + .../google-cloud-dataform-v1/snippets/Gemfile | 32 + .../dataform/cancel_workflow_invocation.rb | 47 + .../dataform/commit_repository_changes.rb | 47 + .../dataform/commit_workspace_changes.rb | 47 + .../compute_repository_access_token_status.rb | 47 + .../dataform/create_compilation_result.rb | 47 + .../snippets/dataform/create_folder.rb | 47 + .../dataform/create_release_config.rb | 47 + .../snippets/dataform/create_repository.rb | 47 + .../snippets/dataform/create_team_folder.rb | 47 + .../dataform/create_workflow_config.rb | 47 + .../dataform/create_workflow_invocation.rb | 47 + .../snippets/dataform/create_workspace.rb | 47 + .../snippets/dataform/delete_folder.rb | 47 + .../snippets/dataform/delete_folder_tree.rb | 54 + .../dataform/delete_release_config.rb | 47 + .../snippets/dataform/delete_repository.rb | 47 + .../snippets/dataform/delete_team_folder.rb | 47 + .../dataform/delete_team_folder_tree.rb | 54 + .../dataform/delete_workflow_config.rb | 47 + .../dataform/delete_workflow_invocation.rb | 47 + .../snippets/dataform/delete_workspace.rb | 47 + .../snippets/dataform/fetch_file_diff.rb | 47 + .../dataform/fetch_file_git_statuses.rb | 47 + .../dataform/fetch_git_ahead_behind.rb | 47 + .../dataform/fetch_remote_branches.rb | 47 + .../dataform/fetch_repository_history.rb | 51 + .../dataform/get_compilation_result.rb | 47 + .../snippets/dataform/get_config.rb | 47 + .../snippets/dataform/get_folder.rb | 47 + .../snippets/dataform/get_iam_policy.rb | 47 + .../snippets/dataform/get_release_config.rb | 47 + .../snippets/dataform/get_repository.rb | 47 + .../snippets/dataform/get_team_folder.rb | 47 + .../snippets/dataform/get_workflow_config.rb | 47 + .../dataform/get_workflow_invocation.rb | 47 + .../snippets/dataform/get_workspace.rb | 47 + .../snippets/dataform/install_npm_packages.rb | 47 + .../dataform/list_compilation_results.rb | 51 + .../snippets/dataform/list_release_configs.rb | 51 + .../snippets/dataform/list_repositories.rb | 51 + .../dataform/list_workflow_configs.rb | 51 + .../dataform/list_workflow_invocations.rb | 51 + .../snippets/dataform/list_workspaces.rb | 51 + .../snippets/dataform/make_directory.rb | 47 + .../snippets/dataform/move_directory.rb | 47 + .../snippets/dataform/move_file.rb | 47 + .../snippets/dataform/move_folder.rb | 54 + .../snippets/dataform/move_repository.rb | 54 + .../snippets/dataform/pull_git_commits.rb | 47 + .../snippets/dataform/push_git_commits.rb | 47 + .../query_compilation_result_actions.rb | 51 + .../dataform/query_directory_contents.rb | 51 + .../dataform/query_folder_contents.rb | 51 + .../query_repository_directory_contents.rb | 51 + .../dataform/query_team_folder_contents.rb | 51 + .../dataform/query_user_root_contents.rb | 51 + .../query_workflow_invocation_actions.rb | 51 + .../snippets/dataform/read_file.rb | 47 + .../snippets/dataform/read_repository_file.rb | 47 + .../snippets/dataform/remove_directory.rb | 47 + .../snippets/dataform/remove_file.rb | 47 + .../dataform/reset_workspace_changes.rb | 47 + .../snippets/dataform/search_files.rb | 51 + .../snippets/dataform/search_team_folders.rb | 51 + .../snippets/dataform/set_iam_policy.rb | 47 + .../snippets/dataform/test_iam_permissions.rb | 47 + .../snippets/dataform/update_config.rb | 47 + .../snippets/dataform/update_folder.rb | 47 + .../dataform/update_release_config.rb | 47 + .../snippets/dataform/update_repository.rb | 47 + .../snippets/dataform/update_team_folder.rb | 47 + .../dataform/update_workflow_config.rb | 47 + .../snippets/dataform/write_file.rb | 47 + .../snippets/operations/cancel_operation.rb | 47 + .../snippets/operations/delete_operation.rb | 47 + .../snippets/operations/get_operation.rb | 54 + .../snippets/operations/list_operations.rb | 51 + .../snippets/operations/wait_operation.rb | 54 + ...pet_metadata_google.cloud.dataform.v1.json | 2935 +++++++ .../snippet_metadata_google.longrunning.json | 215 + .../dataform/v1/dataform_operations_test.rb | 400 + .../cloud/dataform/v1/dataform_paths_test.rb | 211 + .../cloud/dataform/v1/dataform_rest_test.rb | 4148 +++++++++ .../google/cloud/dataform/v1/dataform_test.rb | 4668 ++++++++++ .../longrunning/operations_operations_test.rb | 400 + .../longrunning/operations_rest_test.rb | 319 + .../google/longrunning/operations_test.rb | 433 + .../google-cloud-dataform-v1/test/helper.rb | 26 + 144 files changed, 50593 insertions(+) create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.gitignore create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.toys.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.yardopts create mode 100644 owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/README.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/Rakefile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/version.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/helper.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/.gitignore b/owl-bot-staging/google-cloud-dataform-v1/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json new file mode 100644 index 000000000000..637d61a979b2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_id": "dataform.googleapis.com", + "api_shortname": "dataform", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest", + "distribution_name": "google-cloud-dataform-v1", + "is_cloud": true, + "language": "ruby", + "name": "dataform", + "name_pretty": "Dataform V1 API", + "product_documentation": "https://cloud.google.com/dataform/docs/overview", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details.", + "ruby-cloud-product-url": "https://cloud.google.com/dataform/docs/overview", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml new file mode 100644 index 000000000000..6f84a6d0a78b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-dataform-v1.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-dataform-v1.rb" diff --git a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/.yardopts b/owl-bot-staging/google-cloud-dataform-v1/.yardopts new file mode 100644 index 000000000000..f98df5dcdd6e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Dataform V1 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md new file mode 100644 index 000000000000..91f83b42e5fa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-dataform-v1 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-dataform-v1 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/dataform/v1" + +client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/dataform/v1" + +::Google::Longrunning::Operations::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Longrunning::Operations::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-dataform-v1 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/dataform/v1" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Longrunning::Operations::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-dataform-v1/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataform-v1/README.md b/owl-bot-staging/google-cloud-dataform-v1/README.md new file mode 100644 index 000000000000..bd989cf181ba --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Dataform V1 API + +Service to develop, version control, and operationalize SQL pipelines in BigQuery. + +Service to develop, version control, and operationalize SQL pipelines in BigQuery. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Dataform V1 API. Most users should consider using +the main client gem, +[google-cloud-dataform](https://rubygems.org/gems/google-cloud-dataform). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-dataform-v1 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/dataform.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/dataform/v1" + +client = ::Google::Longrunning::Operations::Client.new +request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...) +response = client.list_operations request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/dataform/docs/overview) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/dataform/v1" +require "logger" + +client = ::Google::Longrunning::Operations::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-dataform`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-dataform-v1`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-dataform`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-dataform-v1`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataform-v1/Rakefile b/owl-bot-staging/google-cloud-dataform-v1/Rakefile new file mode 100644 index 000000000000..5a65a0a061e8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-dataform-v1 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["GOOGLE_CLOUD_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/longrunning/operations/credentials" + ::Google::Longrunning::Operations::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["GOOGLE_CLOUD_PROJECT"] = project + ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project + ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-dataform-v1 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataform-v1 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataform-v1 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-dataform-v1 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-dataform-v1" + header "google-cloud-dataform-v1 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-dataform-v1 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-dataform-v1 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-dataform-v1 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-dataform-v1 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json new file mode 100644 index 000000000000..da5082c37f30 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json @@ -0,0 +1,383 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.cloud.dataform.v1", + "libraryPackage": "::Google::Cloud::Dataform::V1", + "services": { + "Dataform": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataform::V1::Dataform::Client", + "rpcs": { + "GetTeamFolder": { + "methods": [ + "get_team_folder" + ] + }, + "CreateTeamFolder": { + "methods": [ + "create_team_folder" + ] + }, + "UpdateTeamFolder": { + "methods": [ + "update_team_folder" + ] + }, + "DeleteTeamFolder": { + "methods": [ + "delete_team_folder" + ] + }, + "DeleteTeamFolderTree": { + "methods": [ + "delete_team_folder_tree" + ] + }, + "QueryTeamFolderContents": { + "methods": [ + "query_team_folder_contents" + ] + }, + "SearchTeamFolders": { + "methods": [ + "search_team_folders" + ] + }, + "GetFolder": { + "methods": [ + "get_folder" + ] + }, + "CreateFolder": { + "methods": [ + "create_folder" + ] + }, + "UpdateFolder": { + "methods": [ + "update_folder" + ] + }, + "DeleteFolder": { + "methods": [ + "delete_folder" + ] + }, + "DeleteFolderTree": { + "methods": [ + "delete_folder_tree" + ] + }, + "QueryFolderContents": { + "methods": [ + "query_folder_contents" + ] + }, + "QueryUserRootContents": { + "methods": [ + "query_user_root_contents" + ] + }, + "MoveFolder": { + "methods": [ + "move_folder" + ] + }, + "ListRepositories": { + "methods": [ + "list_repositories" + ] + }, + "GetRepository": { + "methods": [ + "get_repository" + ] + }, + "CreateRepository": { + "methods": [ + "create_repository" + ] + }, + "UpdateRepository": { + "methods": [ + "update_repository" + ] + }, + "DeleteRepository": { + "methods": [ + "delete_repository" + ] + }, + "MoveRepository": { + "methods": [ + "move_repository" + ] + }, + "CommitRepositoryChanges": { + "methods": [ + "commit_repository_changes" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "read_repository_file" + ] + }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "query_repository_directory_contents" + ] + }, + "FetchRepositoryHistory": { + "methods": [ + "fetch_repository_history" + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "methods": [ + "compute_repository_access_token_status" + ] + }, + "FetchRemoteBranches": { + "methods": [ + "fetch_remote_branches" + ] + }, + "ListWorkspaces": { + "methods": [ + "list_workspaces" + ] + }, + "GetWorkspace": { + "methods": [ + "get_workspace" + ] + }, + "CreateWorkspace": { + "methods": [ + "create_workspace" + ] + }, + "DeleteWorkspace": { + "methods": [ + "delete_workspace" + ] + }, + "InstallNpmPackages": { + "methods": [ + "install_npm_packages" + ] + }, + "PullGitCommits": { + "methods": [ + "pull_git_commits" + ] + }, + "PushGitCommits": { + "methods": [ + "push_git_commits" + ] + }, + "FetchFileGitStatuses": { + "methods": [ + "fetch_file_git_statuses" + ] + }, + "FetchGitAheadBehind": { + "methods": [ + "fetch_git_ahead_behind" + ] + }, + "CommitWorkspaceChanges": { + "methods": [ + "commit_workspace_changes" + ] + }, + "ResetWorkspaceChanges": { + "methods": [ + "reset_workspace_changes" + ] + }, + "FetchFileDiff": { + "methods": [ + "fetch_file_diff" + ] + }, + "QueryDirectoryContents": { + "methods": [ + "query_directory_contents" + ] + }, + "SearchFiles": { + "methods": [ + "search_files" + ] + }, + "MakeDirectory": { + "methods": [ + "make_directory" + ] + }, + "RemoveDirectory": { + "methods": [ + "remove_directory" + ] + }, + "MoveDirectory": { + "methods": [ + "move_directory" + ] + }, + "ReadFile": { + "methods": [ + "read_file" + ] + }, + "RemoveFile": { + "methods": [ + "remove_file" + ] + }, + "MoveFile": { + "methods": [ + "move_file" + ] + }, + "WriteFile": { + "methods": [ + "write_file" + ] + }, + "ListReleaseConfigs": { + "methods": [ + "list_release_configs" + ] + }, + "GetReleaseConfig": { + "methods": [ + "get_release_config" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "create_release_config" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "update_release_config" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "delete_release_config" + ] + }, + "ListCompilationResults": { + "methods": [ + "list_compilation_results" + ] + }, + "GetCompilationResult": { + "methods": [ + "get_compilation_result" + ] + }, + "CreateCompilationResult": { + "methods": [ + "create_compilation_result" + ] + }, + "QueryCompilationResultActions": { + "methods": [ + "query_compilation_result_actions" + ] + }, + "ListWorkflowConfigs": { + "methods": [ + "list_workflow_configs" + ] + }, + "GetWorkflowConfig": { + "methods": [ + "get_workflow_config" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "create_workflow_config" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "update_workflow_config" + ] + }, + "DeleteWorkflowConfig": { + "methods": [ + "delete_workflow_config" + ] + }, + "ListWorkflowInvocations": { + "methods": [ + "list_workflow_invocations" + ] + }, + "GetWorkflowInvocation": { + "methods": [ + "get_workflow_invocation" + ] + }, + "CreateWorkflowInvocation": { + "methods": [ + "create_workflow_invocation" + ] + }, + "DeleteWorkflowInvocation": { + "methods": [ + "delete_workflow_invocation" + ] + }, + "CancelWorkflowInvocation": { + "methods": [ + "cancel_workflow_invocation" + ] + }, + "QueryWorkflowInvocationActions": { + "methods": [ + "query_workflow_invocation_actions" + ] + }, + "GetConfig": { + "methods": [ + "get_config" + ] + }, + "UpdateConfig": { + "methods": [ + "update_config" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec new file mode 100644 index 000000000000..76010660b167 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec @@ -0,0 +1,30 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/dataform/v1/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-dataform-v1" + gem.version = Google::Cloud::Dataform::V1::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details." + gem.summary = "Service to develop, version control, and operationalize SQL pipelines in BigQuery." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "google-cloud-location", "~> 1.0" + gem.add_dependency "google-iam-v1", "~> 1.3" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb new file mode 100644 index 000000000000..015820e39535 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/dataform/v1" +# require "google/longrunning" diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb new file mode 100644 index 000000000000..7a6071098191 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataform/v1/dataform" +require "google/cloud/dataform/v1/version" + +module Google + module Cloud + module Dataform + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/dataform/v1" + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/dataform/v1" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module V1 + end + end + end +end + +helper_path = ::File.join __dir__, "v1", "_helpers.rb" +require "google/cloud/dataform/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb new file mode 100644 index 000000000000..655e4a1eab49 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" + +module Google + module Cloud + module Dataform + ## + # @example Loading just the REST part of this package, including all its services, and instantiating a REST client + # + # require "google/cloud/dataform/v1/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module V1 + ## + # @private + # Initialize the mixin bindings configuration + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + + default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config + default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ + + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}/locations", + matches: [ + ["name", %r{^projects/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config + end + yield @configure if block_given? + @configure + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb new file mode 100644 index 000000000000..ac1adbd0da42 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" + +require "google/cloud/dataform/v1/dataform/credentials" +require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/operations" +require "google/cloud/dataform/v1/dataform/client" +require "google/cloud/dataform/v1/dataform/rest" + +module Google + module Cloud + module Dataform + module V1 + ## + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataform/v1/dataform" + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataform/v1/dataform/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module Dataform + end + end + end + end +end + +helper_path = ::File.join __dir__, "dataform", "helpers.rb" +require "google/cloud/dataform/v1/dataform/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb new file mode 100644 index 000000000000..632bdd44803f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb @@ -0,0 +1,7794 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/location" +require "google/iam/v1" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + ## + # Client for the Dataform service. + # + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dataform_stub + + ## + # Configure the Dataform Client class. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Dataform clients + # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dataform_stub.universe_domain + end + + ## + # Create a new Dataform client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Dataform client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/cloud/dataform/v1/dataform_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @dataform_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataform::V1::Dataform::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @dataform_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder&.name + header_params["team_folder.name"] = request.team_folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder + header_params["team_folder"] = request.team_folder + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.folder&.name + header_params["folder.name"] = request.folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.folder + header_params["folder"] = request.folder + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. + # + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Folder to a new Folder, TeamFolder, or the root location. + # + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Repositories in a given project and location. + # + # **Note:** *This method can return repositories not shown in the [Dataform + # UI](https://console.cloud.google.com/bigquery/dataform)*. + # + # @overload list_repositories(request, options = nil) + # Pass arguments to `list_repositories` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_repositories` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + # + # # Call the list_repositories method. + # result = client.list_repositories request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + # p item + # end + # + def list_repositories request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_repositories.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_repositories.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Repository. + # + # @overload get_repository(request, options = nil) + # Pass arguments to `get_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_repository(name: nil) + # Pass arguments to `get_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + # + # # Call the get_repository method. + # result = client.get_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def get_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Repository in a given project and location. + # + # @overload create_repository(request, options = nil) + # Pass arguments to `create_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_repository(parent: nil, repository: nil, repository_id: nil) + # Pass arguments to `create_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to create. + # @param repository_id [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + # + # # Call the create_repository method. + # result = client.create_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def create_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Repository. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_repository(request, options = nil) + # Pass arguments to `update_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_repository(update_mask: nil, repository: nil) + # Pass arguments to `update_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + # + # # Call the update_repository method. + # result = client.update_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def update_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.repository&.name + header_params["repository.name"] = request.repository.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Repository. + # + # @overload delete_repository(request, options = nil) + # Pass arguments to `delete_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_repository(name: nil, force: nil) + # Pass arguments to `delete_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param force [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + # + # # Call the delete_repository method. + # result = client.delete_repository request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit to a Repository. The Repository must not have a value + # for `git_remote_settings.url`. + # + # @overload commit_repository_changes(request, options = nil) + # Pass arguments to `commit_repository_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) + # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] + # Required. The changes to commit to the repository. + # @param required_head_commit_sha [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + # + # # Call the commit_repository_changes method. + # result = client.commit_repository_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + # p result + # + def commit_repository_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.commit_repository_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.commit_repository_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Repository). The Repository + # must not have a value for `git_remote_settings.url`. + # + # @overload read_repository_file(request, options = nil) + # Pass arguments to `read_repository_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) + # Pass arguments to `read_repository_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @param path [::String] + # Required. Full file path to read including filename, from repository root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + # + # # Call the read_repository_file method. + # result = client.read_repository_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + # p result + # + def read_repository_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.read_repository_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.read_repository_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Repository directory. The Repository must + # not have a value for `git_remote_settings.url`. + # + # @overload query_repository_directory_contents(request, options = nil) + # Pass arguments to `query_repository_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + # + # # Call the query_repository_directory_contents method. + # result = client.query_repository_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_repository_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's history of commits. The Repository must not have a + # value for `git_remote_settings.url`. + # + # @overload fetch_repository_history(request, options = nil) + # Pass arguments to `fetch_repository_history` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param page_size [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + # + # # Call the fetch_repository_history method. + # result = client.fetch_repository_history request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + # p item + # end + # + def fetch_repository_history request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_repository_history.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_repository_history.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Computes a Repository's Git access token status. + # + # @overload compute_repository_access_token_status(request, options = nil) + # Pass arguments to `compute_repository_access_token_status` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload compute_repository_access_token_status(name: nil) + # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + # + # # Call the compute_repository_access_token_status method. + # result = client.compute_repository_access_token_status request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + # p result + # + def compute_repository_access_token_status request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, + metadata: metadata, + retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's remote branches. + # + # @overload fetch_remote_branches(request, options = nil) + # Pass arguments to `fetch_remote_branches` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_remote_branches(name: nil) + # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + # + # # Call the fetch_remote_branches method. + # result = client.fetch_remote_branches request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + # p result + # + def fetch_remote_branches request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_remote_branches.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_remote_branches.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Workspaces in a given Repository. + # + # @overload list_workspaces(request, options = nil) + # Pass arguments to `list_workspaces` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workspaces` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + # + # # Call the list_workspaces method. + # result = client.list_workspaces request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + # p item + # end + # + def list_workspaces request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workspaces.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workspaces.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Workspace. + # + # @overload get_workspace(request, options = nil) + # Pass arguments to `get_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workspace(name: nil) + # Pass arguments to `get_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + # + # # Call the get_workspace method. + # result = client.get_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def get_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Workspace in a given Repository. + # + # @overload create_workspace(request, options = nil) + # Pass arguments to `create_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) + # Pass arguments to `create_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] + # Required. The workspace to create. + # @param workspace_id [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + # + # # Call the create_workspace method. + # result = client.create_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def create_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Workspace. + # + # @overload delete_workspace(request, options = nil) + # Pass arguments to `delete_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workspace(name: nil) + # Pass arguments to `delete_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + # + # # Call the delete_workspace method. + # result = client.delete_workspace request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Installs dependency NPM packages (inside a Workspace). + # + # @overload install_npm_packages(request, options = nil) + # Pass arguments to `install_npm_packages` via a request object, either of type + # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload install_npm_packages(workspace: nil) + # Pass arguments to `install_npm_packages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + # + # # Call the install_npm_packages method. + # result = client.install_npm_packages request + # + # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + # p result + # + def install_npm_packages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.install_npm_packages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, + metadata: metadata, + retry_policy: @config.rpcs.install_npm_packages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pulls Git commits from the Repository's remote into a Workspace. + # + # @overload pull_git_commits(request, options = nil) + # Pass arguments to `pull_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) + # Pass arguments to `pull_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + # + # # Call the pull_git_commits method. + # result = client.pull_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + # p result + # + def pull_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.pull_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, + metadata: metadata, + retry_policy: @config.rpcs.pull_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pushes Git commits from a Workspace to the Repository's remote. + # + # @overload push_git_commits(request, options = nil) + # Pass arguments to `push_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload push_git_commits(name: nil, remote_branch: nil) + # Pass arguments to `push_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + # + # # Call the push_git_commits method. + # result = client.push_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + # p result + # + def push_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.push_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, + metadata: metadata, + retry_policy: @config.rpcs.push_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git statuses for the files in a Workspace. + # + # @overload fetch_file_git_statuses(request, options = nil) + # Pass arguments to `fetch_file_git_statuses` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_file_git_statuses(name: nil) + # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + # + # # Call the fetch_file_git_statuses method. + # result = client.fetch_file_git_statuses request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + # p result + # + def fetch_file_git_statuses request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git ahead/behind against a remote branch. + # + # @overload fetch_git_ahead_behind(request, options = nil) + # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) + # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + # + # # Call the fetch_git_ahead_behind method. + # result = client.fetch_git_ahead_behind request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + # p result + # + def fetch_git_ahead_behind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit for uncommitted files in a Workspace. + # + # @overload commit_workspace_changes(request, options = nil) + # Pass arguments to `commit_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) + # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The commit's author. + # @param commit_message [::String] + # Optional. The commit's message. + # @param paths [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + # + # # Call the commit_workspace_changes method. + # result = client.commit_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + # p result + # + def commit_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.commit_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.commit_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a Git reset for uncommitted files in a Workspace. + # + # @overload reset_workspace_changes(request, options = nil) + # Pass arguments to `reset_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) + # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param paths [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @param clean [::Boolean] + # Optional. If set to true, untracked files will be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + # + # # Call the reset_workspace_changes method. + # result = client.reset_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + # p result + # + def reset_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.reset_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.reset_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git diff for an uncommitted file in a Workspace. + # + # @overload fetch_file_diff(request, options = nil) + # Pass arguments to `fetch_file_diff` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_file_diff(workspace: nil, path: nil) + # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + # + # # Call the fetch_file_diff method. + # result = client.fetch_file_diff request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + # p result + # + def fetch_file_diff request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_file_diff.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_file_diff.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Workspace directory. + # + # @overload query_directory_contents(request, options = nil) + # Pass arguments to `query_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `query_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + # + # # Call the query_directory_contents method. + # result = client.query_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Finds the contents of a given Workspace directory by filter. + # + # @overload search_files(request, options = nil) + # Pass arguments to `search_files` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `search_files` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param page_size [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param filter [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + # + # # Call the search_files method. + # result = client.search_files request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + # p item + # end + # + def search_files request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_files.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_files.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_files.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :search_files, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_files, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a directory inside a Workspace. + # + # @overload make_directory(request, options = nil) + # Pass arguments to `make_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload make_directory(workspace: nil, path: nil) + # Pass arguments to `make_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + # + # # Call the make_directory method. + # result = client.make_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + # p result + # + def make_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.make_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.make_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.make_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a directory (inside a Workspace) and all of its contents. + # + # @overload remove_directory(request, options = nil) + # Pass arguments to `remove_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_directory(workspace: nil, path: nil) + # Pass arguments to `remove_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + # + # # Call the remove_directory method. + # result = client.remove_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + # p result + # + def remove_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a directory (inside a Workspace), and all of its contents, to a new + # location. + # + # @overload move_directory(request, options = nil) + # Pass arguments to `move_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_directory(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @param new_path [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + # + # # Call the move_directory method. + # result = client.move_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + # p result + # + def move_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Workspace). + # + # @overload read_file(request, options = nil) + # Pass arguments to `read_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload read_file(workspace: nil, path: nil, revision: nil) + # Pass arguments to `read_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param revision [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadFileRequest.new + # + # # Call the read_file method. + # result = client.read_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + # p result + # + def read_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.read_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.read_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.read_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :read_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a file (inside a Workspace). + # + # @overload remove_file(request, options = nil) + # Pass arguments to `remove_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_file(workspace: nil, path: nil) + # Pass arguments to `remove_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + # + # # Call the remove_file method. + # result = client.remove_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + # p result + # + def remove_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a file (inside a Workspace) to a new location. + # + # @overload move_file(request, options = nil) + # Pass arguments to `move_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_file(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param new_path [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFileRequest.new + # + # # Call the move_file method. + # result = client.move_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + # p result + # + def move_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Writes to a file (inside a Workspace). + # + # @overload write_file(request, options = nil) + # Pass arguments to `write_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload write_file(workspace: nil, path: nil, contents: nil) + # Pass arguments to `write_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file. + # @param contents [::String] + # Required. The file's contents. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::WriteFileRequest.new + # + # # Call the write_file method. + # result = client.write_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + # p result + # + def write_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.write_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.write_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.write_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :write_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ReleaseConfigs in a given Repository. + # + # @overload list_release_configs(request, options = nil) + # Pass arguments to `list_release_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_release_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + # + # # Call the list_release_configs method. + # result = client.list_release_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + # p item + # end + # + def list_release_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_release_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_release_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single ReleaseConfig. + # + # @overload get_release_config(request, options = nil) + # Pass arguments to `get_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_release_config(name: nil) + # Pass arguments to `get_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + # + # # Call the get_release_config method. + # result = client.get_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def get_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ReleaseConfig in a given Repository. + # + # @overload create_release_config(request, options = nil) + # Pass arguments to `create_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) + # Pass arguments to `create_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to create. + # @param release_config_id [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + # + # # Call the create_release_config method. + # result = client.create_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def create_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single ReleaseConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_release_config(request, options = nil) + # Pass arguments to `update_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_release_config(update_mask: nil, release_config: nil) + # Pass arguments to `update_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + # + # # Call the update_release_config method. + # result = client.update_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def update_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.release_config&.name + header_params["release_config.name"] = request.release_config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ReleaseConfig. + # + # @overload delete_release_config(request, options = nil) + # Pass arguments to `delete_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_release_config(name: nil) + # Pass arguments to `delete_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + # + # # Call the delete_release_config method. + # result = client.delete_release_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CompilationResults in a given Repository. + # + # @overload list_compilation_results(request, options = nil) + # Pass arguments to `list_compilation_results` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_compilation_results` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + # + # # Call the list_compilation_results method. + # result = client.list_compilation_results request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + # p item + # end + # + def list_compilation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_compilation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_compilation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single CompilationResult. + # + # @overload get_compilation_result(request, options = nil) + # Pass arguments to `get_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_compilation_result(name: nil) + # Pass arguments to `get_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + # + # # Call the get_compilation_result method. + # result = client.get_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def get_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new CompilationResult in a given project and location. + # + # @overload create_compilation_result(request, options = nil) + # Pass arguments to `create_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_compilation_result(parent: nil, compilation_result: nil) + # Pass arguments to `create_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] + # Required. The compilation result to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + # + # # Call the create_compilation_result method. + # result = client.create_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def create_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns CompilationResultActions in a given CompilationResult. + # + # @overload query_compilation_result_actions(request, options = nil) + # Pass arguments to `query_compilation_result_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param filter [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + # + # # Call the query_compilation_result_actions method. + # result = client.query_compilation_result_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + # p item + # end + # + def query_compilation_result_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowConfigs in a given Repository. + # + # @overload list_workflow_configs(request, options = nil) + # Pass arguments to `list_workflow_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + # + # # Call the list_workflow_configs method. + # result = client.list_workflow_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + # p item + # end + # + def list_workflow_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workflow_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workflow_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowConfig. + # + # @overload get_workflow_config(request, options = nil) + # Pass arguments to `get_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workflow_config(name: nil) + # Pass arguments to `get_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + # + # # Call the get_workflow_config method. + # result = client.get_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def get_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowConfig in a given Repository. + # + # @overload create_workflow_config(request, options = nil) + # Pass arguments to `create_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) + # Pass arguments to `create_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to create. + # @param workflow_config_id [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + # + # # Call the create_workflow_config method. + # result = client.create_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def create_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single WorkflowConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_workflow_config(request, options = nil) + # Pass arguments to `update_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_workflow_config(update_mask: nil, workflow_config: nil) + # Pass arguments to `update_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + # + # # Call the update_workflow_config method. + # result = client.update_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def update_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workflow_config&.name + header_params["workflow_config.name"] = request.workflow_config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowConfig. + # + # @overload delete_workflow_config(request, options = nil) + # Pass arguments to `delete_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workflow_config(name: nil) + # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + # + # # Call the delete_workflow_config method. + # result = client.delete_workflow_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowInvocations in a given Repository. + # + # @overload list_workflow_invocations(request, options = nil) + # Pass arguments to `list_workflow_invocations` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + # + # # Call the list_workflow_invocations method. + # result = client.list_workflow_invocations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + # p item + # end + # + def list_workflow_invocations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workflow_invocations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workflow_invocations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowInvocation. + # + # @overload get_workflow_invocation(request, options = nil) + # Pass arguments to `get_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workflow_invocation(name: nil) + # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + # + # # Call the get_workflow_invocation method. + # result = client.get_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def get_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowInvocation in a given Repository. + # + # @overload create_workflow_invocation(request, options = nil) + # Pass arguments to `create_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) + # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] + # Required. The workflow invocation resource to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + # + # # Call the create_workflow_invocation method. + # result = client.create_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def create_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowInvocation. + # + # @overload delete_workflow_invocation(request, options = nil) + # Pass arguments to `delete_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workflow_invocation(name: nil) + # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + # + # # Call the delete_workflow_invocation method. + # result = client.delete_workflow_invocation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests cancellation of a running WorkflowInvocation. + # + # @overload cancel_workflow_invocation(request, options = nil) + # Pass arguments to `cancel_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_workflow_invocation(name: nil) + # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + # + # # Call the cancel_workflow_invocation method. + # result = client.cancel_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + # p result + # + def cancel_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns WorkflowInvocationActions in a given WorkflowInvocation. + # + # @overload query_workflow_invocation_actions(request, options = nil) + # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation's name. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + # + # # Call the query_workflow_invocation_actions method. + # result = client.query_workflow_invocation_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + # p item + # end + # + def query_workflow_invocation_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get default config for a given project and location. + # + # @overload get_config(request, options = nil) + # Pass arguments to `get_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_config(name: nil) + # Pass arguments to `get_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The config name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetConfigRequest.new + # + # # Call the get_config method. + # result = client.get_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def get_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update default config for a given project and location. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_config(request, options = nil) + # Pass arguments to `update_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_config(config: nil, update_mask: nil) + # Pass arguments to `update_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] + # Required. The config to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the config. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + # + # # Call the update_config method. + # result = client.update_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def update_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.config&.name + header_params["config.name"] = request.config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Dataform API. + # + # This class represents the configuration for Dataform, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_team_folder to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Dataform API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder + ## + # RPC-specific configuration for `list_repositories` + # @return [::Gapic::Config::Method] + # + attr_reader :list_repositories + ## + # RPC-specific configuration for `get_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :get_repository + ## + # RPC-specific configuration for `create_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :create_repository + ## + # RPC-specific configuration for `update_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :update_repository + ## + # RPC-specific configuration for `delete_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_repository + ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## + # RPC-specific configuration for `commit_repository_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_repository_changes + ## + # RPC-specific configuration for `read_repository_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_repository_file + ## + # RPC-specific configuration for `query_repository_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_repository_directory_contents + ## + # RPC-specific configuration for `fetch_repository_history` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_repository_history + ## + # RPC-specific configuration for `compute_repository_access_token_status` + # @return [::Gapic::Config::Method] + # + attr_reader :compute_repository_access_token_status + ## + # RPC-specific configuration for `fetch_remote_branches` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_remote_branches + ## + # RPC-specific configuration for `list_workspaces` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workspaces + ## + # RPC-specific configuration for `get_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workspace + ## + # RPC-specific configuration for `create_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workspace + ## + # RPC-specific configuration for `delete_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workspace + ## + # RPC-specific configuration for `install_npm_packages` + # @return [::Gapic::Config::Method] + # + attr_reader :install_npm_packages + ## + # RPC-specific configuration for `pull_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :pull_git_commits + ## + # RPC-specific configuration for `push_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :push_git_commits + ## + # RPC-specific configuration for `fetch_file_git_statuses` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_git_statuses + ## + # RPC-specific configuration for `fetch_git_ahead_behind` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_git_ahead_behind + ## + # RPC-specific configuration for `commit_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_workspace_changes + ## + # RPC-specific configuration for `reset_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :reset_workspace_changes + ## + # RPC-specific configuration for `fetch_file_diff` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_diff + ## + # RPC-specific configuration for `query_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_directory_contents + ## + # RPC-specific configuration for `search_files` + # @return [::Gapic::Config::Method] + # + attr_reader :search_files + ## + # RPC-specific configuration for `make_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :make_directory + ## + # RPC-specific configuration for `remove_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_directory + ## + # RPC-specific configuration for `move_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :move_directory + ## + # RPC-specific configuration for `read_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_file + ## + # RPC-specific configuration for `remove_file` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_file + ## + # RPC-specific configuration for `move_file` + # @return [::Gapic::Config::Method] + # + attr_reader :move_file + ## + # RPC-specific configuration for `write_file` + # @return [::Gapic::Config::Method] + # + attr_reader :write_file + ## + # RPC-specific configuration for `list_release_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_release_configs + ## + # RPC-specific configuration for `get_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release_config + ## + # RPC-specific configuration for `create_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release_config + ## + # RPC-specific configuration for `update_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release_config + ## + # RPC-specific configuration for `delete_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release_config + ## + # RPC-specific configuration for `list_compilation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :list_compilation_results + ## + # RPC-specific configuration for `get_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :get_compilation_result + ## + # RPC-specific configuration for `create_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :create_compilation_result + ## + # RPC-specific configuration for `query_compilation_result_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_compilation_result_actions + ## + # RPC-specific configuration for `list_workflow_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_configs + ## + # RPC-specific configuration for `get_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_config + ## + # RPC-specific configuration for `create_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_config + ## + # RPC-specific configuration for `update_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_workflow_config + ## + # RPC-specific configuration for `delete_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_config + ## + # RPC-specific configuration for `list_workflow_invocations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_invocations + ## + # RPC-specific configuration for `get_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_invocation + ## + # RPC-specific configuration for `create_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_invocation + ## + # RPC-specific configuration for `delete_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_invocation + ## + # RPC-specific configuration for `cancel_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_workflow_invocation + ## + # RPC-specific configuration for `query_workflow_invocation_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_workflow_invocation_actions + ## + # RPC-specific configuration for `get_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_config + ## + # RPC-specific configuration for `update_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + + # @private + def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config + list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories + @list_repositories = ::Gapic::Config::Method.new list_repositories_config + get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository + @get_repository = ::Gapic::Config::Method.new get_repository_config + create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository + @create_repository = ::Gapic::Config::Method.new create_repository_config + update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository + @update_repository = ::Gapic::Config::Method.new update_repository_config + delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository + @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config + commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes + @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config + read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file + @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config + query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents + @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config + fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history + @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config + compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status + @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config + fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches + @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config + list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces + @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config + get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace + @get_workspace = ::Gapic::Config::Method.new get_workspace_config + create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace + @create_workspace = ::Gapic::Config::Method.new create_workspace_config + delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace + @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config + install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages + @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config + pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits + @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config + push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits + @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config + fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses + @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config + fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind + @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config + commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes + @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config + reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes + @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config + fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff + @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config + query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents + @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config + search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files + @search_files = ::Gapic::Config::Method.new search_files_config + make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory + @make_directory = ::Gapic::Config::Method.new make_directory_config + remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory + @remove_directory = ::Gapic::Config::Method.new remove_directory_config + move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory + @move_directory = ::Gapic::Config::Method.new move_directory_config + read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file + @read_file = ::Gapic::Config::Method.new read_file_config + remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file + @remove_file = ::Gapic::Config::Method.new remove_file_config + move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file + @move_file = ::Gapic::Config::Method.new move_file_config + write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file + @write_file = ::Gapic::Config::Method.new write_file_config + list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs + @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config + get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config + @get_release_config = ::Gapic::Config::Method.new get_release_config_config + create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config + @create_release_config = ::Gapic::Config::Method.new create_release_config_config + update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config + @update_release_config = ::Gapic::Config::Method.new update_release_config_config + delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config + @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config + list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results + @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config + get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result + @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config + create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result + @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config + query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions + @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config + list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs + @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config + get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config + @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config + create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config + @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config + update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config + @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config + delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config + @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config + list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations + @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config + get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation + @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config + create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation + @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config + delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation + @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config + cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation + @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config + query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions + @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config + get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config + @get_config = ::Gapic::Config::Method.new get_config_config + update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config + @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb new file mode 100644 index 000000000000..a1cc0ba6afef --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Credentials for the Dataform API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb new file mode 100644 index 000000000000..8944966e5175 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb @@ -0,0 +1,841 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Dataform Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb new file mode 100644 index 000000000000..591bf0ee5afa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb @@ -0,0 +1,311 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Path helper methods for the Dataform API. + module Paths + ## + # Create a fully-qualified CompilationResult resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param compilation_result [String] + # + # @return [::String] + def compilation_result_path project:, location:, repository:, compilation_result: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}" + end + + ## + # Create a fully-qualified Config resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/config` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def config_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}/config" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified CryptoKeyVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # @param crypto_key_version [String] + # + # @return [::String] + def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" + end + + ## + # Create a fully-qualified Folder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/folders/{folder}` + # + # @param project [String] + # @param location [String] + # @param folder [String] + # + # @return [::String] + def folder_path project:, location:, folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/folders/#{folder}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified NotebookRuntimeTemplate resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + # + # @param project [String] + # @param location [String] + # @param notebook_runtime_template [String] + # + # @return [::String] + def notebook_runtime_template_path project:, location:, notebook_runtime_template: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}" + end + + ## + # Create a fully-qualified ReleaseConfig resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param release_config [String] + # + # @return [::String] + def release_config_path project:, location:, repository:, release_config: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}" + end + + ## + # Create a fully-qualified Repository resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # + # @return [::String] + def repository_path project:, location:, repository: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}" + end + + ## + # Create a fully-qualified SecretVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/secrets/{secret}/versions/{version}` + # + # @param project [String] + # @param secret [String] + # @param version [String] + # + # @return [::String] + def secret_version_path project:, secret:, version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" + + "projects/#{project}/secrets/#{secret}/versions/#{version}" + end + + ## + # Create a fully-qualified TeamFolder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/teamFolders/{team_folder}` + # + # @param project [String] + # @param location [String] + # @param team_folder [String] + # + # @return [::String] + def team_folder_path project:, location:, team_folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/teamFolders/#{team_folder}" + end + + ## + # Create a fully-qualified WorkflowConfig resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workflow_config [String] + # + # @return [::String] + def workflow_config_path project:, location:, repository:, workflow_config: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}" + end + + ## + # Create a fully-qualified WorkflowInvocation resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workflow_invocation [String] + # + # @return [::String] + def workflow_invocation_path project:, location:, repository:, workflow_invocation: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}" + end + + ## + # Create a fully-qualified Workspace resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workspace [String] + # + # @return [::String] + def workspace_path project:, location:, repository:, workspace: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}" + end + + extend self + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb new file mode 100644 index 000000000000..01b9b9f1cbed --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" +require "google/cloud/dataform/v1/bindings_override" + +require "google/cloud/dataform/v1/dataform/credentials" +require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/rest/operations" +require "google/cloud/dataform/v1/dataform/rest/client" + +module Google + module Cloud + module Dataform + module V1 + ## + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataform/v1/dataform/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module Dataform + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataform/v1/dataform/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb new file mode 100644 index 000000000000..b3bb6824d285 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb @@ -0,0 +1,7248 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform/rest/service_stub" +require "google/cloud/location/rest" +require "google/iam/v1/rest" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + ## + # REST client for the Dataform service. + # + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dataform_stub + + ## + # Configure the Dataform Client class. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Dataform clients + # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dataform_stub.universe_domain + end + + ## + # Create a new Dataform REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Dataform client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @dataform_stub = ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @dataform_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_team_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.search_team_folders request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. + # + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_user_root_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Folder to a new Folder, TeamFolder, or the root location. + # + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_folder request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Repositories in a given project and location. + # + # **Note:** *This method can return repositories not shown in the [Dataform + # UI](https://console.cloud.google.com/bigquery/dataform)*. + # + # @overload list_repositories(request, options = nil) + # Pass arguments to `list_repositories` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_repositories` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + # + # # Call the list_repositories method. + # result = client.list_repositories request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + # p item + # end + # + def list_repositories request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_repositories.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_repositories.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_repositories request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_repositories, "repositories", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Repository. + # + # @overload get_repository(request, options = nil) + # Pass arguments to `get_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_repository(name: nil) + # Pass arguments to `get_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + # + # # Call the get_repository method. + # result = client.get_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def get_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Repository in a given project and location. + # + # @overload create_repository(request, options = nil) + # Pass arguments to `create_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_repository(parent: nil, repository: nil, repository_id: nil) + # Pass arguments to `create_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to create. + # @param repository_id [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + # + # # Call the create_repository method. + # result = client.create_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def create_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Repository. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_repository(request, options = nil) + # Pass arguments to `update_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_repository(update_mask: nil, repository: nil) + # Pass arguments to `update_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + # + # # Call the update_repository method. + # result = client.update_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def update_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Repository. + # + # @overload delete_repository(request, options = nil) + # Pass arguments to `delete_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_repository(name: nil, force: nil) + # Pass arguments to `delete_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param force [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + # + # # Call the delete_repository method. + # result = client.delete_repository request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_repository request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit to a Repository. The Repository must not have a value + # for `git_remote_settings.url`. + # + # @overload commit_repository_changes(request, options = nil) + # Pass arguments to `commit_repository_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) + # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] + # Required. The changes to commit to the repository. + # @param required_head_commit_sha [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + # + # # Call the commit_repository_changes method. + # result = client.commit_repository_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + # p result + # + def commit_repository_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.commit_repository_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.commit_repository_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Repository). The Repository + # must not have a value for `git_remote_settings.url`. + # + # @overload read_repository_file(request, options = nil) + # Pass arguments to `read_repository_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) + # Pass arguments to `read_repository_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @param path [::String] + # Required. Full file path to read including filename, from repository root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + # + # # Call the read_repository_file method. + # result = client.read_repository_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + # p result + # + def read_repository_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.read_repository_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.read_repository_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.read_repository_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Repository directory. The Repository must + # not have a value for `git_remote_settings.url`. + # + # @overload query_repository_directory_contents(request, options = nil) + # Pass arguments to `query_repository_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + # + # # Call the query_repository_directory_contents method. + # result = client.query_repository_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_repository_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_repository_directory_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's history of commits. The Repository must not have a + # value for `git_remote_settings.url`. + # + # @overload fetch_repository_history(request, options = nil) + # Pass arguments to `fetch_repository_history` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param page_size [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + # + # # Call the fetch_repository_history method. + # result = client.fetch_repository_history request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + # p item + # end + # + def fetch_repository_history request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_repository_history.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_repository_history request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Computes a Repository's Git access token status. + # + # @overload compute_repository_access_token_status(request, options = nil) + # Pass arguments to `compute_repository_access_token_status` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload compute_repository_access_token_status(name: nil) + # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + # + # # Call the compute_repository_access_token_status method. + # result = client.compute_repository_access_token_status request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + # p result + # + def compute_repository_access_token_status request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.compute_repository_access_token_status request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's remote branches. + # + # @overload fetch_remote_branches(request, options = nil) + # Pass arguments to `fetch_remote_branches` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_remote_branches(name: nil) + # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + # + # # Call the fetch_remote_branches method. + # result = client.fetch_remote_branches request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + # p result + # + def fetch_remote_branches request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_remote_branches.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_remote_branches request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Workspaces in a given Repository. + # + # @overload list_workspaces(request, options = nil) + # Pass arguments to `list_workspaces` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workspaces` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + # + # # Call the list_workspaces method. + # result = client.list_workspaces request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + # p item + # end + # + def list_workspaces request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workspaces.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workspaces.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workspaces request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workspaces, "workspaces", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Workspace. + # + # @overload get_workspace(request, options = nil) + # Pass arguments to `get_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workspace(name: nil) + # Pass arguments to `get_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + # + # # Call the get_workspace method. + # result = client.get_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def get_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Workspace in a given Repository. + # + # @overload create_workspace(request, options = nil) + # Pass arguments to `create_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) + # Pass arguments to `create_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] + # Required. The workspace to create. + # @param workspace_id [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + # + # # Call the create_workspace method. + # result = client.create_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def create_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Workspace. + # + # @overload delete_workspace(request, options = nil) + # Pass arguments to `delete_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workspace(name: nil) + # Pass arguments to `delete_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + # + # # Call the delete_workspace method. + # result = client.delete_workspace request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Installs dependency NPM packages (inside a Workspace). + # + # @overload install_npm_packages(request, options = nil) + # Pass arguments to `install_npm_packages` via a request object, either of type + # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload install_npm_packages(workspace: nil) + # Pass arguments to `install_npm_packages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + # + # # Call the install_npm_packages method. + # result = client.install_npm_packages request + # + # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + # p result + # + def install_npm_packages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.install_npm_packages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.install_npm_packages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.install_npm_packages request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pulls Git commits from the Repository's remote into a Workspace. + # + # @overload pull_git_commits(request, options = nil) + # Pass arguments to `pull_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) + # Pass arguments to `pull_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + # + # # Call the pull_git_commits method. + # result = client.pull_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + # p result + # + def pull_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.pull_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.pull_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.pull_git_commits request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pushes Git commits from a Workspace to the Repository's remote. + # + # @overload push_git_commits(request, options = nil) + # Pass arguments to `push_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload push_git_commits(name: nil, remote_branch: nil) + # Pass arguments to `push_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + # + # # Call the push_git_commits method. + # result = client.push_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + # p result + # + def push_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.push_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.push_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.push_git_commits request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git statuses for the files in a Workspace. + # + # @overload fetch_file_git_statuses(request, options = nil) + # Pass arguments to `fetch_file_git_statuses` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_file_git_statuses(name: nil) + # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + # + # # Call the fetch_file_git_statuses method. + # result = client.fetch_file_git_statuses request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + # p result + # + def fetch_file_git_statuses request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_file_git_statuses request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git ahead/behind against a remote branch. + # + # @overload fetch_git_ahead_behind(request, options = nil) + # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) + # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + # + # # Call the fetch_git_ahead_behind method. + # result = client.fetch_git_ahead_behind request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + # p result + # + def fetch_git_ahead_behind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_git_ahead_behind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit for uncommitted files in a Workspace. + # + # @overload commit_workspace_changes(request, options = nil) + # Pass arguments to `commit_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) + # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The commit's author. + # @param commit_message [::String] + # Optional. The commit's message. + # @param paths [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + # + # # Call the commit_workspace_changes method. + # result = client.commit_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + # p result + # + def commit_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.commit_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.commit_workspace_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a Git reset for uncommitted files in a Workspace. + # + # @overload reset_workspace_changes(request, options = nil) + # Pass arguments to `reset_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) + # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param paths [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @param clean [::Boolean] + # Optional. If set to true, untracked files will be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + # + # # Call the reset_workspace_changes method. + # result = client.reset_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + # p result + # + def reset_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.reset_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.reset_workspace_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git diff for an uncommitted file in a Workspace. + # + # @overload fetch_file_diff(request, options = nil) + # Pass arguments to `fetch_file_diff` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_file_diff(workspace: nil, path: nil) + # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + # + # # Call the fetch_file_diff method. + # result = client.fetch_file_diff request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + # p result + # + def fetch_file_diff request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_file_diff.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_file_diff request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Workspace directory. + # + # @overload query_directory_contents(request, options = nil) + # Pass arguments to `query_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `query_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + # + # # Call the query_directory_contents method. + # result = client.query_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_directory_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Finds the contents of a given Workspace directory by filter. + # + # @overload search_files(request, options = nil) + # Pass arguments to `search_files` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `search_files` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param page_size [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param filter [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + # + # # Call the search_files method. + # result = client.search_files request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + # p item + # end + # + def search_files request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_files.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_files.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_files.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.search_files request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_files, "search_results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a directory inside a Workspace. + # + # @overload make_directory(request, options = nil) + # Pass arguments to `make_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload make_directory(workspace: nil, path: nil) + # Pass arguments to `make_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + # + # # Call the make_directory method. + # result = client.make_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + # p result + # + def make_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.make_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.make_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.make_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.make_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a directory (inside a Workspace) and all of its contents. + # + # @overload remove_directory(request, options = nil) + # Pass arguments to `remove_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload remove_directory(workspace: nil, path: nil) + # Pass arguments to `remove_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + # + # # Call the remove_directory method. + # result = client.remove_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + # p result + # + def remove_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.remove_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.remove_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.remove_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a directory (inside a Workspace), and all of its contents, to a new + # location. + # + # @overload move_directory(request, options = nil) + # Pass arguments to `move_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_directory(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @param new_path [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + # + # # Call the move_directory method. + # result = client.move_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + # p result + # + def move_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Workspace). + # + # @overload read_file(request, options = nil) + # Pass arguments to `read_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload read_file(workspace: nil, path: nil, revision: nil) + # Pass arguments to `read_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param revision [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadFileRequest.new + # + # # Call the read_file method. + # result = client.read_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + # p result + # + def read_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.read_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.read_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.read_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.read_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a file (inside a Workspace). + # + # @overload remove_file(request, options = nil) + # Pass arguments to `remove_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload remove_file(workspace: nil, path: nil) + # Pass arguments to `remove_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + # + # # Call the remove_file method. + # result = client.remove_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + # p result + # + def remove_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.remove_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.remove_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.remove_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.remove_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a file (inside a Workspace) to a new location. + # + # @overload move_file(request, options = nil) + # Pass arguments to `move_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_file(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param new_path [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFileRequest.new + # + # # Call the move_file method. + # result = client.move_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + # p result + # + def move_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Writes to a file (inside a Workspace). + # + # @overload write_file(request, options = nil) + # Pass arguments to `write_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload write_file(workspace: nil, path: nil, contents: nil) + # Pass arguments to `write_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file. + # @param contents [::String] + # Required. The file's contents. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::WriteFileRequest.new + # + # # Call the write_file method. + # result = client.write_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + # p result + # + def write_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.write_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.write_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.write_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.write_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ReleaseConfigs in a given Repository. + # + # @overload list_release_configs(request, options = nil) + # Pass arguments to `list_release_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_release_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + # + # # Call the list_release_configs method. + # result = client.list_release_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + # p item + # end + # + def list_release_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_release_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_release_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_release_configs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_release_configs, "release_configs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single ReleaseConfig. + # + # @overload get_release_config(request, options = nil) + # Pass arguments to `get_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_release_config(name: nil) + # Pass arguments to `get_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + # + # # Call the get_release_config method. + # result = client.get_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def get_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ReleaseConfig in a given Repository. + # + # @overload create_release_config(request, options = nil) + # Pass arguments to `create_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) + # Pass arguments to `create_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to create. + # @param release_config_id [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + # + # # Call the create_release_config method. + # result = client.create_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def create_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single ReleaseConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_release_config(request, options = nil) + # Pass arguments to `update_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_release_config(update_mask: nil, release_config: nil) + # Pass arguments to `update_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + # + # # Call the update_release_config method. + # result = client.update_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def update_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ReleaseConfig. + # + # @overload delete_release_config(request, options = nil) + # Pass arguments to `delete_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_release_config(name: nil) + # Pass arguments to `delete_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + # + # # Call the delete_release_config method. + # result = client.delete_release_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CompilationResults in a given Repository. + # + # @overload list_compilation_results(request, options = nil) + # Pass arguments to `list_compilation_results` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_compilation_results` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + # + # # Call the list_compilation_results method. + # result = client.list_compilation_results request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + # p item + # end + # + def list_compilation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_compilation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_compilation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_compilation_results request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_compilation_results, "compilation_results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single CompilationResult. + # + # @overload get_compilation_result(request, options = nil) + # Pass arguments to `get_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_compilation_result(name: nil) + # Pass arguments to `get_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + # + # # Call the get_compilation_result method. + # result = client.get_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def get_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_compilation_result request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new CompilationResult in a given project and location. + # + # @overload create_compilation_result(request, options = nil) + # Pass arguments to `create_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_compilation_result(parent: nil, compilation_result: nil) + # Pass arguments to `create_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] + # Required. The compilation result to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + # + # # Call the create_compilation_result method. + # result = client.create_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def create_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_compilation_result request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns CompilationResultActions in a given CompilationResult. + # + # @overload query_compilation_result_actions(request, options = nil) + # Pass arguments to `query_compilation_result_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param filter [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + # + # # Call the query_compilation_result_actions method. + # result = client.query_compilation_result_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + # p item + # end + # + def query_compilation_result_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_compilation_result_actions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowConfigs in a given Repository. + # + # @overload list_workflow_configs(request, options = nil) + # Pass arguments to `list_workflow_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + # + # # Call the list_workflow_configs method. + # result = client.list_workflow_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + # p item + # end + # + def list_workflow_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workflow_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workflow_configs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_configs, "workflow_configs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowConfig. + # + # @overload get_workflow_config(request, options = nil) + # Pass arguments to `get_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workflow_config(name: nil) + # Pass arguments to `get_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + # + # # Call the get_workflow_config method. + # result = client.get_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def get_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowConfig in a given Repository. + # + # @overload create_workflow_config(request, options = nil) + # Pass arguments to `create_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) + # Pass arguments to `create_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to create. + # @param workflow_config_id [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + # + # # Call the create_workflow_config method. + # result = client.create_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def create_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single WorkflowConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_workflow_config(request, options = nil) + # Pass arguments to `update_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_workflow_config(update_mask: nil, workflow_config: nil) + # Pass arguments to `update_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + # + # # Call the update_workflow_config method. + # result = client.update_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def update_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowConfig. + # + # @overload delete_workflow_config(request, options = nil) + # Pass arguments to `delete_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workflow_config(name: nil) + # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + # + # # Call the delete_workflow_config method. + # result = client.delete_workflow_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowInvocations in a given Repository. + # + # @overload list_workflow_invocations(request, options = nil) + # Pass arguments to `list_workflow_invocations` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + # + # # Call the list_workflow_invocations method. + # result = client.list_workflow_invocations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + # p item + # end + # + def list_workflow_invocations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workflow_invocations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workflow_invocations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, "workflow_invocations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowInvocation. + # + # @overload get_workflow_invocation(request, options = nil) + # Pass arguments to `get_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workflow_invocation(name: nil) + # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + # + # # Call the get_workflow_invocation method. + # result = client.get_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def get_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowInvocation in a given Repository. + # + # @overload create_workflow_invocation(request, options = nil) + # Pass arguments to `create_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) + # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] + # Required. The workflow invocation resource to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + # + # # Call the create_workflow_invocation method. + # result = client.create_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def create_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowInvocation. + # + # @overload delete_workflow_invocation(request, options = nil) + # Pass arguments to `delete_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workflow_invocation(name: nil) + # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + # + # # Call the delete_workflow_invocation method. + # result = client.delete_workflow_invocation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests cancellation of a running WorkflowInvocation. + # + # @overload cancel_workflow_invocation(request, options = nil) + # Pass arguments to `cancel_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_workflow_invocation(name: nil) + # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + # + # # Call the cancel_workflow_invocation method. + # result = client.cancel_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + # p result + # + def cancel_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.cancel_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns WorkflowInvocationActions in a given WorkflowInvocation. + # + # @overload query_workflow_invocation_actions(request, options = nil) + # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation's name. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + # + # # Call the query_workflow_invocation_actions method. + # result = client.query_workflow_invocation_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + # p item + # end + # + def query_workflow_invocation_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_workflow_invocation_actions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get default config for a given project and location. + # + # @overload get_config(request, options = nil) + # Pass arguments to `get_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_config(name: nil) + # Pass arguments to `get_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The config name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetConfigRequest.new + # + # # Call the get_config method. + # result = client.get_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def get_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update default config for a given project and location. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_config(request, options = nil) + # Pass arguments to `update_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_config(config: nil, update_mask: nil) + # Pass arguments to `update_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] + # Required. The config to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the config. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + # + # # Call the update_config method. + # result = client.update_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def update_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.set_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.test_iam_permissions request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Dataform REST API. + # + # This class represents the configuration for Dataform REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_team_folder to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + # Overrides for http bindings for the RPCs of this service + # are only used when this service is used as mixin, and only + # by the host service. + # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] + config_attr :bindings_override, {}, ::Hash, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Dataform API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder + ## + # RPC-specific configuration for `list_repositories` + # @return [::Gapic::Config::Method] + # + attr_reader :list_repositories + ## + # RPC-specific configuration for `get_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :get_repository + ## + # RPC-specific configuration for `create_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :create_repository + ## + # RPC-specific configuration for `update_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :update_repository + ## + # RPC-specific configuration for `delete_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_repository + ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## + # RPC-specific configuration for `commit_repository_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_repository_changes + ## + # RPC-specific configuration for `read_repository_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_repository_file + ## + # RPC-specific configuration for `query_repository_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_repository_directory_contents + ## + # RPC-specific configuration for `fetch_repository_history` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_repository_history + ## + # RPC-specific configuration for `compute_repository_access_token_status` + # @return [::Gapic::Config::Method] + # + attr_reader :compute_repository_access_token_status + ## + # RPC-specific configuration for `fetch_remote_branches` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_remote_branches + ## + # RPC-specific configuration for `list_workspaces` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workspaces + ## + # RPC-specific configuration for `get_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workspace + ## + # RPC-specific configuration for `create_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workspace + ## + # RPC-specific configuration for `delete_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workspace + ## + # RPC-specific configuration for `install_npm_packages` + # @return [::Gapic::Config::Method] + # + attr_reader :install_npm_packages + ## + # RPC-specific configuration for `pull_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :pull_git_commits + ## + # RPC-specific configuration for `push_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :push_git_commits + ## + # RPC-specific configuration for `fetch_file_git_statuses` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_git_statuses + ## + # RPC-specific configuration for `fetch_git_ahead_behind` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_git_ahead_behind + ## + # RPC-specific configuration for `commit_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_workspace_changes + ## + # RPC-specific configuration for `reset_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :reset_workspace_changes + ## + # RPC-specific configuration for `fetch_file_diff` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_diff + ## + # RPC-specific configuration for `query_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_directory_contents + ## + # RPC-specific configuration for `search_files` + # @return [::Gapic::Config::Method] + # + attr_reader :search_files + ## + # RPC-specific configuration for `make_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :make_directory + ## + # RPC-specific configuration for `remove_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_directory + ## + # RPC-specific configuration for `move_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :move_directory + ## + # RPC-specific configuration for `read_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_file + ## + # RPC-specific configuration for `remove_file` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_file + ## + # RPC-specific configuration for `move_file` + # @return [::Gapic::Config::Method] + # + attr_reader :move_file + ## + # RPC-specific configuration for `write_file` + # @return [::Gapic::Config::Method] + # + attr_reader :write_file + ## + # RPC-specific configuration for `list_release_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_release_configs + ## + # RPC-specific configuration for `get_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release_config + ## + # RPC-specific configuration for `create_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release_config + ## + # RPC-specific configuration for `update_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release_config + ## + # RPC-specific configuration for `delete_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release_config + ## + # RPC-specific configuration for `list_compilation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :list_compilation_results + ## + # RPC-specific configuration for `get_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :get_compilation_result + ## + # RPC-specific configuration for `create_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :create_compilation_result + ## + # RPC-specific configuration for `query_compilation_result_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_compilation_result_actions + ## + # RPC-specific configuration for `list_workflow_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_configs + ## + # RPC-specific configuration for `get_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_config + ## + # RPC-specific configuration for `create_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_config + ## + # RPC-specific configuration for `update_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_workflow_config + ## + # RPC-specific configuration for `delete_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_config + ## + # RPC-specific configuration for `list_workflow_invocations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_invocations + ## + # RPC-specific configuration for `get_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_invocation + ## + # RPC-specific configuration for `create_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_invocation + ## + # RPC-specific configuration for `delete_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_invocation + ## + # RPC-specific configuration for `cancel_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_workflow_invocation + ## + # RPC-specific configuration for `query_workflow_invocation_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_workflow_invocation_actions + ## + # RPC-specific configuration for `get_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_config + ## + # RPC-specific configuration for `update_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + + # @private + def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config + list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories + @list_repositories = ::Gapic::Config::Method.new list_repositories_config + get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository + @get_repository = ::Gapic::Config::Method.new get_repository_config + create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository + @create_repository = ::Gapic::Config::Method.new create_repository_config + update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository + @update_repository = ::Gapic::Config::Method.new update_repository_config + delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository + @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config + commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes + @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config + read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file + @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config + query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents + @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config + fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history + @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config + compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status + @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config + fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches + @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config + list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces + @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config + get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace + @get_workspace = ::Gapic::Config::Method.new get_workspace_config + create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace + @create_workspace = ::Gapic::Config::Method.new create_workspace_config + delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace + @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config + install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages + @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config + pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits + @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config + push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits + @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config + fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses + @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config + fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind + @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config + commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes + @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config + reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes + @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config + fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff + @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config + query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents + @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config + search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files + @search_files = ::Gapic::Config::Method.new search_files_config + make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory + @make_directory = ::Gapic::Config::Method.new make_directory_config + remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory + @remove_directory = ::Gapic::Config::Method.new remove_directory_config + move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory + @move_directory = ::Gapic::Config::Method.new move_directory_config + read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file + @read_file = ::Gapic::Config::Method.new read_file_config + remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file + @remove_file = ::Gapic::Config::Method.new remove_file_config + move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file + @move_file = ::Gapic::Config::Method.new move_file_config + write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file + @write_file = ::Gapic::Config::Method.new write_file_config + list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs + @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config + get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config + @get_release_config = ::Gapic::Config::Method.new get_release_config_config + create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config + @create_release_config = ::Gapic::Config::Method.new create_release_config_config + update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config + @update_release_config = ::Gapic::Config::Method.new update_release_config_config + delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config + @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config + list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results + @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config + get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result + @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config + create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result + @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config + query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions + @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config + list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs + @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config + get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config + @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config + create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config + @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config + update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config + @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config + delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config + @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config + list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations + @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config + get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation + @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config + create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation + @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config + delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation + @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config + cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation + @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config + query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions + @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config + get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config + @get_config = ::Gapic::Config::Method.new get_config_config + update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config + @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb new file mode 100644 index 000000000000..1576b6fb66dd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb @@ -0,0 +1,925 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Dataform Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = OperationsServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + + ## + # @private + # REST service stub for the Longrunning Operations API. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + class OperationsServiceStub + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb new file mode 100644 index 000000000000..1f799e9394cc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb @@ -0,0 +1,4636 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataform/v1/dataform_pb" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + ## + # REST service stub for the Dataform service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def get_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def create_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def update_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_team_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_team_folder_tree request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_team_folder_tree", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_team_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] + # A result object deserialized from the server's reply + def query_team_folder_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_team_folder_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_team_folder_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the search_team_folders REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] + # A result object deserialized from the server's reply + def search_team_folders request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_search_team_folders_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "search_team_folders", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def get_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def create_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def update_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_folder_tree request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_folder_tree", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] + # A result object deserialized from the server's reply + def query_folder_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_folder_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_folder_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_user_root_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] + # A result object deserialized from the server's reply + def query_user_root_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_user_root_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_user_root_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def move_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_repositories REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # A result object deserialized from the server's reply + def list_repositories request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_repositories", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def get_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def create_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def update_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def move_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the commit_repository_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # A result object deserialized from the server's reply + def commit_repository_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "commit_repository_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the read_repository_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # A result object deserialized from the server's reply + def read_repository_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "read_repository_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_repository_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # A result object deserialized from the server's reply + def query_repository_directory_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_repository_directory_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_repository_history REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # A result object deserialized from the server's reply + def fetch_repository_history request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_repository_history", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the compute_repository_access_token_status REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # A result object deserialized from the server's reply + def compute_repository_access_token_status request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "compute_repository_access_token_status", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_remote_branches REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # A result object deserialized from the server's reply + def fetch_remote_branches request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_remote_branches", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workspaces REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # A result object deserialized from the server's reply + def list_workspaces request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workspaces", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # A result object deserialized from the server's reply + def get_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # A result object deserialized from the server's reply + def create_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the install_npm_packages REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # A result object deserialized from the server's reply + def install_npm_packages request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "install_npm_packages", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the pull_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # A result object deserialized from the server's reply + def pull_git_commits request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "pull_git_commits", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the push_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # A result object deserialized from the server's reply + def push_git_commits request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "push_git_commits", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_file_git_statuses REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # A result object deserialized from the server's reply + def fetch_file_git_statuses request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_file_git_statuses", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_git_ahead_behind REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # A result object deserialized from the server's reply + def fetch_git_ahead_behind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_git_ahead_behind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the commit_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # A result object deserialized from the server's reply + def commit_workspace_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "commit_workspace_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the reset_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # A result object deserialized from the server's reply + def reset_workspace_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "reset_workspace_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_file_diff REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # A result object deserialized from the server's reply + def fetch_file_diff request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_file_diff", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # A result object deserialized from the server's reply + def query_directory_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_directory_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the search_files REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # A result object deserialized from the server's reply + def search_files request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "search_files", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the make_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # A result object deserialized from the server's reply + def make_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "make_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the remove_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # A result object deserialized from the server's reply + def remove_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "remove_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # A result object deserialized from the server's reply + def move_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the read_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # A result object deserialized from the server's reply + def read_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "read_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the remove_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # A result object deserialized from the server's reply + def remove_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "remove_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # A result object deserialized from the server's reply + def move_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the write_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # A result object deserialized from the server's reply + def write_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "write_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_release_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # A result object deserialized from the server's reply + def list_release_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_release_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def get_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def create_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def update_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_compilation_results REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # A result object deserialized from the server's reply + def list_compilation_results request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_compilation_results", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def get_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def create_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_compilation_result_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # A result object deserialized from the server's reply + def query_compilation_result_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_compilation_result_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # A result object deserialized from the server's reply + def list_workflow_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def get_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def create_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def update_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_invocations REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # A result object deserialized from the server's reply + def list_workflow_invocations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_invocations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def get_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def create_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # A result object deserialized from the server's reply + def cancel_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_workflow_invocation_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # A result object deserialized from the server's reply + def query_workflow_invocation_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_workflow_invocation_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def get_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def update_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def get_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def set_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "set_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # A result object deserialized from the server's reply + def test_iam_permissions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "test_iam_permissions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/teamFolders", + body: "team_folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{team_folder.name}", + body: "team_folder", + matches: [ + ["team_folder.name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_team_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_team_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{team_folder}:queryContents", + matches: [ + ["team_folder", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_team_folders REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_team_folders_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}/teamFolders:search", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/folders", + body: "folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{folder.name}", + body: "folder", + matches: [ + ["folder.name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{folder}:queryFolderContents", + matches: [ + ["folder", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_user_root_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_user_root_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}:queryUserRootContents", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_repositories REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_repositories_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/repositories", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/repositories", + body: "repository", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{repository.name}", + body: "repository", + matches: [ + ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the commit_repository_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_commit_repository_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:commit", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the read_repository_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_read_repository_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:readFile", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_repository_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_repository_directory_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:queryDirectoryContents", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_repository_history REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_repository_history_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchHistory", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the compute_repository_access_token_status REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_compute_repository_access_token_status_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:computeAccessTokenStatus", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_remote_branches REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_remote_branches_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchRemoteBranches", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workspaces REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workspaces_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workspaces", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workspaces", + body: "workspace", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the install_npm_packages REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_install_npm_packages_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:installNpmPackages", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the pull_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_pull_git_commits_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:pull", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the push_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_push_git_commits_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:push", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_file_git_statuses REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_file_git_statuses_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchFileGitStatuses", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_git_ahead_behind REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_git_ahead_behind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchGitAheadBehind", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the commit_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_commit_workspace_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:commit", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the reset_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_reset_workspace_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:reset", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_file_diff REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_file_diff_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:fetchFileDiff", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_directory_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:queryDirectoryContents", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_files REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_files_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:searchFiles", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the make_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_make_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:makeDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the remove_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_remove_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:removeDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:moveDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the read_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_read_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:readFile", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the remove_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_remove_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:removeFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:moveFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the write_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_write_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:writeFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_release_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_release_configs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/releaseConfigs", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/releaseConfigs", + body: "release_config", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{release_config.name}", + body: "release_config", + matches: [ + ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_compilation_results REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_compilation_results_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/compilationResults", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_compilation_result_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_compilation_result_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/compilationResults", + body: "compilation_result", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_compilation_result_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_compilation_result_actions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:query", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workflow_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workflow_configs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workflowConfigs", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workflowConfigs", + body: "workflow_config", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{workflow_config.name}", + body: "workflow_config", + matches: [ + ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workflow_invocations REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workflow_invocations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workflowInvocations", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workflowInvocations", + body: "workflow_invocation", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_workflow_invocation_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_workflow_invocation_actions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:query", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{config.name}", + body: "config", + matches: [ + ["config.name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_set_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_test_iam_permissions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb new file mode 100644 index 000000000000..d0223b594bff --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb @@ -0,0 +1,216 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/dataform/v1/dataform.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' +require 'google/rpc/status_pb' +require 'google/type/interval_pb' + + +descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0e\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12#\n\x11\x63ontaining_folder\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\"\n\x10team_folder_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_containing_folderB\x13\n\x11_team_folder_nameB\x14\n\x12_internal_metadata\"3\n\x17PrivateResourceMetadata\x12\x18\n\x0buser_scoped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa4\x01\n\x15MoveRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xff\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\x8b\x04\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rdisable_moves\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x08 \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadataB\x10\n\x0e_disable_moves\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xe5\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x05 \x01(\x0e\x32/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x12\x43\n\x08metadata\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\n\x05\x65ntry\"h\n\x17\x46ilesystemEntryMetadata\x12\x17\n\nsize_bytes\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xca\x08\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x0c \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa3\x1e\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xae\x0b\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\n\nconnection\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x0ctable_format\x18\x10 \x01(\x0e\x32\x46.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xe0\x41\x01\x12_\n\x0b\x66ile_format\x18\x11 \x01(\x0e\x32\x45.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xe0\x41\x01\x12\x18\n\x0bstorage_uri\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\"8\n\x0bTableFormat\x12\x1c\n\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07ICEBERG\x10\x01\"6\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xdc\x03\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x0equery_priority\x18\t \x01(\x0e\x32\x38.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xe0\x41\x01H\x00\x88\x01\x01\"K\n\rQueryPriority\x12\x1e\n\x1aQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINTERACTIVE\x10\x01\x12\t\n\x05\x42\x41TCH\x10\x02\x42\x11\n\x0f_query_priority\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\x94\x08\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\n \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x02\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfigB\x14\n\x12_internal_metadata\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcf\x03\n\x06\x46older\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x63ontaining_folder\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10team_folder_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:n\xea\x41k\n\x1e\x64\x61taform.googleapis.com/Folder\x12\x38projects/{project}/locations/{location}/folders/{folder}*\x07\x66olders2\x06\x66olderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x87\x01\n\x13\x43reateFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"\x9c\x01\n\x11MoveFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"H\n\x10GetFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"\x82\x01\n\x13UpdateFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"K\n\x13\x44\x65leteFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"c\n\x17\x44\x65leteFolderTreeRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x1b\x44\x65leteTeamFolderTreeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe2\x02\n\x18\x44\x65leteFolderTreeMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\"[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xb1\x01\n\x1aQueryFolderContentsRequest\x12\x36\n\x06\x66older\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1bQueryFolderContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8e\x01\n\x13\x46olderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb8\x01\n\x1cQueryUserRootContentsRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1dQueryUserRootContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8c\x01\n\x11RootContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xab\x03\n\nTeamFolder\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n\"dataform.googleapis.com/TeamFolder\x12\x41projects/{project}/locations/{location}/teamFolders/{team_folder}*\x0bteamFolders2\nteamFolderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x94\x01\n\x17\x43reateTeamFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"P\n\x14GetTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\x8f\x01\n\x17UpdateTeamFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"S\n\x17\x44\x65leteTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\xbe\x01\n\x1eQueryTeamFolderContentsRequest\x12?\n\x0bteam_folder\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb3\x02\n\x1fQueryTeamFolderContentsResponse\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x92\x01\n\x17TeamFolderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb4\x01\n\x18SearchTeamFoldersRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xf1\x01\n\x19SearchTeamFoldersResponse\x12[\n\x07results\x18\x01 \x03(\x0b\x32J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a^\n\x16TeamFolderSearchResult\x12;\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderH\x00\x42\x07\n\x05\x65ntry\"\xca\x02\n\x12MoveFolderMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xd2\x02\n\x16MoveRepositoryMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04*\x89\x01\n\x15\x44irectoryContentsView\x12\'\n#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1d\x44IRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12$\n DIRECTORY_CONTENTS_VIEW_METADATA\x10\x02\x32\xe3}\n\x08\x44\x61taform\x12\xa5\x01\n\rGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xc6\x01\n\x10\x43reateTeamFolder\x12\x31.google.cloud.dataform.v1.CreateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"Y\xda\x41\x12parent,team_folder\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0bteam_folder\x12\xd7\x01\n\x10UpdateTeamFolder\x12\x31.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"j\xda\x41\x17team_folder,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0bteam_folder\x12\x9d\x01\n\x10\x44\x65leteTeamFolder\x12\x31.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xf5\x01\n\x14\x44\x65leteTeamFolderTree\x12\x35.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xea\x01\n\x17QueryTeamFolderContents\x12\x38.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1a\x39.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xda\x41\x0bteam_folder\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xbe\x01\n\x11SearchTeamFolders\x12\x32.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1a\x33.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\n\tGetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1a .google.cloud.dataform.v1.Folder\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xac\x01\n\x0c\x43reateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"K\xda\x41\rparent,folder\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/folders:\x06\x66older\x12\xb8\x01\n\x0cUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"W\xda\x41\x12\x66older,update_mask\x82\xd3\xe4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06\x66older\x12\x91\x01\n\x0c\x44\x65leteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xe9\x01\n\x10\x44\x65leteFolderTree\x12\x31.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xd6\x01\n\x13QueryFolderContents\x12\x34.google.cloud.dataform.v1.QueryFolderContentsRequest\x1a\x35.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xda\x41\x06\x66older\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xd8\x01\n\x15QueryUserRootContents\x12\x36.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1a\x37.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xda\x41\x08location\x82\xd3\xe4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xe9\x01\n\nMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41+\n\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02\x35\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xfa\x01\n\x0eMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x12\xf7\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xab\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x99\x02\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb new file mode 100644 index 000000000000..7076d1962dc3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Longrunning + module Operations + # Credentials for the Operations API. + class Credentials < ::Google::Auth::Credentials + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb new file mode 100644 index 000000000000..6b2d5f7cecff --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb @@ -0,0 +1,837 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Longrunning + module Operations + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Operations Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb new file mode 100644 index 000000000000..ff6597693b4e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" +require "google/longrunning/bindings_override" + +require "google/longrunning/operations/credentials" +require "google/longrunning/operations/rest/operations" +require "google/longrunning/operations/rest/client" + +module Google + module Longrunning + ## + # Manages long-running operations with an API service. + # + # When an API method normally takes long time to complete, it can be designed + # to return {::Google::Longrunning::Operation Operation} to the client, and the + # client can use this interface to receive the real response asynchronously by + # polling the operation resource, or pass the operation resource to another API + # (such as Pub/Sub API) to receive the response. Any API service that returns + # long-running operations should implement the `Operations` interface so + # developers can have a consistent client experience. + # + # To load this service and instantiate a REST client: + # + # require "google/longrunning/operations/rest" + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + module Operations + # Client for the REST transport + module Rest + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/longrunning/operations/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb new file mode 100644 index 000000000000..088db9bb5d0c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb @@ -0,0 +1,776 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/longrunning/operations_pb" +require "google/longrunning/operations/rest/service_stub" +require "google/cloud/location/rest" +require "google/iam/v1/rest" + +module Google + module Longrunning + module Operations + module Rest + ## + # REST client for the Operations service. + # + # Manages long-running operations with an API service. + # + # When an API method normally takes long time to complete, it can be designed + # to return {::Google::Longrunning::Operation Operation} to the client, and the + # client can use this interface to receive the real response asynchronously by + # polling the operation resource, or pass the operation resource to another API + # (such as Pub/Sub API) to receive the response. Any API service that returns + # long-running operations should implement the `Operations` interface so + # developers can have a consistent client experience. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configure the Operations Client class. + # + # See {::Google::Longrunning::Operations::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Operations clients + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Longrunning"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Longrunning::Operations::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = ::Google::Longrunning::Operations::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @operations_stub = ::Google::Longrunning::Operations::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @operations_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @operations_stub.endpoint + config.universe_domain = @operations_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @operations_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @operations_stub.endpoint + config.universe_domain = @operations_stub.universe_domain + config.logger = @operations_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Longrunning::Operations::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @operations_stub.logger + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb new file mode 100644 index 000000000000..f5539db81ab3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb @@ -0,0 +1,921 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" + +module Google + module Longrunning + module Operations + module Rest + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Operations Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = OperationsServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + + ## + # @private + # REST service stub for the Longrunning Operations API. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + class OperationsServiceStub + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb new file mode 100644 index 000000000000..0a616d856150 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb @@ -0,0 +1,322 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/longrunning/operations_pb" + +module Google + module Longrunning + module Operations + module Rest + ## + # REST service stub for the Operations service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb new file mode 100644 index 000000000000..1abb8352800b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/longrunning/operations/rest" +require "google/longrunning/bindings_override" +require "google/cloud/dataform/v1/version" + +module Google + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/longrunning/rest" + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + module Longrunning + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md new file mode 100644 index 000000000000..a128eb6cf57a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md @@ -0,0 +1,4 @@ +# Dataform V1 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..d59ba51a5612 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb @@ -0,0 +1,473 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb new file mode 100644 index 000000000000..71e821d33ab7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb @@ -0,0 +1,3308 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataform + module V1 + # Describes encryption state of a resource. + # @!attribute [rw] kms_key_version_name + # @return [::String] + # Required. The KMS key version name with which data of a resource is + # encrypted. + class DataEncryptionState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git repository. + # @!attribute [rw] name + # @return [::String] + # Identifier. The repository's name. + # @!attribute [rw] containing_folder + # @return [::String] + # Optional. The name of the containing folder of the repository. + # The field is immutable and it can be modified via a MoveRepository + # operation. + # Format: `projects/*/locations/*/folders/*`. or + # `projects/*/locations/*/teamFolders/*`. + # @!attribute [r] team_folder_name + # @return [::String] + # Output only. The resource name of the TeamFolder that this Repository is + # associated with. This should take the format: + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this + # is not set, the Repository is not associated with a TeamFolder. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the repository was created. + # @!attribute [rw] display_name + # @return [::String] + # Optional. The repository's user-friendly name. + # @!attribute [rw] git_remote_settings + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings] + # Optional. If set, configures this repository to be linked to a Git remote. + # @!attribute [rw] npmrc_environment_variables_secret_version + # @return [::String] + # Optional. The name of the Secret Manager secret version to be used to + # interpolate variables into the .npmrc file for package installation + # operations. Must be in the format `projects/*/secrets/*/versions/*`. The + # file itself must be in a JSON format. + # @!attribute [rw] workspace_compilation_overrides + # @return [::Google::Cloud::Dataform::V1::Repository::WorkspaceCompilationOverrides] + # Optional. If set, fields of `workspace_compilation_overrides` override the + # default compilation settings that are specified in dataform.json when + # creating workspace-scoped compilation results. See documentation for + # `WorkspaceCompilationOverrides` for more information. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Repository user labels. + # @!attribute [rw] set_authenticated_user_admin + # @return [::Boolean] + # Optional. Input only. If set to true, the authenticated user will be + # granted the roles/dataform.admin role on the created repository. + # @!attribute [rw] service_account + # @return [::String] + # Optional. The service account to run workflow invocations under. + # @!attribute [rw] kms_key_name + # @return [::String] + # Optional. The reference to a KMS encryption key. If provided, it will be + # used to encrypt user data in the repository and all child resources. It is + # not possible to add or update the encryption key after the repository is + # created. Example: + # `projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}` + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. A data encryption state of a Git repository if this Repository + # is protected by a KMS key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class Repository + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Controls Git remote configuration for a repository. + # @!attribute [rw] url + # @return [::String] + # Required. The Git remote's URL. + # @!attribute [rw] default_branch + # @return [::String] + # Required. The Git remote's default branch name. + # @!attribute [rw] authentication_token_secret_version + # @return [::String] + # Optional. The name of the Secret Manager secret version to use as an + # authentication token for Git operations. Must be in the format + # `projects/*/secrets/*/versions/*`. + # @!attribute [rw] ssh_authentication_config + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::SshAuthenticationConfig] + # Optional. Authentication fields for remote uris using SSH protocol. + # @!attribute [r] token_status + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::TokenStatus] + # Output only. Deprecated: The field does not contain any token status + # information. + class GitRemoteSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Configures fields for performing SSH authentication. + # @!attribute [rw] user_private_key_secret_version + # @return [::String] + # Required. The name of the Secret Manager secret version to use as a + # ssh private key for Git operations. + # Must be in the format `projects/*/secrets/*/versions/*`. + # @!attribute [rw] host_public_key + # @return [::String] + # Required. Content of a public SSH key to verify an identity of a remote + # Git host. + class SshAuthenticationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The status of the authentication token. + module TokenStatus + # Default value. This value is unused. + TOKEN_STATUS_UNSPECIFIED = 0 + + # The token could not be found in Secret Manager (or the Dataform + # Service Account did not have permission to access it). + NOT_FOUND = 1 + + # The token could not be used to authenticate against the Git remote. + INVALID = 2 + + # The token was used successfully to authenticate against the Git remote. + VALID = 3 + end + end + + # Configures workspace compilation overrides for a repository. + # @!attribute [rw] default_database + # @return [::String] + # Optional. The default database (Google Cloud project ID). + # @!attribute [rw] schema_suffix + # @return [::String] + # Optional. The suffix that should be appended to all schema (BigQuery + # dataset ID) names. + # @!attribute [rw] table_prefix + # @return [::String] + # Optional. The prefix that should be prepended to all table names. + class WorkspaceCompilationOverrides + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Metadata used to identify if a resource is user scoped. + # @!attribute [r] user_scoped + # @return [::Boolean] + # Output only. If true, this resource is user-scoped, meaning it is either a + # workspace or sourced from a workspace. + class PrivateResourceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListRepositories` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListRepositoriesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListRepositories` response message. + # @!attribute [rw] repositories + # @return [::Array<::Google::Cloud::Dataform::V1::Repository>] + # List of repositories. + # @!attribute [rw] next_page_token + # @return [::String] + # A token which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListRepositoriesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The full resource name of the repository to move. + # @!attribute [rw] destination_containing_folder + # @return [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + class MoveRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class GetRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateRepository` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # Required. The repository to create. + # @!attribute [rw] repository_id + # @return [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + class CreateRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateRepository` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # Required. The repository to update. + class UpdateRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + class DeleteRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitRepositoryChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_metadata + # @return [::Google::Cloud::Dataform::V1::CommitMetadata] + # Required. The changes to commit to the repository. + # @!attribute [rw] required_head_commit_sha + # @return [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @!attribute [rw] file_operations + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + class CommitRepositoryChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single file operation to the repository. + # @!attribute [rw] write_file + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::WriteFile] + # Represents the write operation. + # + # Note: The following fields are mutually exclusive: `write_file`, `delete_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delete_file + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::DeleteFile] + # Represents the delete operation. + # + # Note: The following fields are mutually exclusive: `delete_file`, `write_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class FileOperation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the write file operation (for files added or modified). + # @!attribute [rw] contents + # @return [::String] + # The file's contents. + class WriteFile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the delete file operation. + class DeleteFile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation] + class FileOperationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `CommitRepositoryChanges` response message. + # @!attribute [rw] commit_sha + # @return [::String] + # The commit SHA of the current commit. + class CommitRepositoryChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadRepositoryFile` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_sha + # @return [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @!attribute [rw] path + # @return [::String] + # Required. Full file path to read including filename, from repository root. + class ReadRepositoryFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadRepositoryFile` response message. + # @!attribute [rw] contents + # @return [::String] + # The file's contents. + class ReadRepositoryFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryRepositoryDirectoryContents` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_sha + # @return [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @!attribute [rw] path + # @return [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + class QueryRepositoryDirectoryContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryRepositoryDirectoryContents` response message. + # @!attribute [rw] directory_entries + # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # List of entries in the directory. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryRepositoryDirectoryContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRepositoryHistory` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class FetchRepositoryHistoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRepositoryHistory` response message. + # @!attribute [rw] commits + # @return [::Array<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # A list of commit logs, ordered by 'git log' default order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class FetchRepositoryHistoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single commit log. + # @!attribute [rw] commit_time + # @return [::Google::Protobuf::Timestamp] + # Commit timestamp. + # @!attribute [rw] commit_sha + # @return [::String] + # The commit SHA for this commit log entry. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # The commit author for this commit log entry. + # @!attribute [rw] commit_message + # @return [::String] + # The commit message for this commit log entry. + class CommitLogEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git commit. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The commit's author. + # @!attribute [rw] commit_message + # @return [::String] + # Optional. The commit's message. + class CommitMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ComputeRepositoryAccessTokenStatus` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class ComputeRepositoryAccessTokenStatusRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ComputeRepositoryAccessTokenStatus` response message. + # @!attribute [rw] token_status + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse::TokenStatus] + # Indicates the status of the Git access token. + class ComputeRepositoryAccessTokenStatusResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the status of a Git authentication token. + module TokenStatus + # Default value. This value is unused. + TOKEN_STATUS_UNSPECIFIED = 0 + + # The token could not be found in Secret Manager (or the Dataform + # Service Account did not have permission to access it). + NOT_FOUND = 1 + + # The token could not be used to authenticate against the Git remote. + INVALID = 2 + + # The token was used successfully to authenticate against the Git remote. + VALID = 3 + + # The token is not accessible due to permission issues. + PERMISSION_DENIED = 4 + end + end + + # `FetchRemoteBranches` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class FetchRemoteBranchesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRemoteBranches` response message. + # @!attribute [rw] branches + # @return [::Array<::String>] + # The remote repository's branch names. + class FetchRemoteBranchesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git workspace. + # @!attribute [rw] name + # @return [::String] + # Identifier. The workspace's name. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the workspace was created. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. A data encryption state of a Git repository if this Workspace + # is protected by a KMS key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [rw] disable_moves + # @return [::Boolean] + # Optional. If set to true, workspaces will not be moved if its linked + # Repository is moved. Instead, it will be deleted. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # Output only. Metadata indicating whether this resource is user-scoped. For + # `Workspace` resources, the `user_scoped` field is always `true`. + class Workspace + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkspaces` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListWorkspacesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkspaces` response message. + # @!attribute [rw] workspaces + # @return [::Array<::Google::Cloud::Dataform::V1::Workspace>] + # List of workspaces. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkspacesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkspace` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + class GetWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkspace` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workspace + # @return [::Google::Cloud::Dataform::V1::Workspace] + # Required. The workspace to create. + # @!attribute [rw] workspace_id + # @return [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + class CreateWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkspace` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace resource's name. + class DeleteWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the author of a Git commit. + # @!attribute [rw] name + # @return [::String] + # Required. The commit author's name. + # @!attribute [rw] email_address + # @return [::String] + # Required. The commit author's email address. + class CommitAuthor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PullGitCommits` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + class PullGitCommitsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PullGitCommits` response message. + class PullGitCommitsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PushGitCommits` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + class PushGitCommitsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PushGitCommits` response message. + class PushGitCommitsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileGitStatuses` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + class FetchFileGitStatusesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileGitStatuses` response message. + # @!attribute [rw] uncommitted_file_changes + # @return [::Array<::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange>] + # A list of all files which have uncommitted Git changes. There will only be + # a single entry for any given file. + class FetchFileGitStatusesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the Git state of a file with uncommitted changes. + # @!attribute [rw] path + # @return [::String] + # The file's full path including filename, relative to the workspace root. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange::State] + # Output only. Indicates the status of the file. + class UncommittedFileChange + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the status of an uncommitted file change. + module State + # Default value. This value is unused. + STATE_UNSPECIFIED = 0 + + # The file has been newly added. + ADDED = 1 + + # The file has been deleted. + DELETED = 2 + + # The file has been modified. + MODIFIED = 3 + + # The file contains merge conflicts. + HAS_CONFLICTS = 4 + end + end + end + + # `FetchGitAheadBehind` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + class FetchGitAheadBehindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchGitAheadBehind` response message. + # @!attribute [rw] commits_ahead + # @return [::Integer] + # The number of commits in the remote branch that are not in the workspace. + # @!attribute [rw] commits_behind + # @return [::Integer] + # The number of commits in the workspace that are not in the remote branch. + class FetchGitAheadBehindResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitWorkspaceChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The commit's author. + # @!attribute [rw] commit_message + # @return [::String] + # Optional. The commit's message. + # @!attribute [rw] paths + # @return [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + class CommitWorkspaceChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitWorkspaceChanges` response message. + class CommitWorkspaceChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ResetWorkspaceChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] paths + # @return [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @!attribute [rw] clean + # @return [::Boolean] + # Optional. If set to true, untracked files will be deleted. + class ResetWorkspaceChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ResetWorkspaceChanges` response message. + class ResetWorkspaceChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileDiff` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + class FetchFileDiffRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileDiff` response message. + # @!attribute [rw] formatted_diff + # @return [::String] + # The raw formatted Git diff for the file. + class FetchFileDiffResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryDirectoryContents` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + class QueryDirectoryContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryDirectoryContents` response message. + # @!attribute [rw] directory_entries + # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # List of entries in the directory. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryDirectoryContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single entry in a directory. + # @!attribute [rw] file + # @return [::String] + # A file in the directory. + # + # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] directory + # @return [::String] + # A child directory in the directory. + # + # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] metadata + # @return [::Google::Cloud::Dataform::V1::FilesystemEntryMetadata] + # Entry with metadata. + class DirectoryEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents metadata for a single entry in a filesystem. + # @!attribute [r] size_bytes + # @return [::Integer] + # Output only. Provides the size of the entry in bytes. For directories, this + # will be 0. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Represents the time of the last modification of the entry. + class FilesystemEntryMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration containing file search request parameters. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + class SearchFilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a file search response. + # @!attribute [rw] search_results + # @return [::Array<::Google::Cloud::Dataform::V1::SearchResult>] + # List of matched results. + # @!attribute [rw] next_page_token + # @return [::String] + # Optional. A token, which can be sent as `page_token` to retrieve the next + # page. If this field is omitted, there are no subsequent pages. + class SearchFilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a search result entry. + # @!attribute [rw] file + # @return [::Google::Cloud::Dataform::V1::FileSearchResult] + # Details when search result is a file. + # + # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] directory + # @return [::Google::Cloud::Dataform::V1::DirectorySearchResult] + # Details when search result is a directory. + # + # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class SearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a file entry in search results. + # @!attribute [rw] path + # @return [::String] + # File system path relative to the workspace root. + class FileSearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a directory entry in search results. + # @!attribute [rw] path + # @return [::String] + # File system path relative to the workspace root. + class DirectorySearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MakeDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + class MakeDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MakeDirectory` response message. + class MakeDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + class RemoveDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveDirectory` response message. + class RemoveDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @!attribute [rw] new_path + # @return [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + class MoveDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveDirectory` response message. + class MoveDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @!attribute [rw] revision + # @return [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + class ReadFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadFile` response message. + # @!attribute [rw] file_contents + # @return [::String] + # The file's contents. + class ReadFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + class RemoveFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveFile` response message. + class RemoveFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @!attribute [rw] new_path + # @return [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + class MoveFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFile` response message. + class MoveFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `WriteFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file. + # @!attribute [rw] contents + # @return [::String] + # Required. The file's contents. + class WriteFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `WriteFile` response message. + class WriteFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `InstallNpmPackages` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + class InstallNpmPackagesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `InstallNpmPackages` response message. + class InstallNpmPackagesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform release configuration. + # @!attribute [rw] name + # @return [::String] + # Identifier. The release config's name. + # @!attribute [rw] git_commitish + # @return [::String] + # Required. 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` + # @!attribute [rw] code_compilation_config + # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] + # Optional. If set, fields of `code_compilation_config` override the default + # compilation settings that are specified in dataform.json. + # @!attribute [rw] cron_schedule + # @return [::String] + # Optional. Optional schedule (in cron format) for automatic creation of + # compilation results. + # @!attribute [rw] time_zone + # @return [::String] + # 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. + # @!attribute [r] recent_scheduled_release_records + # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig::ScheduledReleaseRecord>] + # Output only. Records of the 10 most recent scheduled release attempts, + # ordered in descending order of `release_time`. Updated whenever automatic + # creation of a compilation result is triggered by cron_schedule. + # @!attribute [rw] release_compilation_result + # @return [::String] + # Optional. The name of the currently released compilation result for this + # release config. This value is updated when a compilation result is + # automatically created from this release config (using cron_schedule), or + # when this resource is updated by API call (perhaps to roll back to an + # earlier release). The compilation result must have been created using this + # release config. Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # @!attribute [rw] disabled + # @return [::Boolean] + # Optional. Disables automatic creation of compilation results. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class ReleaseConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A record of an attempt to create a compilation result for this release + # config. + # @!attribute [rw] compilation_result + # @return [::String] + # The name of the created compilation result, if one was successfully + # created. Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # + # Note: The following fields are mutually exclusive: `compilation_result`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] error_status + # @return [::Google::Rpc::Status] + # The error status encountered upon this attempt to create the + # compilation result, if the attempt was unsuccessful. + # + # Note: The following fields are mutually exclusive: `error_status`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] release_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of this release attempt. + class ScheduledReleaseRecord + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `ListReleaseConfigs` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class ListReleaseConfigsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListReleaseConfigs` response message. + # @!attribute [rw] release_configs + # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # List of release configs. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListReleaseConfigsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetReleaseConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The release config's name. + class GetReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateReleaseConfig` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] release_config + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # Required. The release config to create. + # @!attribute [rw] release_config_id + # @return [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + class CreateReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateReleaseConfig` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @!attribute [rw] release_config + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # Required. The release config to update. + class UpdateReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteReleaseConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The release config's name. + class DeleteReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the result of compiling a Dataform project. + # @!attribute [rw] git_commitish + # @return [::String] + # 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` + # + # Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] workspace + # @return [::String] + # Immutable. The name of the workspace to compile. Must be in the format + # `projects/*/locations/*/repositories/*/workspaces/*`. + # + # Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] release_config + # @return [::String] + # Immutable. The name of the release config to compile. Must be in the + # format `projects/*/locations/*/repositories/*/releaseConfigs/*`. + # + # Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] name + # @return [::String] + # Output only. The compilation result's name. + # @!attribute [rw] code_compilation_config + # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] + # Immutable. If set, fields of `code_compilation_config` override the default + # compilation settings that are specified in dataform.json. + # @!attribute [r] resolved_git_commit_sha + # @return [::String] + # Output only. The fully resolved Git commit SHA of the code that was + # compiled. Not set for compilation results whose source is a workspace. + # @!attribute [r] dataform_core_version + # @return [::String] + # Output only. The version of `@dataform/core` that was used for compilation. + # @!attribute [r] compilation_errors + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult::CompilationError>] + # Output only. Errors encountered during project compilation. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. Only set if the repository has a KMS Key. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the compilation result was created. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # Output only. Metadata indicating whether this resource is user-scoped. + # `CompilationResult` resource is `user_scoped` only if it is sourced + # from a workspace. + class CompilationResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # An error encountered when attempting to compile a Dataform project. + # @!attribute [r] message + # @return [::String] + # Output only. The error's top level message. + # @!attribute [r] stack + # @return [::String] + # Output only. The error's full stack trace. + # @!attribute [r] path + # @return [::String] + # Output only. The path of the file where this error occurred, if + # available, relative to the project root. + # @!attribute [r] action_target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. The identifier of the action where this error occurred, if + # available. + class CompilationError + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configures various aspects of Dataform code compilation. + # @!attribute [rw] default_database + # @return [::String] + # Optional. The default database (Google Cloud project ID). + # @!attribute [rw] default_schema + # @return [::String] + # Optional. The default schema (BigQuery dataset ID). + # @!attribute [rw] default_location + # @return [::String] + # Optional. The default BigQuery location to use. Defaults to "US". + # See the BigQuery docs for a full list of locations: + # https://cloud.google.com/bigquery/docs/locations. + # @!attribute [rw] assertion_schema + # @return [::String] + # Optional. The default schema (BigQuery dataset ID) for assertions. + # @!attribute [rw] vars + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. User-defined variables that are made available to project code + # during compilation. + # @!attribute [rw] database_suffix + # @return [::String] + # Optional. The suffix that should be appended to all database (Google Cloud + # project ID) names. + # @!attribute [rw] schema_suffix + # @return [::String] + # Optional. The suffix that should be appended to all schema (BigQuery + # dataset ID) names. + # @!attribute [rw] table_prefix + # @return [::String] + # Optional. The prefix that should be prepended to all table names. + # @!attribute [rw] builtin_assertion_name_prefix + # @return [::String] + # Optional. The prefix to prepend to built-in assertion names. + # @!attribute [rw] default_notebook_runtime_options + # @return [::Google::Cloud::Dataform::V1::NotebookRuntimeOptions] + # Optional. The default notebook runtime options. + class CodeCompilationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class VarsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configures various aspects of Dataform notebook runtime. + # @!attribute [rw] gcs_output_bucket + # @return [::String] + # Optional. The Google Cloud Storage location to upload the result to. + # Format: `gs://bucket-name`. + # @!attribute [rw] ai_platform_notebook_runtime_template + # @return [::String] + # Optional. The resource name of the [Colab runtime template] + # (https://cloud.google.com/colab/docs/runtimes), from which a runtime is + # created for notebook executions. If not specified, a runtime is created + # with Colab's default specifications. + class NotebookRuntimeOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListCompilationResults` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListCompilationResultsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListCompilationResults` response message. + # @!attribute [rw] compilation_results + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult>] + # List of compilation results. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListCompilationResultsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetCompilationResult` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The compilation result's name. + class GetCompilationResultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateCompilationResult` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] compilation_result + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # Required. The compilation result to create. + class CreateCompilationResultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents an action identifier. If the action writes output, the output + # will be written to the referenced database object. + # @!attribute [rw] database + # @return [::String] + # Optional. The action's database (Google Cloud project ID) . + # @!attribute [rw] schema + # @return [::String] + # Optional. The action's schema (BigQuery dataset ID), within `database`. + # @!attribute [rw] name + # @return [::String] + # Optional. The action's name, within `database` and `schema`. + class Target + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes a relation and its columns. + # @!attribute [rw] description + # @return [::String] + # A text description of the relation. + # @!attribute [rw] columns + # @return [::Array<::Google::Cloud::Dataform::V1::RelationDescriptor::ColumnDescriptor>] + # A list of descriptions of columns within the relation. + # @!attribute [rw] bigquery_labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # A set of BigQuery labels that should be applied to the relation. + class RelationDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes a column. + # @!attribute [rw] path + # @return [::Array<::String>] + # The identifier for the column. Each entry in `path` represents one level + # of nesting. + # @!attribute [rw] description + # @return [::String] + # A textual description of the column. + # @!attribute [rw] bigquery_policy_tags + # @return [::Array<::String>] + # A list of BigQuery policy tags that will be applied to the column. + class ColumnDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class BigqueryLabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents a single Dataform action in a compilation result. + # @!attribute [rw] relation + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation] + # The database relation created/updated by this action. + # + # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] operations + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Operations] + # The database operations executed by this action. + # + # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] assertion + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Assertion] + # The assertion executed by this action. + # + # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] declaration + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Declaration] + # The declaration declared by this action. + # + # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] notebook + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Notebook] + # The notebook executed by this action. + # + # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_preparation + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation] + # The data preparation executed by this action. + # + # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # This action's identifier. Unique within the compilation result. + # @!attribute [rw] canonical_target + # @return [::Google::Cloud::Dataform::V1::Target] + # The action's identifier if the project had been compiled without any + # overrides configured. Unique within the compilation result. + # @!attribute [rw] file_path + # @return [::String] + # The full path including filename in which this action is located, relative + # to the workspace root. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class CompilationResultAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a database relation. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the relation and its columns. + # @!attribute [rw] relation_type + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::RelationType] + # The type of this relation. + # @!attribute [rw] select_query + # @return [::String] + # The SELECT query which returns rows which this relation should contain. + # @!attribute [rw] pre_operations + # @return [::Array<::String>] + # SQL statements to be executed before creating the relation. + # @!attribute [rw] post_operations + # @return [::Array<::String>] + # SQL statements to be executed after creating the relation. + # @!attribute [rw] incremental_table_config + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::IncrementalTableConfig] + # Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + # `relation_type` is `INCREMENTAL_TABLE`. + # @!attribute [rw] partition_expression + # @return [::String] + # The SQL expression used to partition the relation. + # @!attribute [rw] cluster_expressions + # @return [::Array<::String>] + # A list of columns or SQL expressions used to cluster the table. + # @!attribute [rw] partition_expiration_days + # @return [::Integer] + # Sets the partition expiration in days. + # @!attribute [rw] require_partition_filter + # @return [::Boolean] + # Specifies whether queries on this table must include a predicate filter + # that filters on the partitioning column. + # @!attribute [rw] additional_options + # @return [::Google::Protobuf::Map{::String => ::String}] + # Additional options that will be provided as key/value pairs into the + # options clause of a create table/view statement. See + # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language + # for more information on which options are supported. + # @!attribute [rw] connection + # @return [::String] + # Optional. The connection specifying the credentials to be used to read + # and write to external storage, such as Cloud Storage. The connection can + # have the form `{project}.{location}.{connection_id}` or + # `projects/{project}/locations/{location}/connections/{connection_id}`, + # or be set to DEFAULT. + # @!attribute [rw] table_format + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::TableFormat] + # Optional. The table format for the BigQuery table. + # @!attribute [rw] file_format + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::FileFormat] + # Optional. The file format for the BigQuery table. + # @!attribute [rw] storage_uri + # @return [::String] + # Optional. The fully qualified location prefix of the external folder + # where table data is stored. The URI should be in the format + # `gs://bucket/path_to_table/`. + class Relation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Contains settings for relations of type `INCREMENTAL_TABLE`. + # @!attribute [rw] incremental_select_query + # @return [::String] + # The SELECT query which returns rows which should be inserted into the + # relation if it already exists and is not being refreshed. + # @!attribute [rw] refresh_disabled + # @return [::Boolean] + # Whether this table should be protected from being refreshed. + # @!attribute [rw] unique_key_parts + # @return [::Array<::String>] + # A set of columns or SQL expressions used to define row uniqueness. + # If any duplicates are discovered (as defined by `unique_key_parts`), + # only the newly selected rows (as defined by `incremental_select_query`) + # will be included in the relation. + # @!attribute [rw] update_partition_filter + # @return [::String] + # A SQL expression conditional used to limit the set of existing rows + # considered for a merge operation (see `unique_key_parts` for more + # information). + # @!attribute [rw] incremental_pre_operations + # @return [::Array<::String>] + # SQL statements to be executed before inserting new rows into the + # relation. + # @!attribute [rw] incremental_post_operations + # @return [::Array<::String>] + # SQL statements to be executed after inserting new rows into the + # relation. + class IncrementalTableConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AdditionalOptionsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the type of this relation. + module RelationType + # Default value. This value is unused. + RELATION_TYPE_UNSPECIFIED = 0 + + # The relation is a table. + TABLE = 1 + + # The relation is a view. + VIEW = 2 + + # The relation is an incrementalized table. + INCREMENTAL_TABLE = 3 + + # The relation is a materialized view. + MATERIALIZED_VIEW = 4 + end + + # Supported table formats for BigQuery tables. + module TableFormat + # Default value. + TABLE_FORMAT_UNSPECIFIED = 0 + + # Apache Iceberg format. + ICEBERG = 1 + end + + # Supported file formats for BigQuery tables. + module FileFormat + # Default value. + FILE_FORMAT_UNSPECIFIED = 0 + + # Apache Parquet format. + PARQUET = 1 + end + end + + # Represents a list of arbitrary database operations. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for any output relation and its columns. Only set if + # `has_output` is true. + # @!attribute [rw] queries + # @return [::Array<::String>] + # A list of arbitrary SQL statements that will be executed without + # alteration. + # @!attribute [rw] has_output + # @return [::Boolean] + # Whether these operations produce an output relation. + class Operations + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents an assertion upon a SQL query which is required return zero + # rows. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] parent_action + # @return [::Google::Cloud::Dataform::V1::Target] + # The parent action of this assertion. Only set if this assertion was + # automatically generated. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] select_query + # @return [::String] + # The SELECT query which must return zero rows in order for this assertion + # to succeed. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the assertion's automatically-generated view and its + # columns. + class Assertion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a relation which is not managed by Dataform but which may be + # referenced by Dataform actions. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the relation and its columns. Used as documentation only, + # i.e. values here will result in no changes to the relation's metadata. + class Declaration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a notebook. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] contents + # @return [::String] + # The contents of the notebook. + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + class Notebook + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a compiled Data Preparation entity + # @!attribute [rw] contents_yaml + # @return [::String] + # The data preparation definition, stored as a YAML string. + # + # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] contents_sql + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::SqlDefinition] + # SQL definition for a Data Preparation. Contains a SQL query and + # additional context information. + # + # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + class DataPreparation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Definition of a SQL Data Preparation + # @!attribute [rw] query + # @return [::String] + # The SQL query representing the data preparation steps. Formatted as a + # Pipe SQL query statement. + # @!attribute [rw] error_table + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::ErrorTable] + # Error table configuration, + # @!attribute [rw] load + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::LoadConfig] + # Load configuration. + class SqlDefinition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Error table information, used to write error data into a BigQuery + # table. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Error Table target. + # @!attribute [rw] retention_days + # @return [::Integer] + # Error table partition expiration in days. Only positive values are + # allowed. + class ErrorTable + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Simplified load configuration for actions + # @!attribute [rw] replace + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] + # Replace destination table + # + # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] append + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] + # Append into destination table + # + # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] maximum + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] + # Insert records where the value exceeds the previous maximum value for a + # column in the destination table + # + # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] unique + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] + # Insert records where the value of a column is not already present in + # the destination table + # + # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class LoadConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simple load definition + class SimpleLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Load definition for incremental load modes + # @!attribute [rw] column + # @return [::String] + # Column name for incremental load modes + class IncrementalLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `QueryCompilationResultActions` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The compilation result's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + class QueryCompilationResultActionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryCompilationResultActions` response message. + # @!attribute [rw] compilation_result_actions + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # List of compilation result actions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryCompilationResultActionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform workflow configuration. + # @!attribute [rw] name + # @return [::String] + # Identifier. The workflow config's name. + # @!attribute [rw] release_config + # @return [::String] + # Required. The name of the release config whose release_compilation_result + # should be executed. Must be in the format + # `projects/*/locations/*/repositories/*/releaseConfigs/*`. + # @!attribute [rw] invocation_config + # @return [::Google::Cloud::Dataform::V1::InvocationConfig] + # Optional. If left unset, a default InvocationConfig will be used. + # @!attribute [rw] cron_schedule + # @return [::String] + # Optional. Optional schedule (in cron format) for automatic execution of + # this workflow config. + # @!attribute [rw] time_zone + # @return [::String] + # 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. + # @!attribute [r] recent_scheduled_execution_records + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig::ScheduledExecutionRecord>] + # Output only. Records of the 10 most recent scheduled execution attempts, + # ordered in descending order of `execution_time`. Updated whenever automatic + # creation of a workflow invocation is triggered by cron_schedule. + # @!attribute [rw] disabled + # @return [::Boolean] + # Optional. Disables automatic creation of workflow invocations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the WorkflowConfig was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the WorkflowConfig was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class WorkflowConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A record of an attempt to create a workflow invocation for this workflow + # config. + # @!attribute [rw] workflow_invocation + # @return [::String] + # The name of the created workflow invocation, if one was successfully + # created. Must be in the format + # `projects/*/locations/*/repositories/*/workflowInvocations/*`. + # + # Note: The following fields are mutually exclusive: `workflow_invocation`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] error_status + # @return [::Google::Rpc::Status] + # The error status encountered upon this attempt to create the + # workflow invocation, if the attempt was unsuccessful. + # + # Note: The following fields are mutually exclusive: `error_status`, `workflow_invocation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] execution_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of this execution attempt. + class ScheduledExecutionRecord + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Includes various configuration options for a workflow invocation. + # If both `included_targets` and `included_tags` are unset, all actions + # will be included. + # @!attribute [rw] included_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # Optional. The set of action identifiers to include. + # @!attribute [rw] included_tags + # @return [::Array<::String>] + # Optional. The set of tags to include. + # @!attribute [rw] transitive_dependencies_included + # @return [::Boolean] + # Optional. When set to true, transitive dependencies of included actions + # will be executed. + # @!attribute [rw] transitive_dependents_included + # @return [::Boolean] + # Optional. When set to true, transitive dependents of included actions will + # be executed. + # @!attribute [rw] fully_refresh_incremental_tables_enabled + # @return [::Boolean] + # Optional. When set to true, any incremental tables will be fully refreshed. + # @!attribute [rw] service_account + # @return [::String] + # Optional. The service account to run workflow invocations under. + # @!attribute [rw] query_priority + # @return [::Google::Cloud::Dataform::V1::InvocationConfig::QueryPriority] + # Optional. Specifies the priority for query execution in BigQuery. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#queries. + class InvocationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Types of priority for query execution in BigQuery. + module QueryPriority + # Default value. This value is unused. + QUERY_PRIORITY_UNSPECIFIED = 0 + + # Query will be executed in BigQuery with interactive priority. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#queries. + INTERACTIVE = 1 + + # Query will be executed in BigQuery with batch priority. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#batchqueries. + BATCH = 2 + end + end + + # `ListWorkflowConfigs` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class ListWorkflowConfigsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkflowConfigs` response message. + # @!attribute [rw] workflow_configs + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # List of workflow configs. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkflowConfigsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkflowConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow config's name. + class GetWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkflowConfig` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workflow_config + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # Required. The workflow config to create. + # @!attribute [rw] workflow_config_id + # @return [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + class CreateWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateWorkflowConfig` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @!attribute [rw] workflow_config + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # Required. The workflow config to update. + class UpdateWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkflowConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow config's name. + class DeleteWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single invocation of a compilation result. + # @!attribute [rw] compilation_result + # @return [::String] + # Immutable. The name of the compilation result to use for this invocation. + # Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # + # Note: The following fields are mutually exclusive: `compilation_result`, `workflow_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] workflow_config + # @return [::String] + # Immutable. The name of the workflow config to invoke. Must be in the + # format `projects/*/locations/*/repositories/*/workflowConfigs/*`. + # + # Note: The following fields are mutually exclusive: `workflow_config`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] name + # @return [::String] + # Output only. The workflow invocation's name. + # @!attribute [rw] invocation_config + # @return [::Google::Cloud::Dataform::V1::InvocationConfig] + # Immutable. If left unset, a default InvocationConfig will be used. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation::State] + # Output only. This workflow invocation's current state. + # @!attribute [r] invocation_timing + # @return [::Google::Type::Interval] + # Output only. This workflow invocation's timing details. + # @!attribute [r] resolved_compilation_result + # @return [::String] + # Output only. The resolved compilation result that was used to create this + # invocation. Will be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. Only set if the repository has a KMS Key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # 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. + class WorkflowInvocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the current state of a workflow invocation. + module State + # Default value. This value is unused. + STATE_UNSPECIFIED = 0 + + # The workflow invocation is currently running. + RUNNING = 1 + + # The workflow invocation succeeded. A terminal state. + SUCCEEDED = 2 + + # The workflow invocation was cancelled. A terminal state. + CANCELLED = 3 + + # The workflow invocation failed. A terminal state. + FAILED = 4 + + # The workflow invocation is being cancelled, but some actions are still + # running. + CANCELING = 5 + end + end + + # `ListWorkflowInvocations` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListWorkflowInvocationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkflowInvocations` response message. + # @!attribute [rw] workflow_invocations + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # List of workflow invocations. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkflowInvocationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class GetWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkflowInvocation` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workflow_invocation + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # Required. The workflow invocation resource to create. + class CreateWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class DeleteWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CancelWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class CancelWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CancelWorkflowInvocation` response message. + class CancelWorkflowInvocationResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single action in a workflow invocation. + # @!attribute [r] bigquery_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::BigQueryAction] + # Output only. The workflow action's bigquery action details. + # + # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] notebook_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::NotebookAction] + # Output only. The workflow action's notebook action details. + # + # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] data_preparation_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction] + # Output only. The workflow action's data preparation action details. + # + # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. This action's identifier. Unique within the workflow + # invocation. + # @!attribute [r] canonical_target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. The action's identifier if the project had been compiled + # without any overrides configured. Unique within the compilation result. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::State] + # Output only. This action's current state. + # @!attribute [r] failure_reason + # @return [::String] + # Output only. If and only if action's state is FAILED a failure reason is + # set. + # @!attribute [r] invocation_timing + # @return [::Google::Type::Interval] + # Output only. This action's timing details. + # `start_time` will be set if the action is in [RUNNING, SUCCEEDED, + # CANCELLED, FAILED] state. + # `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] + # state. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class WorkflowInvocationAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a workflow action that will run against BigQuery. + # @!attribute [r] sql_script + # @return [::String] + # Output only. The generated BigQuery SQL script that will be executed. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the BigQuery job that executed the SQL in + # sql_script. Only set once the job has started to run. + class BigQueryAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a workflow action that will run against a Notebook runtime. + # @!attribute [r] contents + # @return [::String] + # Output only. The code contents of a Notebook to be run. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the Vertex 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. + class NotebookAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a workflow action that will run a Data Preparation. + # @!attribute [r] contents_yaml + # @return [::String] + # Output only. YAML representing the contents of the data preparation. + # Can be used to show the customer what the input was to their workflow. + # + # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] contents_sql + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition] + # SQL definition for a Data Preparation. Contains a SQL query and + # additional context information. + # + # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] generated_sql + # @return [::String] + # Output only. The generated BigQuery SQL script that will be executed. For + # reference only. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the BigQuery job that executed the SQL in + # sql_script. Only set once the job has started to run. + class DataPreparationAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Definition of a SQL Data Preparation + # @!attribute [rw] query + # @return [::String] + # The SQL query representing the data preparation steps. Formatted as a + # Pipe SQL query statement. + # @!attribute [rw] error_table + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionErrorTable] + # Error table configuration, + # @!attribute [rw] load_config + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionLoadConfig] + # Load configuration. + class ActionSqlDefinition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Error table information, used to write error data into a BigQuery + # table. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Error Table target. + # @!attribute [rw] retention_days + # @return [::Integer] + # Error table partition expiration in days. Only positive values are + # allowed. + class ActionErrorTable + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simplified load configuration for actions + # @!attribute [rw] replace + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] + # Replace destination table + # + # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] append + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] + # Append into destination table + # + # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] maximum + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] + # Insert records where the value exceeds the previous maximum value for + # a column in the destination table + # + # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] unique + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] + # Insert records where the value of a column is not already present in + # the destination table + # + # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class ActionLoadConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simple load definition + class ActionSimpleLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Load definition for incremental load modes + # @!attribute [rw] column + # @return [::String] + # Column name for incremental load modes + class ActionIncrementalLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents the current state of a workflow invocation action. + module State + # The action has not yet been considered for invocation. + PENDING = 0 + + # The action is currently running. + RUNNING = 1 + + # Execution of the action was skipped because upstream dependencies did not + # all complete successfully. A terminal state. + SKIPPED = 2 + + # Execution of the action was disabled as per the configuration of the + # corresponding compilation result action. A terminal state. + DISABLED = 3 + + # The action succeeded. A terminal state. + SUCCEEDED = 4 + + # The action was cancelled. A terminal state. + CANCELLED = 5 + + # The action failed. A terminal state. + FAILED = 6 + end + end + + # `QueryWorkflowInvocationActions` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + class QueryWorkflowInvocationActionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryWorkflowInvocationActions` response message. + # @!attribute [rw] workflow_invocation_actions + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # List of workflow invocation actions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryWorkflowInvocationActionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Config for all repositories in a given project and location. + # @!attribute [rw] name + # @return [::String] + # Identifier. The config name. + # @!attribute [rw] default_kms_key_name + # @return [::String] + # Optional. The default KMS key that is used if no encryption key is provided + # when a repository is created. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class Config + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The config name. + class GetConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateConfig` request message. + # @!attribute [rw] config + # @return [::Google::Cloud::Dataform::V1::Config] + # Required. The config to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the config. + class UpdateConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Folder. This is a resource that is used to organize + # Files and other Folders and provide hierarchical access controls. + # @!attribute [rw] name + # @return [::String] + # Identifier. The Folder's name. + # @!attribute [rw] display_name + # @return [::String] + # Required. The Folder's user-friendly name. + # @!attribute [rw] containing_folder + # @return [::String] + # Optional. The containing Folder resource name. This should take + # the format: projects/\\{project}/locations/\\{location}/folders/\\{folder}, + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}, or just + # projects/\\{project}/locations/\\{location} if this is a root Folder. This + # field can only be updated through MoveFolder. + # @!attribute [r] team_folder_name + # @return [::String] + # Output only. The resource name of the TeamFolder that this Folder is + # associated with. This should take the format: + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this + # is not set, the Folder is not associated with a TeamFolder and is a + # UserFolder. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the Folder was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the Folder was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] creator_iam_principal + # @return [::String] + # Output only. The IAM principal identifier of the creator of the Folder. + class Folder + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateFolder` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # Required. The Folder to create. + class CreateFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The full resource name of the Folder to move. + # @!attribute [rw] destination_containing_folder + # @return [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + class MoveFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + class GetFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateFolder` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # Required. The updated Folder. + class UpdateFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + class DeleteFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteFolderTree` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + class DeleteFolderTreeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteTeamFolderTree` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + class DeleteTeamFolderTreeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Contains metadata about the progress of the DeleteFolderTree Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Resource name of the target of the operation. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} or + # projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::DeleteFolderTreeMetadata::State] + # Output only. The state of the operation. + # @!attribute [r] percent_complete + # @return [::Integer] + # Output only. Percent complete of the operation [0, 100]. + class DeleteFolderTreeMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the DeleteFolderTree operation. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The operation was initialized and recorded by the server, but not yet + # started. + INITIALIZED = 1 + + # The operation is in progress. + IN_PROGRESS = 2 + + # The operation has completed successfully. + SUCCEEDED = 3 + + # The operation has failed. + FAILED = 4 + end + end + + # `QueryFolderContents` request message. + # @!attribute [rw] folder + # @return [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryFolderContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryFolderContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class FolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `QueryUserRootContents` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryUserRootContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryUserRootContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryUserRootContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class RootContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents a Dataform TeamFolder. This is a resource that sits at the project + # level and is used to organize Repositories and Folders with hierarchical + # access controls. They provide a team context and stricter access controls. + # @!attribute [rw] name + # @return [::String] + # Identifier. The TeamFolder's name. + # @!attribute [rw] display_name + # @return [::String] + # Required. The TeamFolder's user-friendly name. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] creator_iam_principal + # @return [::String] + # Output only. The IAM principal identifier of the creator of the TeamFolder. + class TeamFolder + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateTeamFolder` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The TeamFolder to create. + class CreateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class GetTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateTeamFolder` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The updated TeamFolder. + class UpdateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class DeleteTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` request message. + # @!attribute [rw] team_folder + # @return [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryTeamFolderContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # List of entries in the TeamFolder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryTeamFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class TeamFolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `SearchTeamFolders` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class SearchTeamFoldersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `SearchTeamFolders` response message. + # @!attribute [rw] results + # @return [::Array<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # List of TeamFolders that match the search query. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class SearchTeamFoldersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A TeamFolder resource that is in the project / location. + class TeamFolderSearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Contains metadata about the progress of the MoveFolder Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveFolderMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveFolderMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Contains metadata about the progress of the MoveRepository Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveRepositoryMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveRepositoryMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Represents the level of detail to return for directory contents. + module DirectoryContentsView + # The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0 + + # Includes only the file or directory name. This is the default behavior. + DIRECTORY_CONTENTS_VIEW_BASIC = 1 + + # Includes all metadata for each file or directory. Currently not supported + # by CMEK-protected workspaces. + DIRECTORY_CONTENTS_VIEW_METADATA = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb new file mode 100644 index 000000000000..53e7733b6592 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # + # Example (Comparison): + # + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # + # Example (Equality): + # + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # + # Example (Logic): + # + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # + # Example (Data Manipulation): + # + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # @!attribute [rw] expression + # @return [::String] + # Textual representation of an expression in Common Expression Language + # syntax. + # @!attribute [rw] title + # @return [::String] + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # @!attribute [rw] description + # @return [::String] + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # @!attribute [rw] location + # @return [::String] + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + class Expr + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb new file mode 100644 index 000000000000..9350ca479005 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a time interval, encoded as a Timestamp start (inclusive) and a + # Timestamp end (exclusive). + # + # The start must be less than or equal to the end. + # When the start equals the end, the interval is empty (matches no time). + # When both start and end are unspecified, the interval matches any time. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Inclusive start of the interval. + # + # If specified, a Timestamp matching this interval will have to be the same + # or after the start. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Exclusive end of the interval. + # + # If specified, a Timestamp matching this interval will have to be before the + # end. + class Interval + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile new file mode 100644 index 000000000000..89707fd03706 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-dataform-v1", path: "../" +else + gem "google-cloud-dataform-v1" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb new file mode 100644 index 000000000000..c4a4e55aa460 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the cancel_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation. +# +def cancel_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + + # Call the cancel_workflow_invocation method. + result = client.cancel_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + p result +end +# [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb new file mode 100644 index 000000000000..b31e885c5837 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the commit_repository_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes. +# +def commit_repository_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + + # Call the commit_repository_changes method. + result = client.commit_repository_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb new file mode 100644 index 000000000000..de4ddc10f8e4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the commit_workspace_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes. +# +def commit_workspace_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + + # Call the commit_workspace_changes method. + result = client.commit_workspace_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb new file mode 100644 index 000000000000..4aaf8f3d74f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the compute_repository_access_token_status call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status. +# +def compute_repository_access_token_status + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + + # Call the compute_repository_access_token_status method. + result = client.compute_repository_access_token_status request + + # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + p result +end +# [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb new file mode 100644 index 000000000000..2a34f5cac7f6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateCompilationResult_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_compilation_result call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result. +# +def create_compilation_result + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + + # Call the create_compilation_result method. + result = client.create_compilation_result request + + # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + p result +end +# [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb new file mode 100644 index 000000000000..3c2f8f0e4f94 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_folder. +# +def create_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + + # Call the create_folder method. + result = client.create_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb new file mode 100644 index 000000000000..46e5de64b5d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_release_config. +# +def create_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + + # Call the create_release_config method. + result = client.create_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb new file mode 100644 index 000000000000..186c81061421 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_repository. +# +def create_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + + # Call the create_repository method. + result = client.create_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb new file mode 100644 index 000000000000..4cb79ef5ac63 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder. +# +def create_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + + # Call the create_team_folder method. + result = client.create_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb new file mode 100644 index 000000000000..446e1c2e93bb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config. +# +def create_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + + # Call the create_workflow_config method. + result = client.create_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb new file mode 100644 index 000000000000..ad915149df4d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation. +# +def create_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + + # Call the create_workflow_invocation method. + result = client.create_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb new file mode 100644 index 000000000000..89e20592d4f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workspace. +# +def create_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + + # Call the create_workspace method. + result = client.create_workspace request + + # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb new file mode 100644 index 000000000000..b77ee48d1380 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder. +# +def delete_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + + # Call the delete_folder method. + result = client.delete_folder request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb new file mode 100644 index 000000000000..b2e3907a8605 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteFolderTree_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_folder_tree call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree. +# +def delete_folder_tree + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + + # Call the delete_folder_tree method. + result = client.delete_folder_tree request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb new file mode 100644 index 000000000000..b21bc0f0a3fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config. +# +def delete_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + + # Call the delete_release_config method. + result = client.delete_release_config request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb new file mode 100644 index 000000000000..c7267ab8814d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_repository. +# +def delete_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + + # Call the delete_repository method. + result = client.delete_repository request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb new file mode 100644 index 000000000000..45cfe3a54207 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder. +# +def delete_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + + # Call the delete_team_folder method. + result = client.delete_team_folder request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb new file mode 100644 index 000000000000..9ef55af12135 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_team_folder_tree call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree. +# +def delete_team_folder_tree + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + + # Call the delete_team_folder_tree method. + result = client.delete_team_folder_tree request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb new file mode 100644 index 000000000000..68073c51b458 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config. +# +def delete_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + + # Call the delete_workflow_config method. + result = client.delete_workflow_config request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb new file mode 100644 index 000000000000..656f44075001 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation. +# +def delete_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + + # Call the delete_workflow_invocation method. + result = client.delete_workflow_invocation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb new file mode 100644 index 000000000000..56e820984467 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace. +# +def delete_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + + # Call the delete_workspace method. + result = client.delete_workspace request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb new file mode 100644 index 000000000000..8730eefe3970 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchFileDiff_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_file_diff call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff. +# +def fetch_file_diff + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + + # Call the fetch_file_diff method. + result = client.fetch_file_diff request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb new file mode 100644 index 000000000000..4715c81828c0 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_file_git_statuses call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses. +# +def fetch_file_git_statuses + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + + # Call the fetch_file_git_statuses method. + result = client.fetch_file_git_statuses request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb new file mode 100644 index 000000000000..0fc4c454effd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_git_ahead_behind call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind. +# +def fetch_git_ahead_behind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + + # Call the fetch_git_ahead_behind method. + result = client.fetch_git_ahead_behind request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb new file mode 100644 index 000000000000..3c55465ceb19 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchRemoteBranches_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_remote_branches call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches. +# +def fetch_remote_branches + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + + # Call the fetch_remote_branches method. + result = client.fetch_remote_branches request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb new file mode 100644 index 000000000000..da57dd87c79e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_repository_history call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history. +# +def fetch_repository_history + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + + # Call the fetch_repository_history method. + result = client.fetch_repository_history request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb new file mode 100644 index 000000000000..999fd435d184 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetCompilationResult_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_compilation_result call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result. +# +def get_compilation_result + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + + # Call the get_compilation_result method. + result = client.get_compilation_result request + + # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + p result +end +# [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb new file mode 100644 index 000000000000..e783c6e72d27 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_config. +# +def get_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetConfigRequest.new + + # Call the get_config method. + result = client.get_config request + + # The returned object is of type Google::Cloud::Dataform::V1::Config. + p result +end +# [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb new file mode 100644 index 000000000000..689877e96673 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_folder. +# +def get_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetFolderRequest.new + + # Call the get_folder method. + result = client.get_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb new file mode 100644 index 000000000000..df48c36f2d16 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetIamPolicy_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_iam_policy call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END dataform_v1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb new file mode 100644 index 000000000000..a84831df98d5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_release_config. +# +def get_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + + # Call the get_release_config method. + result = client.get_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb new file mode 100644 index 000000000000..c5072fb2408f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_repository. +# +def get_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + + # Call the get_repository method. + result = client.get_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb new file mode 100644 index 000000000000..287238e52743 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder. +# +def get_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + + # Call the get_team_folder method. + result = client.get_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb new file mode 100644 index 000000000000..f381745b38fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config. +# +def get_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + + # Call the get_workflow_config method. + result = client.get_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb new file mode 100644 index 000000000000..7a4356138297 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation. +# +def get_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + + # Call the get_workflow_invocation method. + result = client.get_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb new file mode 100644 index 000000000000..06b3bd6fe5eb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workspace. +# +def get_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + + # Call the get_workspace method. + result = client.get_workspace request + + # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb new file mode 100644 index 000000000000..921bd63946d7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_InstallNpmPackages_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the install_npm_packages call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages. +# +def install_npm_packages + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + + # Call the install_npm_packages method. + result = client.install_npm_packages request + + # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + p result +end +# [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb new file mode 100644 index 000000000000..593c43c2b30e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListCompilationResults_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_compilation_results call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results. +# +def list_compilation_results + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + + # Call the list_compilation_results method. + result = client.list_compilation_results request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + p item + end +end +# [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb new file mode 100644 index 000000000000..8ea574eff2a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListReleaseConfigs_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_release_configs call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs. +# +def list_release_configs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + + # Call the list_release_configs method. + result = client.list_release_configs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + p item + end +end +# [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb new file mode 100644 index 000000000000..321b0cf9c512 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListRepositories_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_repositories call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_repositories. +# +def list_repositories + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + + # Call the list_repositories method. + result = client.list_repositories request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + p item + end +end +# [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb new file mode 100644 index 000000000000..cc9629d319fb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workflow_configs call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs. +# +def list_workflow_configs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + + # Call the list_workflow_configs method. + result = client.list_workflow_configs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb new file mode 100644 index 000000000000..13e62b798423 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workflow_invocations call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations. +# +def list_workflow_invocations + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + + # Call the list_workflow_invocations method. + result = client.list_workflow_invocations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb new file mode 100644 index 000000000000..8f9be608db55 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkspaces_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workspaces call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces. +# +def list_workspaces + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + + # Call the list_workspaces method. + result = client.list_workspaces request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb new file mode 100644 index 000000000000..47f391f846c6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MakeDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the make_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#make_directory. +# +def make_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + + # Call the make_directory method. + result = client.make_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb new file mode 100644 index 000000000000..fb67af9605e9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_directory. +# +def move_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + + # Call the move_directory method. + result = client.move_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb new file mode 100644 index 000000000000..4f22d16e6721 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_file. +# +def move_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveFileRequest.new + + # Call the move_file method. + result = client.move_file request + + # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb new file mode 100644 index 000000000000..eebe84d46640 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_folder. +# +def move_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + + # Call the move_folder method. + result = client.move_folder request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb new file mode 100644 index 000000000000..4eca8dd9c54f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_repository. +# +def move_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + + # Call the move_repository method. + result = client.move_repository request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb new file mode 100644 index 000000000000..d929a9ff389b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_PullGitCommits_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the pull_git_commits call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits. +# +def pull_git_commits + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + + # Call the pull_git_commits method. + result = client.pull_git_commits request + + # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + p result +end +# [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb new file mode 100644 index 000000000000..a68f07194b2b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_PushGitCommits_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the push_git_commits call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits. +# +def push_git_commits + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + + # Call the push_git_commits method. + result = client.push_git_commits request + + # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + p result +end +# [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb new file mode 100644 index 000000000000..5639fdf8046b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_compilation_result_actions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions. +# +def query_compilation_result_actions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + + # Call the query_compilation_result_actions method. + result = client.query_compilation_result_actions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb new file mode 100644 index 000000000000..b369a3508ead --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_directory_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents. +# +def query_directory_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + + # Call the query_directory_contents method. + result = client.query_directory_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb new file mode 100644 index 000000000000..ad16707edc04 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryFolderContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_folder_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents. +# +def query_folder_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + + # Call the query_folder_contents method. + result = client.query_folder_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb new file mode 100644 index 000000000000..60f03d3438fe --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_repository_directory_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents. +# +def query_repository_directory_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + + # Call the query_repository_directory_contents method. + result = client.query_repository_directory_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb new file mode 100644 index 000000000000..90a3760b3221 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_team_folder_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents. +# +def query_team_folder_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + + # Call the query_team_folder_contents method. + result = client.query_team_folder_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb new file mode 100644 index 000000000000..d070b3379fd4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryUserRootContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_user_root_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents. +# +def query_user_root_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + + # Call the query_user_root_contents method. + result = client.query_user_root_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb new file mode 100644 index 000000000000..d44f575db9f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_workflow_invocation_actions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions. +# +def query_workflow_invocation_actions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + + # Call the query_workflow_invocation_actions method. + result = client.query_workflow_invocation_actions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb new file mode 100644 index 000000000000..9d32a0e63b2e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ReadFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the read_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#read_file. +# +def read_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ReadFileRequest.new + + # Call the read_file method. + result = client.read_file request + + # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb new file mode 100644 index 000000000000..52f0945b9d40 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ReadRepositoryFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the read_repository_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file. +# +def read_repository_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + + # Call the read_repository_file method. + result = client.read_repository_file request + + # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb new file mode 100644 index 000000000000..797de4b0ddad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_RemoveDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the remove_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#remove_directory. +# +def remove_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + + # Call the remove_directory method. + result = client.remove_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb new file mode 100644 index 000000000000..7e1ae41d3621 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_RemoveFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the remove_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#remove_file. +# +def remove_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + + # Call the remove_file method. + result = client.remove_file request + + # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb new file mode 100644 index 000000000000..3e320ac0b35b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the reset_workspace_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes. +# +def reset_workspace_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + + # Call the reset_workspace_changes method. + result = client.reset_workspace_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb new file mode 100644 index 000000000000..d6359d3370f5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SearchFiles_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the search_files call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#search_files. +# +def search_files + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + + # Call the search_files method. + result = client.search_files request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + p item + end +end +# [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb new file mode 100644 index 000000000000..4a5fa15a73e6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SearchTeamFolders_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the search_team_folders call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders. +# +def search_team_folders + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + + # Call the search_team_folders method. + result = client.search_team_folders request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + p item + end +end +# [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb new file mode 100644 index 000000000000..335c8370204f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SetIamPolicy_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the set_iam_policy call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END dataform_v1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb new file mode 100644 index 000000000000..9c833d143ff9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_TestIamPermissions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the test_iam_permissions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END dataform_v1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb new file mode 100644 index 000000000000..cda3be7976e1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_config. +# +def update_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + + # Call the update_config method. + result = client.update_config request + + # The returned object is of type Google::Cloud::Dataform::V1::Config. + p result +end +# [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb new file mode 100644 index 000000000000..f2f0cfad66fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_folder. +# +def update_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + + # Call the update_folder method. + result = client.update_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb new file mode 100644 index 000000000000..67f11c154df8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_release_config. +# +def update_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + + # Call the update_release_config method. + result = client.update_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb new file mode 100644 index 000000000000..35f7462d0dac --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_repository. +# +def update_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + + # Call the update_repository method. + result = client.update_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb new file mode 100644 index 000000000000..b98113a24978 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder. +# +def update_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + + # Call the update_team_folder method. + result = client.update_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb new file mode 100644 index 000000000000..570ff222440b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config. +# +def update_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + + # Call the update_workflow_config method. + result = client.update_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb new file mode 100644 index 000000000000..75fabd872e56 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_WriteFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the write_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#write_file. +# +def write_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::WriteFileRequest.new + + # Call the write_file method. + result = client.write_file request + + # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb new file mode 100644 index 000000000000..ac17556a7c35 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_CancelOperation_sync] +require "google/longrunning" + +## +# Snippet for the cancel_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#cancel_operation. +# +def cancel_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::CancelOperationRequest.new + + # Call the cancel_operation method. + result = client.cancel_operation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Operations_CancelOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb new file mode 100644 index 000000000000..5a5ca99c1168 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_DeleteOperation_sync] +require "google/longrunning" + +## +# Snippet for the delete_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#delete_operation. +# +def delete_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::DeleteOperationRequest.new + + # Call the delete_operation method. + result = client.delete_operation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Operations_DeleteOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb new file mode 100644 index 000000000000..cd1170168513 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_GetOperation_sync] +require "google/longrunning" + +## +# Snippet for the get_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#get_operation. +# +def get_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::GetOperationRequest.new + + # Call the get_operation method. + result = client.get_operation request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Operations_GetOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb new file mode 100644 index 000000000000..f9b07ec66d86 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_ListOperations_sync] +require "google/longrunning" + +## +# Snippet for the list_operations call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#list_operations. +# +def list_operations + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::ListOperationsRequest.new + + # Call the list_operations method. + result = client.list_operations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Longrunning::Operation. + p item + end +end +# [END dataform_v1_generated_Operations_ListOperations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb new file mode 100644 index 000000000000..bbec9a28ddd7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_WaitOperation_sync] +require "google/longrunning" + +## +# Snippet for the wait_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#wait_operation. +# +def wait_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::WaitOperationRequest.new + + # Call the wait_operation method. + result = client.wait_operation request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Operations_WaitOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json new file mode 100644 index 000000000000..6ded7292abaa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json @@ -0,0 +1,2935 @@ +{ + "client_library": { + "name": "google-cloud-dataform-v1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.cloud.dataform.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "region_tag": "dataform_v1_generated_Dataform_GetTeamFolder_sync", + "title": "Snippet for the get_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder.", + "file": "dataform/get_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateTeamFolder_sync", + "title": "Snippet for the create_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder.", + "file": "dataform/create_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateTeamFolder_sync", + "title": "Snippet for the update_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder.", + "file": "dataform/update_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolder_sync", + "title": "Snippet for the delete_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder.", + "file": "dataform/delete_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync", + "title": "Snippet for the delete_team_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree.", + "file": "dataform/delete_team_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_sync", + "title": "Snippet for the query_team_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents.", + "file": "dataform/query_team_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_team_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryTeamFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SearchTeamFolders_sync", + "title": "Snippet for the search_team_folders call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders.", + "file": "dataform/search_team_folders.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_team_folders", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SearchTeamFolders", + "full_name": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetFolder_sync", + "title": "Snippet for the get_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_folder.", + "file": "dataform/get_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateFolder_sync", + "title": "Snippet for the create_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_folder.", + "file": "dataform/create_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateFolder_sync", + "title": "Snippet for the update_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_folder.", + "file": "dataform/update_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolder_sync", + "title": "Snippet for the delete_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder.", + "file": "dataform/delete_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolderTree_sync", + "title": "Snippet for the delete_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree.", + "file": "dataform/delete_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryFolderContents_sync", + "title": "Snippet for the query_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents.", + "file": "dataform/query_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryUserRootContents_sync", + "title": "Snippet for the query_user_root_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents.", + "file": "dataform/query_user_root_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_user_root_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryUserRootContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveFolder_sync", + "title": "Snippet for the move_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_folder.", + "file": "dataform/move_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveFolder", + "full_name": "google.cloud.dataform.v1.Dataform.MoveFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListRepositories_sync", + "title": "Snippet for the list_repositories call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_repositories.", + "file": "dataform/list_repositories.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_repositories", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_repositories", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListRepositoriesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListRepositoriesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListRepositories", + "full_name": "google.cloud.dataform.v1.Dataform.ListRepositories", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetRepository_sync", + "title": "Snippet for the get_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_repository.", + "file": "dataform/get_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetRepository", + "full_name": "google.cloud.dataform.v1.Dataform.GetRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateRepository_sync", + "title": "Snippet for the create_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_repository.", + "file": "dataform/create_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateRepository", + "full_name": "google.cloud.dataform.v1.Dataform.CreateRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateRepository_sync", + "title": "Snippet for the update_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_repository.", + "file": "dataform/update_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateRepository", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteRepository_sync", + "title": "Snippet for the delete_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_repository.", + "file": "dataform/delete_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteRepository", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveRepository_sync", + "title": "Snippet for the move_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_repository.", + "file": "dataform/move_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveRepository", + "full_name": "google.cloud.dataform.v1.Dataform.MoveRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_sync", + "title": "Snippet for the commit_repository_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes.", + "file": "dataform/commit_repository_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "commit_repository_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CommitRepositoryChanges", + "full_name": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ReadRepositoryFile_sync", + "title": "Snippet for the read_repository_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file.", + "file": "dataform/read_repository_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "read_repository_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ReadRepositoryFile", + "full_name": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync", + "title": "Snippet for the query_repository_directory_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents.", + "file": "dataform/query_repository_directory_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_repository_directory_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryRepositoryDirectoryContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchRepositoryHistory_sync", + "title": "Snippet for the fetch_repository_history call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history.", + "file": "dataform/fetch_repository_history.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_repository_history", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchRepositoryHistory", + "full_name": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync", + "title": "Snippet for the compute_repository_access_token_status call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status.", + "file": "dataform/compute_repository_access_token_status.rb", + "language": "RUBY", + "client_method": { + "short_name": "compute_repository_access_token_status", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ComputeRepositoryAccessTokenStatus", + "full_name": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchRemoteBranches_sync", + "title": "Snippet for the fetch_remote_branches call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches.", + "file": "dataform/fetch_remote_branches.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_remote_branches", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchRemoteBranches", + "full_name": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkspaces_sync", + "title": "Snippet for the list_workspaces call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces.", + "file": "dataform/list_workspaces.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workspaces", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkspacesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkspacesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkspaces", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkspaces", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkspace_sync", + "title": "Snippet for the get_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workspace.", + "file": "dataform/get_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Workspace", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkspace_sync", + "title": "Snippet for the create_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workspace.", + "file": "dataform/create_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Workspace", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkspace_sync", + "title": "Snippet for the delete_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace.", + "file": "dataform/delete_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_InstallNpmPackages_sync", + "title": "Snippet for the install_npm_packages call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages.", + "file": "dataform/install_npm_packages.rb", + "language": "RUBY", + "client_method": { + "short_name": "install_npm_packages", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "InstallNpmPackages", + "full_name": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_PullGitCommits_sync", + "title": "Snippet for the pull_git_commits call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits.", + "file": "dataform/pull_git_commits.rb", + "language": "RUBY", + "client_method": { + "short_name": "pull_git_commits", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::PullGitCommitsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::PullGitCommitsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "PullGitCommits", + "full_name": "google.cloud.dataform.v1.Dataform.PullGitCommits", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_PushGitCommits_sync", + "title": "Snippet for the push_git_commits call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits.", + "file": "dataform/push_git_commits.rb", + "language": "RUBY", + "client_method": { + "short_name": "push_git_commits", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::PushGitCommitsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::PushGitCommitsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "PushGitCommits", + "full_name": "google.cloud.dataform.v1.Dataform.PushGitCommits", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchFileGitStatuses_sync", + "title": "Snippet for the fetch_file_git_statuses call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses.", + "file": "dataform/fetch_file_git_statuses.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_file_git_statuses", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchFileGitStatuses", + "full_name": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchGitAheadBehind_sync", + "title": "Snippet for the fetch_git_ahead_behind call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind.", + "file": "dataform/fetch_git_ahead_behind.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_git_ahead_behind", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchGitAheadBehind", + "full_name": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync", + "title": "Snippet for the commit_workspace_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes.", + "file": "dataform/commit_workspace_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "commit_workspace_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CommitWorkspaceChanges", + "full_name": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync", + "title": "Snippet for the reset_workspace_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes.", + "file": "dataform/reset_workspace_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "reset_workspace_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ResetWorkspaceChanges", + "full_name": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchFileDiff_sync", + "title": "Snippet for the fetch_file_diff call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff.", + "file": "dataform/fetch_file_diff.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_file_diff", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchFileDiffRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchFileDiffResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchFileDiff", + "full_name": "google.cloud.dataform.v1.Dataform.FetchFileDiff", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryDirectoryContents_sync", + "title": "Snippet for the query_directory_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents.", + "file": "dataform/query_directory_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_directory_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryDirectoryContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SearchFiles_sync", + "title": "Snippet for the search_files call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_files.", + "file": "dataform/search_files.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_files", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_files", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::SearchFilesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::SearchFilesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SearchFiles", + "full_name": "google.cloud.dataform.v1.Dataform.SearchFiles", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MakeDirectory_sync", + "title": "Snippet for the make_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#make_directory.", + "file": "dataform/make_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "make_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#make_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MakeDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MakeDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MakeDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.MakeDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_RemoveDirectory_sync", + "title": "Snippet for the remove_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_directory.", + "file": "dataform/remove_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "remove_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::RemoveDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::RemoveDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "RemoveDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.RemoveDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveDirectory_sync", + "title": "Snippet for the move_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_directory.", + "file": "dataform/move_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MoveDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.MoveDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ReadFile_sync", + "title": "Snippet for the read_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_file.", + "file": "dataform/read_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "read_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ReadFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReadFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ReadFile", + "full_name": "google.cloud.dataform.v1.Dataform.ReadFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_RemoveFile_sync", + "title": "Snippet for the remove_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_file.", + "file": "dataform/remove_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "remove_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::RemoveFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::RemoveFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "RemoveFile", + "full_name": "google.cloud.dataform.v1.Dataform.RemoveFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveFile_sync", + "title": "Snippet for the move_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_file.", + "file": "dataform/move_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MoveFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveFile", + "full_name": "google.cloud.dataform.v1.Dataform.MoveFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_WriteFile_sync", + "title": "Snippet for the write_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#write_file.", + "file": "dataform/write_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "write_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#write_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::WriteFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WriteFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "WriteFile", + "full_name": "google.cloud.dataform.v1.Dataform.WriteFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListReleaseConfigs_sync", + "title": "Snippet for the list_release_configs call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs.", + "file": "dataform/list_release_configs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_release_configs", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListReleaseConfigs", + "full_name": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetReleaseConfig_sync", + "title": "Snippet for the get_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_release_config.", + "file": "dataform/get_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateReleaseConfig_sync", + "title": "Snippet for the create_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_release_config.", + "file": "dataform/create_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateReleaseConfig_sync", + "title": "Snippet for the update_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_release_config.", + "file": "dataform/update_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteReleaseConfig_sync", + "title": "Snippet for the delete_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config.", + "file": "dataform/delete_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListCompilationResults_sync", + "title": "Snippet for the list_compilation_results call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results.", + "file": "dataform/list_compilation_results.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_compilation_results", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListCompilationResultsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListCompilationResultsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListCompilationResults", + "full_name": "google.cloud.dataform.v1.Dataform.ListCompilationResults", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetCompilationResult_sync", + "title": "Snippet for the get_compilation_result call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result.", + "file": "dataform/get_compilation_result.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_compilation_result", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetCompilationResultRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetCompilationResult", + "full_name": "google.cloud.dataform.v1.Dataform.GetCompilationResult", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateCompilationResult_sync", + "title": "Snippet for the create_compilation_result call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result.", + "file": "dataform/create_compilation_result.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_compilation_result", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateCompilationResultRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateCompilationResult", + "full_name": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryCompilationResultActions_sync", + "title": "Snippet for the query_compilation_result_actions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions.", + "file": "dataform/query_compilation_result_actions.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_compilation_result_actions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryCompilationResultActions", + "full_name": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkflowConfigs_sync", + "title": "Snippet for the list_workflow_configs call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs.", + "file": "dataform/list_workflow_configs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workflow_configs", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkflowConfigs", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkflowConfig_sync", + "title": "Snippet for the get_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config.", + "file": "dataform/get_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowConfig_sync", + "title": "Snippet for the create_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config.", + "file": "dataform/create_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync", + "title": "Snippet for the update_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config.", + "file": "dataform/update_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync", + "title": "Snippet for the delete_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config.", + "file": "dataform/delete_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkflowInvocations_sync", + "title": "Snippet for the list_workflow_invocations call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations.", + "file": "dataform/list_workflow_invocations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workflow_invocations", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkflowInvocations", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkflowInvocation_sync", + "title": "Snippet for the get_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation.", + "file": "dataform/get_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync", + "title": "Snippet for the create_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation.", + "file": "dataform/create_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync", + "title": "Snippet for the delete_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation.", + "file": "dataform/delete_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync", + "title": "Snippet for the cancel_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation.", + "file": "dataform/cancel_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "cancel_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CancelWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync", + "title": "Snippet for the query_workflow_invocation_actions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions.", + "file": "dataform/query_workflow_invocation_actions.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_workflow_invocation_actions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryWorkflowInvocationActions", + "full_name": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetConfig_sync", + "title": "Snippet for the get_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_config.", + "file": "dataform/get_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Config", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateConfig_sync", + "title": "Snippet for the update_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_config.", + "file": "dataform/update_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Config", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy.", + "file": "dataform/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.GetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy.", + "file": "dataform/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.SetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions.", + "file": "dataform/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.cloud.dataform.v1.Dataform.TestIamPermissions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json new file mode 100644 index 000000000000..ae5311ef4402 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json @@ -0,0 +1,215 @@ +{ + "client_library": { + "name": "google-cloud-dataform-v1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.longrunning", + "version": "longrunning" + } + ] + }, + "snippets": [ + { + "region_tag": "dataform_v1_generated_Operations_ListOperations_sync", + "title": "Snippet for the list_operations call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#list_operations.", + "file": "operations/list_operations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_operations", + "full_name": "::Google::Longrunning::Operations::Client#list_operations", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::ListOperationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::ListOperationsResponse", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "ListOperations", + "full_name": "google.longrunning.Operations.ListOperations", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_GetOperation_sync", + "title": "Snippet for the get_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#get_operation.", + "file": "operations/get_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_operation", + "full_name": "::Google::Longrunning::Operations::Client#get_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::GetOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "GetOperation", + "full_name": "google.longrunning.Operations.GetOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_DeleteOperation_sync", + "title": "Snippet for the delete_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#delete_operation.", + "file": "operations/delete_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_operation", + "full_name": "::Google::Longrunning::Operations::Client#delete_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::DeleteOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "DeleteOperation", + "full_name": "google.longrunning.Operations.DeleteOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_CancelOperation_sync", + "title": "Snippet for the cancel_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#cancel_operation.", + "file": "operations/cancel_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "cancel_operation", + "full_name": "::Google::Longrunning::Operations::Client#cancel_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::CancelOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "CancelOperation", + "full_name": "google.longrunning.Operations.CancelOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_WaitOperation_sync", + "title": "Snippet for the wait_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#wait_operation.", + "file": "operations/wait_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "wait_operation", + "full_name": "::Google::Longrunning::Operations::Client#wait_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::WaitOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "WaitOperation", + "full_name": "google.longrunning.Operations.WaitOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb new file mode 100644 index 000000000000..98458c3d1dbd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform_services_pb" +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb new file mode 100644 index 000000000000..1843f1d3cb44 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb @@ -0,0 +1,211 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_compilation_result_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.compilation_result_path project: "value0", location: "value1", repository: "value2", compilation_result: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/compilationResults/value3", path + end + end + + def test_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.config_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1/config", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_crypto_key_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path + end + end + + def test_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.folder_path project: "value0", location: "value1", folder: "value2" + assert_equal "projects/value0/locations/value1/folders/value2", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_notebook_runtime_template_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.notebook_runtime_template_path project: "value0", location: "value1", notebook_runtime_template: "value2" + assert_equal "projects/value0/locations/value1/notebookRuntimeTemplates/value2", path + end + end + + def test_release_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.release_config_path project: "value0", location: "value1", repository: "value2", release_config: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/releaseConfigs/value3", path + end + end + + def test_repository_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.repository_path project: "value0", location: "value1", repository: "value2" + assert_equal "projects/value0/locations/value1/repositories/value2", path + end + end + + def test_secret_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.secret_version_path project: "value0", secret: "value1", version: "value2" + assert_equal "projects/value0/secrets/value1/versions/value2", path + end + end + + def test_team_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.team_folder_path project: "value0", location: "value1", team_folder: "value2" + assert_equal "projects/value0/locations/value1/teamFolders/value2", path + end + end + + def test_workflow_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workflow_config_path project: "value0", location: "value1", repository: "value2", workflow_config: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workflowConfigs/value3", path + end + end + + def test_workflow_invocation_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workflow_invocation_path project: "value0", location: "value1", repository: "value2", workflow_invocation: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workflowInvocations/value3", path + end + end + + def test_workspace_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workspace_path project: "value0", location: "value1", repository: "value2", workspace: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workspaces/value3", path + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb new file mode 100644 index 000000000000..07fde9553884 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb @@ -0,0 +1,4148 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform/rest" + + +class ::Google::Cloud::Dataform::V1::Dataform::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_count + end + end + end + + def test_create_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_count + end + end + end + + def test_update_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_count + end + end + end + + def test_query_team_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_team_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_count + end + end + end + + def test_search_team_folders + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_team_folders_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_count + end + end + end + + def test_get_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_count + end + end + end + + def test_create_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_count + end + end + end + + def test_update_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_count + end + end + end + + def test_delete_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_count + end + end + end + + def test_delete_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_count + end + end + end + + def test_query_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_count + end + end + end + + def test_query_user_root_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_user_root_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_count + end + end + end + + def test_move_folder + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_count + end + end + end + + def test_list_repositories + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_repositories_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_repositories_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_repositories_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_repositories_client_stub.call_count + end + end + end + + def test_get_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_repository({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_repository name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_repository({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_repository_client_stub.call_count + end + end + end + + def test_create_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + repository = {} + repository_id = "hello world" + + create_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_repository parent: parent, repository: repository, repository_id: repository_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_repository_client_stub.call_count + end + end + end + + def test_update_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + repository = {} + + update_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_repository({ update_mask: update_mask, repository: repository }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_repository update_mask: update_mask, repository: repository do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_repository({ update_mask: update_mask, repository: repository }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_repository_client_stub.call_count + end + end + end + + def test_delete_repository + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_repository({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_repository name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_repository({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_repository_client_stub.call_count + end + end + end + + def test_move_repository + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_count + end + end + end + + def test_commit_repository_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_metadata = {} + required_head_commit_sha = "hello world" + file_operations = {} + + commit_repository_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_repository_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, commit_repository_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, commit_repository_changes_client_stub.call_count + end + end + end + + def test_read_repository_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + + read_repository_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_repository_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, read_repository_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.read_repository_file name: name, commit_sha: commit_sha, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, read_repository_file_client_stub.call_count + end + end + end + + def test_query_repository_directory_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + + query_repository_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_repository_directory_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_repository_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_repository_directory_contents_client_stub.call_count + end + end + end + + def test_fetch_repository_history + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + fetch_repository_history_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_repository_history_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_repository_history_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_repository_history_client_stub.call_count + end + end + end + + def test_compute_repository_access_token_status + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + compute_repository_access_token_status_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_compute_repository_access_token_status_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, compute_repository_access_token_status_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.compute_repository_access_token_status({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.compute_repository_access_token_status name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.compute_repository_access_token_status({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, compute_repository_access_token_status_client_stub.call_count + end + end + end + + def test_fetch_remote_branches + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_remote_branches_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_remote_branches_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_remote_branches_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_remote_branches({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_remote_branches name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_remote_branches({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_remote_branches_client_stub.call_count + end + end + end + + def test_list_workspaces + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workspaces_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workspaces_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workspaces_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workspaces_client_stub.call_count + end + end + end + + def test_get_workspace + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Workspace.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workspace({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workspace name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workspace({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workspace_client_stub.call_count + end + end + end + + def test_create_workspace + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Workspace.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workspace = {} + workspace_id = "hello world" + + create_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workspace_client_stub.call_count + end + end + end + + def test_delete_workspace + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workspace({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workspace name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workspace({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workspace_client_stub.call_count + end + end + end + + def test_install_npm_packages + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + + install_npm_packages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_install_npm_packages_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, install_npm_packages_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.install_npm_packages({ workspace: workspace }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.install_npm_packages workspace: workspace do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.install_npm_packages({ workspace: workspace }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, install_npm_packages_client_stub.call_count + end + end + end + + def test_pull_git_commits + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + author = {} + + pull_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_pull_git_commits_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, pull_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, pull_git_commits_client_stub.call_count + end + end + end + + def test_push_git_commits + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + push_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_push_git_commits_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, push_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.push_git_commits({ name: name, remote_branch: remote_branch }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.push_git_commits name: name, remote_branch: remote_branch do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.push_git_commits({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, push_git_commits_client_stub.call_count + end + end + end + + def test_fetch_file_git_statuses + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_file_git_statuses_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_git_statuses_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_file_git_statuses_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_file_git_statuses({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_file_git_statuses name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_file_git_statuses({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_file_git_statuses_client_stub.call_count + end + end + end + + def test_fetch_git_ahead_behind + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + fetch_git_ahead_behind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_git_ahead_behind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_git_ahead_behind_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_git_ahead_behind_client_stub.call_count + end + end + end + + def test_commit_workspace_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + author = {} + commit_message = "hello world" + paths = ["hello world"] + + commit_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_workspace_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, commit_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, commit_workspace_changes_client_stub.call_count + end + end + end + + def test_reset_workspace_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + paths = ["hello world"] + clean = true + + reset_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_reset_workspace_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, reset_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.reset_workspace_changes name: name, paths: paths, clean: clean do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, reset_workspace_changes_client_stub.call_count + end + end + end + + def test_fetch_file_diff + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + fetch_file_diff_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_diff_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_file_diff_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_file_diff({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_file_diff workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_file_diff({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_file_diff_client_stub.call_count + end + end + end + + def test_query_directory_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + + query_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_directory_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_directory_contents_client_stub.call_count + end + end + end + + def test_search_files + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + search_files_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_files_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_files_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_files_client_stub.call_count + end + end + end + + def test_make_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + make_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_make_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, make_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.make_directory({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.make_directory workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.make_directory({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, make_directory_client_stub.call_count + end + end + end + + def test_remove_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, remove_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.remove_directory({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.remove_directory workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.remove_directory({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, remove_directory_client_stub.call_count + end + end + end + + def test_move_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_directory workspace: workspace, path: path, new_path: new_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_directory({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_directory_client_stub.call_count + end + end + end + + def test_read_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReadFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + revision = "hello world" + + read_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, read_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.read_file({ workspace: workspace, path: path, revision: revision }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.read_file workspace: workspace, path: path, revision: revision do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.read_file({ workspace: workspace, path: path, revision: revision }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, read_file_client_stub.call_count + end + end + end + + def test_remove_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, remove_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.remove_file({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.remove_file workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.remove_file({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, remove_file_client_stub.call_count + end + end + end + + def test_move_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MoveFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_file workspace: workspace, path: path, new_path: new_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_file({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_file_client_stub.call_count + end + end + end + + def test_write_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WriteFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + contents = "hello world" + + write_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_write_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, write_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.write_file({ workspace: workspace, path: path, contents: contents }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.write_file workspace: workspace, path: path, contents: contents do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.write_file({ workspace: workspace, path: path, contents: contents }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, write_file_client_stub.call_count + end + end + end + + def test_list_release_configs + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_release_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_release_configs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_release_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_release_configs_client_stub.call_count + end + end + end + + def test_get_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_release_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_release_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_release_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_release_config_client_stub.call_count + end + end + end + + def test_create_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_config = {} + release_config_id = "hello world" + + create_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_release_config_client_stub.call_count + end + end + end + + def test_update_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + release_config = {} + + update_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_release_config update_mask: update_mask, release_config: release_config do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_release_config({ update_mask: update_mask, release_config: release_config }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_release_config_client_stub.call_count + end + end + end + + def test_delete_release_config + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_release_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_release_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_release_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_release_config_client_stub.call_count + end + end + end + + def test_list_compilation_results + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_compilation_results_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_compilation_results_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_compilation_results_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_compilation_results_client_stub.call_count + end + end + end + + def test_get_compilation_result + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_compilation_result_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_compilation_result({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_compilation_result name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_compilation_result({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_compilation_result_client_stub.call_count + end + end + end + + def test_create_compilation_result + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + compilation_result = {} + + create_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_compilation_result_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_compilation_result parent: parent, compilation_result: compilation_result do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_compilation_result_client_stub.call_count + end + end + end + + def test_query_compilation_result_actions + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + query_compilation_result_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_compilation_result_actions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_compilation_result_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_compilation_result_actions_client_stub.call_count + end + end + end + + def test_list_workflow_configs + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_workflow_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_configs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workflow_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workflow_configs_client_stub.call_count + end + end + end + + def test_get_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workflow_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workflow_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workflow_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workflow_config_client_stub.call_count + end + end + end + + def test_create_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_config = {} + workflow_config_id = "hello world" + + create_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workflow_config_client_stub.call_count + end + end + end + + def test_update_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + workflow_config = {} + + update_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_workflow_config_client_stub.call_count + end + end + end + + def test_delete_workflow_config + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workflow_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workflow_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workflow_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workflow_config_client_stub.call_count + end + end + end + + def test_list_workflow_invocations + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workflow_invocations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_invocations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workflow_invocations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workflow_invocations_client_stub.call_count + end + end + end + + def test_get_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workflow_invocation_client_stub.call_count + end + end + end + + def test_create_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_invocation = {} + + create_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workflow_invocation_client_stub.call_count + end + end + end + + def test_delete_workflow_invocation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workflow_invocation_client_stub.call_count + end + end + end + + def test_cancel_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_cancel_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, cancel_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.cancel_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.cancel_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.cancel_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, cancel_workflow_invocation_client_stub.call_count + end + end + end + + def test_query_workflow_invocation_actions + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + query_workflow_invocation_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_workflow_invocation_actions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_workflow_invocation_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_workflow_invocation_actions_client_stub.call_count + end + end + end + + def test_get_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Config.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_config_client_stub.call_count + end + end + end + + def test_update_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Config.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + config = {} + update_mask = {} + + update_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_config({ config: config, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_config config: config, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_config({ config: config, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_config_client_stub.call_count + end + end + end + + def test_get_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_count + end + end + end + + def test_set_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_set_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_count + end + end + end + + def test_test_iam_permissions + # Create test objects. + client_result = ::Google::Iam::V1::TestIamPermissionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_test_iam_permissions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb new file mode 100644 index 000000000000..83dcd399b121 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb @@ -0,0 +1,4668 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_rpc_count + end + end + + def test_create_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_rpc_count + end + end + + def test_update_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_team_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_team_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, request + assert_equal "hello world", request["team_folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_rpc_count + end + end + + def test_search_team_folders + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_team_folders, name + assert_kind_of ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_rpc_count + end + end + + def test_get_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_rpc_count + end + end + + def test_create_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_rpc_count + end + end + + def test_update_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, request + assert_equal "hello world", request["folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_rpc_count + end + end + + def test_query_user_root_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_user_root_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_rpc_count + end + end + + def test_move_folder + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveFolderRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_rpc_count + end + end + + def test_list_repositories + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_repositories_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_repositories, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListRepositoriesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_repositories_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_repositories_client_stub.call_rpc_count + end + end + + def test_get_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetRepositoryRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_repository({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_repository name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_repository({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_repository_client_stub.call_rpc_count + end + end + + def test_create_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + repository = {} + repository_id = "hello world" + + create_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateRepositoryRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] + assert_equal "hello world", request["repository_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_repository parent: parent, repository: repository, repository_id: repository_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_repository_client_stub.call_rpc_count + end + end + + def test_update_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + repository = {} + + update_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_repository({ update_mask: update_mask, repository: repository }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_repository update_mask: update_mask, repository: repository do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_repository({ update_mask: update_mask, repository: repository }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_repository_client_stub.call_rpc_count + end + end + + def test_delete_repository + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_repository({ name: name, force: force }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_repository name: name, force: force do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_repository({ name: name, force: force }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_repository_client_stub.call_rpc_count + end + end + + def test_move_repository + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveRepositoryRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_rpc_count + end + end + + def test_commit_repository_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_metadata = {} + required_head_commit_sha = "hello world" + file_operations = {} + + commit_repository_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :commit_repository_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitMetadata), request["commit_metadata"] + assert_equal "hello world", request["required_head_commit_sha"] + assert_equal({}, request["file_operations"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, commit_repository_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, commit_repository_changes_client_stub.call_rpc_count + end + end + + def test_read_repository_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + + read_repository_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :read_repository_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["commit_sha"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, read_repository_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.read_repository_file name: name, commit_sha: commit_sha, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, read_repository_file_client_stub.call_rpc_count + end + end + + def test_query_repository_directory_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + + query_repository_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_repository_directory_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["commit_sha"] + assert_equal "hello world", request["path"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_repository_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_repository_directory_contents_client_stub.call_rpc_count + end + end + + def test_fetch_repository_history + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + fetch_repository_history_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_repository_history, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_repository_history_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_repository_history_client_stub.call_rpc_count + end + end + + def test_compute_repository_access_token_status + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + compute_repository_access_token_status_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :compute_repository_access_token_status, name + assert_kind_of ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, compute_repository_access_token_status_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.compute_repository_access_token_status({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.compute_repository_access_token_status name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.compute_repository_access_token_status({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, compute_repository_access_token_status_client_stub.call_rpc_count + end + end + + def test_fetch_remote_branches + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_remote_branches_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_remote_branches, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_remote_branches_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_remote_branches({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_remote_branches name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_remote_branches({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_remote_branches_client_stub.call_rpc_count + end + end + + def test_list_workspaces + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workspaces_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workspaces, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkspacesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workspaces_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workspaces_client_stub.call_rpc_count + end + end + + def test_get_workspace + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkspaceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workspace({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workspace name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workspace({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workspace_client_stub.call_rpc_count + end + end + + def test_create_workspace + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workspace = {} + workspace_id = "hello world" + + create_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Workspace), request["workspace"] + assert_equal "hello world", request["workspace_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workspace_client_stub.call_rpc_count + end + end + + def test_delete_workspace + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workspace({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workspace name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workspace({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workspace_client_stub.call_rpc_count + end + end + + def test_install_npm_packages + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + + install_npm_packages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :install_npm_packages, name + assert_kind_of ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, request + assert_equal "hello world", request["workspace"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, install_npm_packages_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.install_npm_packages({ workspace: workspace }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.install_npm_packages workspace: workspace do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.install_npm_packages({ workspace: workspace }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, install_npm_packages_client_stub.call_rpc_count + end + end + + def test_pull_git_commits + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + author = {} + + pull_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :pull_git_commits, name + assert_kind_of ::Google::Cloud::Dataform::V1::PullGitCommitsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, pull_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, pull_git_commits_client_stub.call_rpc_count + end + end + + def test_push_git_commits + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + push_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :push_git_commits, name + assert_kind_of ::Google::Cloud::Dataform::V1::PushGitCommitsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, push_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.push_git_commits({ name: name, remote_branch: remote_branch }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.push_git_commits name: name, remote_branch: remote_branch do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.push_git_commits({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, push_git_commits_client_stub.call_rpc_count + end + end + + def test_fetch_file_git_statuses + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_file_git_statuses_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_file_git_statuses, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_file_git_statuses_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_file_git_statuses({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_file_git_statuses name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_file_git_statuses({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_file_git_statuses_client_stub.call_rpc_count + end + end + + def test_fetch_git_ahead_behind + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + fetch_git_ahead_behind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_git_ahead_behind, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_git_ahead_behind_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_git_ahead_behind_client_stub.call_rpc_count + end + end + + def test_commit_workspace_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + author = {} + commit_message = "hello world" + paths = ["hello world"] + + commit_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :commit_workspace_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] + assert_equal "hello world", request["commit_message"] + assert_equal ["hello world"], request["paths"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, commit_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, commit_workspace_changes_client_stub.call_rpc_count + end + end + + def test_reset_workspace_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + paths = ["hello world"] + clean = true + + reset_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :reset_workspace_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal ["hello world"], request["paths"] + assert_equal true, request["clean"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, reset_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.reset_workspace_changes name: name, paths: paths, clean: clean do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, reset_workspace_changes_client_stub.call_rpc_count + end + end + + def test_fetch_file_diff + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + fetch_file_diff_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_file_diff, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileDiffRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_file_diff_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_file_diff({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_file_diff workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_file_diff({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_file_diff_client_stub.call_rpc_count + end + end + + def test_query_directory_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + + query_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_directory_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_directory_contents_client_stub.call_rpc_count + end + end + + def test_search_files + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + search_files_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_files, name + assert_kind_of ::Google::Cloud::Dataform::V1::SearchFilesRequest, request + assert_equal "hello world", request["workspace"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_files_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_files_client_stub.call_rpc_count + end + end + + def test_make_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + make_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :make_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::MakeDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, make_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.make_directory({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.make_directory workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.make_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, make_directory_client_stub.call_rpc_count + end + end + + def test_remove_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :remove_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, remove_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.remove_directory({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.remove_directory workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.remove_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, remove_directory_client_stub.call_rpc_count + end + end + + def test_move_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["new_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_directory workspace: workspace, path: path, new_path: new_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_directory({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_directory_client_stub.call_rpc_count + end + end + + def test_read_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReadFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + revision = "hello world" + + read_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :read_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::ReadFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["revision"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, read_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.read_file({ workspace: workspace, path: path, revision: revision }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.read_file workspace: workspace, path: path, revision: revision do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.read_file({ workspace: workspace, path: path, revision: revision }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, read_file_client_stub.call_rpc_count + end + end + + def test_remove_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :remove_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::RemoveFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, remove_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.remove_file({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.remove_file workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.remove_file({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, remove_file_client_stub.call_rpc_count + end + end + + def test_move_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MoveFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["new_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_file workspace: workspace, path: path, new_path: new_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_file({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_file_client_stub.call_rpc_count + end + end + + def test_write_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WriteFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + contents = "hello world" + + write_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :write_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::WriteFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["contents"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, write_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.write_file({ workspace: workspace, path: path, contents: contents }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.write_file workspace: workspace, path: path, contents: contents do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.write_file({ workspace: workspace, path: path, contents: contents }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, write_file_client_stub.call_rpc_count + end + end + + def test_list_release_configs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_release_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_release_configs, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_release_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_release_configs_client_stub.call_rpc_count + end + end + + def test_get_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_release_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_release_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_release_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_release_config_client_stub.call_rpc_count + end + end + + def test_create_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_config = {} + release_config_id = "hello world" + + create_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] + assert_equal "hello world", request["release_config_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_release_config_client_stub.call_rpc_count + end + end + + def test_update_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + release_config = {} + + update_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_release_config update_mask: update_mask, release_config: release_config do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_release_config({ update_mask: update_mask, release_config: release_config }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_release_config_client_stub.call_rpc_count + end + end + + def test_delete_release_config + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_release_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_release_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_release_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_release_config_client_stub.call_rpc_count + end + end + + def test_list_compilation_results + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_compilation_results_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_compilation_results, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_compilation_results_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_compilation_results_client_stub.call_rpc_count + end + end + + def test_get_compilation_result + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_compilation_result, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetCompilationResultRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_compilation_result({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_compilation_result name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_compilation_result({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_compilation_result_client_stub.call_rpc_count + end + end + + def test_create_compilation_result + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + compilation_result = {} + + create_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_compilation_result, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CompilationResult), request["compilation_result"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_compilation_result parent: parent, compilation_result: compilation_result do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_compilation_result_client_stub.call_rpc_count + end + end + + def test_query_compilation_result_actions + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + query_compilation_result_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_compilation_result_actions, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_compilation_result_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_compilation_result_actions_client_stub.call_rpc_count + end + end + + def test_list_workflow_configs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_workflow_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workflow_configs, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workflow_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workflow_configs_client_stub.call_rpc_count + end + end + + def test_get_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workflow_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workflow_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workflow_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workflow_config_client_stub.call_rpc_count + end + end + + def test_create_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_config = {} + workflow_config_id = "hello world" + + create_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] + assert_equal "hello world", request["workflow_config_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workflow_config_client_stub.call_rpc_count + end + end + + def test_update_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + workflow_config = {} + + update_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_workflow_config_client_stub.call_rpc_count + end + end + + def test_delete_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workflow_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workflow_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workflow_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workflow_config_client_stub.call_rpc_count + end + end + + def test_list_workflow_invocations + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workflow_invocations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workflow_invocations, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workflow_invocations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workflow_invocations_client_stub.call_rpc_count + end + end + + def test_get_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_create_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_invocation = {} + + create_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowInvocation), request["workflow_invocation"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_delete_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_cancel_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_query_workflow_invocation_actions + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + query_workflow_invocation_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_workflow_invocation_actions, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_workflow_invocation_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_workflow_invocation_actions_client_stub.call_rpc_count + end + end + + def test_get_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Config.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_config_client_stub.call_rpc_count + end + end + + def test_update_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Config.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + config = {} + update_mask = {} + + update_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Config), request["config"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_config({ config: config, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_config config: config, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_config({ config: config, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_config_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb new file mode 100644 index 000000000000..61e4289027f4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/longrunning/operations_pb" +require "google/longrunning/operations_services_pb" +require "google/longrunning/operations" + +class ::Google::Longrunning::Operations::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb new file mode 100644 index 000000000000..deeeeee2c568 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb @@ -0,0 +1,319 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/longrunning/operations_pb" +require "google/longrunning/operations/rest" + + +class ::Google::Longrunning::Operations::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create test objects. + client_result = ::Google::Longrunning::ListOperationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_list_operations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_count + end + end + end + + def test_get_operation + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_get_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_count + end + end + end + + def test_delete_operation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_delete_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_count + end + end + end + + def test_cancel_operation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_cancel_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.cancel_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.cancel_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.cancel_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb new file mode 100644 index 000000000000..72ed015901db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb @@ -0,0 +1,433 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/longrunning/operations_pb" +require "google/longrunning/operations" + +class ::Google::Longrunning::Operations::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Longrunning::Operations::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Longrunning::Operations::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From 9d74557b2843e17535a85bc254e3e364b89fdc19 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 24 Mar 2026 19:05:54 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../.owlbot-manifest.json | 43 + google-cloud-dataform-v1/AUTHENTICATION.md | 8 +- google-cloud-dataform-v1/README.md | 8 +- google-cloud-dataform-v1/Rakefile | 4 +- google-cloud-dataform-v1/gapic_metadata.json | 95 + .../lib/google-cloud-dataform-v1.rb | 1 + .../cloud/dataform/v1/bindings_override.rb | 57 - .../lib/google/cloud/dataform/v1/dataform.rb | 1 + .../cloud/dataform/v1/dataform/client.rb | 2107 ++++- .../cloud/dataform/v1/dataform/operations.rb | 0 .../cloud/dataform/v1/dataform/paths.rb | 38 + .../google/cloud/dataform/v1/dataform/rest.rb | 1 + .../cloud/dataform/v1/dataform/rest/client.rb | 2007 ++++- .../dataform/v1/dataform/rest/operations.rb | 0 .../dataform/v1/dataform/rest/service_stub.rb | 2200 ++++- .../google/cloud/dataform/v1/dataform_pb.rb | 43 +- .../cloud/dataform/v1/dataform_services_pb.rb | 54 + .../lib/google/longrunning.rb | 0 .../google/longrunning/bindings_override.rb | 0 .../lib/google/longrunning/operations.rb | 0 .../google/longrunning/operations/client.rb | 0 .../longrunning/operations/credentials.rb | 0 .../longrunning/operations/operations.rb | 0 .../lib/google/longrunning/operations/rest.rb | 0 .../longrunning/operations/rest/client.rb | 0 .../longrunning/operations/rest/operations.rb | 0 .../operations/rest/service_stub.rb | 0 .../lib/google/longrunning/rest.rb | 0 .../google/cloud/dataform/v1/dataform.rb | 762 +- .../google/longrunning/operations.rb | 0 .../snippets/dataform/create_folder.rb | 0 .../snippets/dataform/create_team_folder.rb | 0 .../snippets/dataform/delete_folder.rb | 0 .../snippets/dataform/delete_folder_tree.rb | 0 .../snippets/dataform/delete_team_folder.rb | 0 .../dataform/delete_team_folder_tree.rb | 0 .../snippets/dataform/get_folder.rb | 0 .../snippets/dataform/get_iam_policy.rb | 0 .../snippets/dataform/get_team_folder.rb | 0 .../snippets/dataform/move_folder.rb | 0 .../snippets/dataform/move_repository.rb | 0 .../dataform/query_folder_contents.rb | 0 .../dataform/query_team_folder_contents.rb | 0 .../dataform/query_user_root_contents.rb | 0 .../snippets/dataform/search_team_folders.rb | 0 .../snippets/dataform/set_iam_policy.rb | 0 .../snippets/dataform/test_iam_permissions.rb | 0 .../snippets/dataform/update_folder.rb | 0 .../snippets/dataform/update_team_folder.rb | 0 .../snippets/operations/cancel_operation.rb | 0 .../snippets/operations/delete_operation.rb | 0 .../snippets/operations/get_operation.rb | 0 .../snippets/operations/list_operations.rb | 0 .../snippets/operations/wait_operation.rb | 0 ...pet_metadata_google.cloud.dataform.v1.json | 760 ++ .../snippet_metadata_google.longrunning.json | 2 +- .../dataform/v1/dataform_operations_test.rb | 0 .../cloud/dataform/v1/dataform_paths_test.rb | 24 + .../cloud/dataform/v1/dataform_rest_test.rb | 1065 ++- .../google/cloud/dataform/v1/dataform_test.rb | 1226 ++- .../longrunning/operations_operations_test.rb | 0 .../longrunning/operations_rest_test.rb | 0 .../google/longrunning/operations_test.rb | 0 .../google-cloud-dataform-v1/.gitignore | 22 - .../.repo-metadata.json | 17 - .../google-cloud-dataform-v1/.rubocop.yml | 33 - .../google-cloud-dataform-v1/.toys.rb | 28 - .../google-cloud-dataform-v1/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../google-cloud-dataform-v1/CHANGELOG.md | 2 - .../google-cloud-dataform-v1/Gemfile | 14 - .../google-cloud-dataform-v1/LICENSE.md | 201 - .../google-cloud-dataform-v1/README.md | 154 - .../google-cloud-dataform-v1/Rakefile | 169 - .../gapic_metadata.json | 383 - .../google-cloud-dataform-v1.gemspec | 30 - .../lib/google-cloud-dataform-v1.rb | 22 - .../lib/google/cloud/dataform/v1.rb | 45 - .../cloud/dataform/v1/bindings_override.rb | 75 - .../lib/google/cloud/dataform/v1/dataform.rb | 57 - .../cloud/dataform/v1/dataform/client.rb | 7794 ----------------- .../cloud/dataform/v1/dataform/credentials.rb | 48 - .../cloud/dataform/v1/dataform/paths.rb | 311 - .../google/cloud/dataform/v1/dataform/rest.rb | 55 - .../cloud/dataform/v1/dataform/rest/client.rb | 7248 --------------- .../dataform/v1/dataform/rest/service_stub.rb | 4636 ---------- .../google/cloud/dataform/v1/dataform_pb.rb | 216 - .../cloud/dataform/v1/dataform_services_pb.rb | 234 - .../lib/google/cloud/dataform/v1/rest.rb | 38 - .../lib/google/cloud/dataform/v1/version.rb | 28 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 473 - .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../google/cloud/dataform/v1/dataform.rb | 3308 ------- .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/expr.rb | 75 - .../proto_docs/google/type/interval.rb | 45 - .../google-cloud-dataform-v1/snippets/Gemfile | 32 - .../dataform/cancel_workflow_invocation.rb | 47 - .../dataform/commit_repository_changes.rb | 47 - .../dataform/commit_workspace_changes.rb | 47 - .../compute_repository_access_token_status.rb | 47 - .../dataform/create_compilation_result.rb | 47 - .../dataform/create_release_config.rb | 47 - .../snippets/dataform/create_repository.rb | 47 - .../dataform/create_workflow_config.rb | 47 - .../dataform/create_workflow_invocation.rb | 47 - .../snippets/dataform/create_workspace.rb | 47 - .../dataform/delete_release_config.rb | 47 - .../snippets/dataform/delete_repository.rb | 47 - .../dataform/delete_workflow_config.rb | 47 - .../dataform/delete_workflow_invocation.rb | 47 - .../snippets/dataform/delete_workspace.rb | 47 - .../snippets/dataform/fetch_file_diff.rb | 47 - .../dataform/fetch_file_git_statuses.rb | 47 - .../dataform/fetch_git_ahead_behind.rb | 47 - .../dataform/fetch_remote_branches.rb | 47 - .../dataform/fetch_repository_history.rb | 51 - .../dataform/get_compilation_result.rb | 47 - .../snippets/dataform/get_config.rb | 47 - .../snippets/dataform/get_release_config.rb | 47 - .../snippets/dataform/get_repository.rb | 47 - .../snippets/dataform/get_workflow_config.rb | 47 - .../dataform/get_workflow_invocation.rb | 47 - .../snippets/dataform/get_workspace.rb | 47 - .../snippets/dataform/install_npm_packages.rb | 47 - .../dataform/list_compilation_results.rb | 51 - .../snippets/dataform/list_release_configs.rb | 51 - .../snippets/dataform/list_repositories.rb | 51 - .../dataform/list_workflow_configs.rb | 51 - .../dataform/list_workflow_invocations.rb | 51 - .../snippets/dataform/list_workspaces.rb | 51 - .../snippets/dataform/make_directory.rb | 47 - .../snippets/dataform/move_directory.rb | 47 - .../snippets/dataform/move_file.rb | 47 - .../snippets/dataform/pull_git_commits.rb | 47 - .../snippets/dataform/push_git_commits.rb | 47 - .../query_compilation_result_actions.rb | 51 - .../dataform/query_directory_contents.rb | 51 - .../query_repository_directory_contents.rb | 51 - .../query_workflow_invocation_actions.rb | 51 - .../snippets/dataform/read_file.rb | 47 - .../snippets/dataform/read_repository_file.rb | 47 - .../snippets/dataform/remove_directory.rb | 47 - .../snippets/dataform/remove_file.rb | 47 - .../dataform/reset_workspace_changes.rb | 47 - .../snippets/dataform/search_files.rb | 51 - .../snippets/dataform/update_config.rb | 47 - .../dataform/update_release_config.rb | 47 - .../snippets/dataform/update_repository.rb | 47 - .../dataform/update_workflow_config.rb | 47 - .../snippets/dataform/write_file.rb | 47 - ...pet_metadata_google.cloud.dataform.v1.json | 2935 ------- .../cloud/dataform/v1/dataform_paths_test.rb | 211 - .../cloud/dataform/v1/dataform_rest_test.rb | 4148 --------- .../google/cloud/dataform/v1/dataform_test.rb | 4668 ---------- .../google-cloud-dataform-v1/test/helper.rb | 26 - 164 files changed, 9830 insertions(+), 42245 deletions(-) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/cloud/dataform/v1/dataform/operations.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/cloud/dataform/v1/dataform/rest/operations.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/bindings_override.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations/client.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations/credentials.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations/operations.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations/rest.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations/rest/client.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations/rest/operations.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/operations/rest/service_stub.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/lib/google/longrunning/rest.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/proto_docs/google/longrunning/operations.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/create_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/create_team_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/delete_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/delete_folder_tree.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/delete_team_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/delete_team_folder_tree.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/get_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/get_iam_policy.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/get_team_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/move_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/move_repository.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/query_folder_contents.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/query_team_folder_contents.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/query_user_root_contents.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/search_team_folders.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/set_iam_policy.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/test_iam_permissions.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/update_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/dataform/update_team_folder.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/operations/cancel_operation.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/operations/delete_operation.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/operations/get_operation.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/operations/list_operations.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/operations/wait_operation.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/snippets/snippet_metadata_google.longrunning.json (99%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/test/google/cloud/dataform/v1/dataform_operations_test.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/test/google/longrunning/operations_operations_test.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/test/google/longrunning/operations_rest_test.rb (100%) rename {owl-bot-staging/google-cloud-dataform-v1 => google-cloud-dataform-v1}/test/google/longrunning/operations_test.rb (100%) delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.gitignore delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.yardopts delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/README.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/Rakefile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/version.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/helper.rb diff --git a/google-cloud-dataform-v1/.owlbot-manifest.json b/google-cloud-dataform-v1/.owlbot-manifest.json index 2e2061f93a2a..3a9e4212630c 100644 --- a/google-cloud-dataform-v1/.owlbot-manifest.json +++ b/google-cloud-dataform-v1/.owlbot-manifest.json @@ -19,20 +19,34 @@ "lib/google/cloud/dataform/v1/dataform.rb", "lib/google/cloud/dataform/v1/dataform/client.rb", "lib/google/cloud/dataform/v1/dataform/credentials.rb", + "lib/google/cloud/dataform/v1/dataform/operations.rb", "lib/google/cloud/dataform/v1/dataform/paths.rb", "lib/google/cloud/dataform/v1/dataform/rest.rb", "lib/google/cloud/dataform/v1/dataform/rest/client.rb", + "lib/google/cloud/dataform/v1/dataform/rest/operations.rb", "lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb", "lib/google/cloud/dataform/v1/dataform_pb.rb", "lib/google/cloud/dataform/v1/dataform_services_pb.rb", "lib/google/cloud/dataform/v1/rest.rb", "lib/google/cloud/dataform/v1/version.rb", + "lib/google/longrunning.rb", + "lib/google/longrunning/bindings_override.rb", + "lib/google/longrunning/operations.rb", + "lib/google/longrunning/operations/client.rb", + "lib/google/longrunning/operations/credentials.rb", + "lib/google/longrunning/operations/operations.rb", + "lib/google/longrunning/operations/rest.rb", + "lib/google/longrunning/operations/rest/client.rb", + "lib/google/longrunning/operations/rest/operations.rb", + "lib/google/longrunning/operations/rest/service_stub.rb", + "lib/google/longrunning/rest.rb", "proto_docs/README.md", "proto_docs/google/api/client.rb", "proto_docs/google/api/field_behavior.rb", "proto_docs/google/api/launch_stage.rb", "proto_docs/google/api/resource.rb", "proto_docs/google/cloud/dataform/v1/dataform.rb", + "proto_docs/google/longrunning/operations.rb", "proto_docs/google/protobuf/any.rb", "proto_docs/google/protobuf/duration.rb", "proto_docs/google/protobuf/empty.rb", @@ -47,13 +61,19 @@ "snippets/dataform/commit_workspace_changes.rb", "snippets/dataform/compute_repository_access_token_status.rb", "snippets/dataform/create_compilation_result.rb", + "snippets/dataform/create_folder.rb", "snippets/dataform/create_release_config.rb", "snippets/dataform/create_repository.rb", + "snippets/dataform/create_team_folder.rb", "snippets/dataform/create_workflow_config.rb", "snippets/dataform/create_workflow_invocation.rb", "snippets/dataform/create_workspace.rb", + "snippets/dataform/delete_folder.rb", + "snippets/dataform/delete_folder_tree.rb", "snippets/dataform/delete_release_config.rb", "snippets/dataform/delete_repository.rb", + "snippets/dataform/delete_team_folder.rb", + "snippets/dataform/delete_team_folder_tree.rb", "snippets/dataform/delete_workflow_config.rb", "snippets/dataform/delete_workflow_invocation.rb", "snippets/dataform/delete_workspace.rb", @@ -64,8 +84,11 @@ "snippets/dataform/fetch_repository_history.rb", "snippets/dataform/get_compilation_result.rb", "snippets/dataform/get_config.rb", + "snippets/dataform/get_folder.rb", + "snippets/dataform/get_iam_policy.rb", "snippets/dataform/get_release_config.rb", "snippets/dataform/get_repository.rb", + "snippets/dataform/get_team_folder.rb", "snippets/dataform/get_workflow_config.rb", "snippets/dataform/get_workflow_invocation.rb", "snippets/dataform/get_workspace.rb", @@ -79,11 +102,16 @@ "snippets/dataform/make_directory.rb", "snippets/dataform/move_directory.rb", "snippets/dataform/move_file.rb", + "snippets/dataform/move_folder.rb", + "snippets/dataform/move_repository.rb", "snippets/dataform/pull_git_commits.rb", "snippets/dataform/push_git_commits.rb", "snippets/dataform/query_compilation_result_actions.rb", "snippets/dataform/query_directory_contents.rb", + "snippets/dataform/query_folder_contents.rb", "snippets/dataform/query_repository_directory_contents.rb", + "snippets/dataform/query_team_folder_contents.rb", + "snippets/dataform/query_user_root_contents.rb", "snippets/dataform/query_workflow_invocation_actions.rb", "snippets/dataform/read_file.rb", "snippets/dataform/read_repository_file.rb", @@ -91,15 +119,30 @@ "snippets/dataform/remove_file.rb", "snippets/dataform/reset_workspace_changes.rb", "snippets/dataform/search_files.rb", + "snippets/dataform/search_team_folders.rb", + "snippets/dataform/set_iam_policy.rb", + "snippets/dataform/test_iam_permissions.rb", "snippets/dataform/update_config.rb", + "snippets/dataform/update_folder.rb", "snippets/dataform/update_release_config.rb", "snippets/dataform/update_repository.rb", + "snippets/dataform/update_team_folder.rb", "snippets/dataform/update_workflow_config.rb", "snippets/dataform/write_file.rb", + "snippets/operations/cancel_operation.rb", + "snippets/operations/delete_operation.rb", + "snippets/operations/get_operation.rb", + "snippets/operations/list_operations.rb", + "snippets/operations/wait_operation.rb", "snippets/snippet_metadata_google.cloud.dataform.v1.json", + "snippets/snippet_metadata_google.longrunning.json", + "test/google/cloud/dataform/v1/dataform_operations_test.rb", "test/google/cloud/dataform/v1/dataform_paths_test.rb", "test/google/cloud/dataform/v1/dataform_rest_test.rb", "test/google/cloud/dataform/v1/dataform_test.rb", + "test/google/longrunning/operations_operations_test.rb", + "test/google/longrunning/operations_rest_test.rb", + "test/google/longrunning/operations_test.rb", "test/helper.rb" ], "static": [ diff --git a/google-cloud-dataform-v1/AUTHENTICATION.md b/google-cloud-dataform-v1/AUTHENTICATION.md index 43f05fb49632..91f83b42e5fa 100644 --- a/google-cloud-dataform-v1/AUTHENTICATION.md +++ b/google-cloud-dataform-v1/AUTHENTICATION.md @@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization: ```ruby require "google/cloud/dataform/v1" -client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| +client = ::Google::Longrunning::Operations::Client.new do |config| config.credentials = "path/to/credentialfile.json" end ``` @@ -66,11 +66,11 @@ To configure a credentials file globally for all clients: ```ruby require "google/cloud/dataform/v1" -::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| +::Google::Longrunning::Operations::Client.configure do |config| config.credentials = "path/to/credentialfile.json" end -client = ::Google::Cloud::Dataform::V1::Dataform::Client.new +client = ::Google::Longrunning::Operations::Client.new ``` ### Environment Variables @@ -100,7 +100,7 @@ require "google/cloud/dataform/v1" ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" -client = ::Google::Cloud::Dataform::V1::Dataform::Client.new +client = ::Google::Longrunning::Operations::Client.new ``` ### Local ADC file diff --git a/google-cloud-dataform-v1/README.md b/google-cloud-dataform-v1/README.md index 0c7267718328..bd989cf181ba 100644 --- a/google-cloud-dataform-v1/README.md +++ b/google-cloud-dataform-v1/README.md @@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps: ```ruby require "google/cloud/dataform/v1" -client = ::Google::Cloud::Dataform::V1::Dataform::Client.new -request = ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new # (request fields as keyword arguments...) -response = client.list_repositories request +client = ::Google::Longrunning::Operations::Client.new +request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...) +response = client.list_operations request ``` View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest) @@ -75,7 +75,7 @@ constructing a client object. For example: require "google/cloud/dataform/v1" require "logger" -client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| +client = ::Google::Longrunning::Operations::Client.new do |config| config.logger = Logger.new "my-app.log" end ``` diff --git a/google-cloud-dataform-v1/Rakefile b/google-cloud-dataform-v1/Rakefile index 4e47e1ecd2d5..f99f4a7f63e3 100644 --- a/google-cloud-dataform-v1/Rakefile +++ b/google-cloud-dataform-v1/Rakefile @@ -57,8 +57,8 @@ task :acceptance, :project, :keyfile do |t, args| if project.nil? || keyfile.nil? fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" end - require "google/cloud/dataform/v1/dataform/credentials" - ::Google::Cloud::Dataform::V1::Dataform::Credentials.env_vars.each do |path| + require "google/longrunning/operations/credentials" + ::Google::Longrunning::Operations::Credentials.env_vars.each do |path| ENV[path] = nil end ENV["GOOGLE_CLOUD_PROJECT"] = project diff --git a/google-cloud-dataform-v1/gapic_metadata.json b/google-cloud-dataform-v1/gapic_metadata.json index 5282728e605c..da5082c37f30 100644 --- a/google-cloud-dataform-v1/gapic_metadata.json +++ b/google-cloud-dataform-v1/gapic_metadata.json @@ -10,6 +10,81 @@ "grpc": { "libraryClient": "::Google::Cloud::Dataform::V1::Dataform::Client", "rpcs": { + "GetTeamFolder": { + "methods": [ + "get_team_folder" + ] + }, + "CreateTeamFolder": { + "methods": [ + "create_team_folder" + ] + }, + "UpdateTeamFolder": { + "methods": [ + "update_team_folder" + ] + }, + "DeleteTeamFolder": { + "methods": [ + "delete_team_folder" + ] + }, + "DeleteTeamFolderTree": { + "methods": [ + "delete_team_folder_tree" + ] + }, + "QueryTeamFolderContents": { + "methods": [ + "query_team_folder_contents" + ] + }, + "SearchTeamFolders": { + "methods": [ + "search_team_folders" + ] + }, + "GetFolder": { + "methods": [ + "get_folder" + ] + }, + "CreateFolder": { + "methods": [ + "create_folder" + ] + }, + "UpdateFolder": { + "methods": [ + "update_folder" + ] + }, + "DeleteFolder": { + "methods": [ + "delete_folder" + ] + }, + "DeleteFolderTree": { + "methods": [ + "delete_folder_tree" + ] + }, + "QueryFolderContents": { + "methods": [ + "query_folder_contents" + ] + }, + "QueryUserRootContents": { + "methods": [ + "query_user_root_contents" + ] + }, + "MoveFolder": { + "methods": [ + "move_folder" + ] + }, "ListRepositories": { "methods": [ "list_repositories" @@ -35,6 +110,11 @@ "delete_repository" ] }, + "MoveRepository": { + "methods": [ + "move_repository" + ] + }, "CommitRepositoryChanges": { "methods": [ "commit_repository_changes" @@ -279,6 +359,21 @@ "methods": [ "update_config" ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] } } } diff --git a/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb b/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb index 02caeba0ab0b..2cc7d93a40d9 100644 --- a/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb +++ b/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb @@ -19,3 +19,4 @@ # This gem does not autoload during Bundler.require. To load this gem, # issue explicit require statements for the packages desired, e.g.: # require "google/cloud/dataform/v1" +# require "google/longrunning" diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb index e4e03b7f81fa..11e9fc857ba1 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb @@ -64,63 +64,6 @@ def self.configure body: nil ) ] - default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ], - body: nil - ), - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ], - body: "*" - ), - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ], - body: "*" - ) - ] - default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ], - body: "*" - ), - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ], - body: "*" - ) - ] default_config end yield @configure if block_given? diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb index d8f6e21d99ec..e6d1cb98dbed 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb @@ -24,6 +24,7 @@ require "google/cloud/dataform/v1/dataform/credentials" require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/operations" require "google/cloud/dataform/v1/dataform/client" require "google/cloud/dataform/v1/dataform/rest" diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb index a4614ba0c22b..0900fb979f2a 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb @@ -152,6 +152,13 @@ def initialize @quota_project_id = @config.quota_project @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + @dataform_stub = ::Gapic::ServiceStub.new( ::Google::Cloud::Dataform::V1::Dataform::Stub, credentials: credentials, @@ -164,57 +171,1532 @@ def initialize logger: @config.logger ) - @dataform_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end + @dataform_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder&.name + header_params["team_folder.name"] = request.team_folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder + header_params["team_folder"] = request.team_folder + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.folder&.name + header_params["folder.name"] = request.folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= + header_params = {} + if request.folder + header_params["folder"] = request.folder end - @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) end ## - # Get the associated client for mix-in of the Locations. + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. # - # @return [Google::Cloud::Location::Locations::Client] + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @return [Google::Iam::V1::IAMPolicy::Client] + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). # - attr_reader :iam_policy_client + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end ## - # The logger used for request/response debug logging. + # Moves a Folder to a new Folder, TeamFolder, or the root location. # - # @return [Logger] + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. # - def logger - @dataform_stub.logger - end + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? - # Service calls + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end ## # Lists Repositories in a given project and location. @@ -618,9 +2100,13 @@ def update_repository request, options = nil # @param name [::String] # Required. The repository's name. # @param force [::Boolean] - # Optional. If set to true, any child resources of this repository will also - # be deleted. (Otherwise, the request will only succeed if the repository has - # no child resources.) + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Protobuf::Empty] @@ -645,16 +2131,113 @@ def update_repository request, options = nil # # The returned object is of type Google::Protobuf::Empty. # p result # - def delete_repository request, options = nil + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_repository request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - metadata = @config.rpcs.delete_repository.metadata.to_h + metadata = @config.rpcs.move_repository.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -671,16 +2254,18 @@ def delete_repository request, options = nil request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") metadata[:"x-goog-request-params"] ||= request_params_header - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy + retry_policy: @config.rpcs.move_repository.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| + @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options yield response, operation if block_given? + throw :response, response end rescue ::GRPC::BadStatus => e raise ::Google::Cloud::Error.from_error(e) @@ -2347,7 +3932,7 @@ def fetch_file_diff request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil) + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) # Pass arguments to `query_directory_contents` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -2368,6 +3953,11 @@ def fetch_file_diff request, options = nil # When paginating, all other parameters provided to # `QueryDirectoryContents`, with the exception of `page_size`, must match the # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] @@ -5206,6 +6796,294 @@ def update_config request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the Dataform API. # @@ -5222,17 +7100,17 @@ def update_config request, options = nil # @example # # # Modify the global config, setting the timeout for - # # list_repositories to 20 seconds, + # # get_team_folder to 20 seconds, # # and all remaining timeouts to 10 seconds. # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| # config.timeout = 10.0 - # config.rpcs.list_repositories.timeout = 20.0 + # config.rpcs.get_team_folder.timeout = 20.0 # end # # # Apply the above configuration only to a new client. # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| # config.timeout = 10.0 - # config.rpcs.list_repositories.timeout = 20.0 + # config.rpcs.get_team_folder.timeout = 20.0 # end # # @!attribute [rw] endpoint @@ -5389,6 +7267,81 @@ def channel_pool # trigger a retry. # class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder ## # RPC-specific configuration for `list_repositories` # @return [::Gapic::Config::Method] @@ -5415,6 +7368,11 @@ class Rpcs # attr_reader :delete_repository ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## # RPC-specific configuration for `commit_repository_changes` # @return [::Gapic::Config::Method] # @@ -5659,9 +7617,54 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions # @private def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories @list_repositories = ::Gapic::Config::Method.new list_repositories_config get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository @@ -5672,6 +7675,8 @@ def initialize parent_rpcs = nil @update_repository = ::Gapic::Config::Method.new update_repository_config delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file @@ -5770,6 +7775,12 @@ def initialize parent_rpcs = nil @get_config = ::Gapic::Config::Method.new get_config_config update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config yield self if block_given? end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb rename to google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb index bfcc7c9d7da8..94cf7f506fab 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb @@ -106,6 +106,25 @@ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" end + ## + # Create a fully-qualified Folder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/folders/{folder}` + # + # @param project [String] + # @param location [String] + # @param folder [String] + # + # @return [::String] + def folder_path project:, location:, folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/folders/#{folder}" + end + ## # Create a fully-qualified Location resource string. # @@ -201,6 +220,25 @@ def secret_version_path project:, secret:, version: "projects/#{project}/secrets/#{secret}/versions/#{version}" end + ## + # Create a fully-qualified TeamFolder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/teamFolders/{team_folder}` + # + # @param project [String] + # @param location [String] + # @param team_folder [String] + # + # @return [::String] + def team_folder_path project:, location:, team_folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/teamFolders/#{team_folder}" + end + ## # Create a fully-qualified WorkflowConfig resource string. # diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb index 9cf84e59dfc3..379f2c77916e 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb @@ -25,6 +25,7 @@ require "google/cloud/dataform/v1/dataform/credentials" require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/rest/operations" require "google/cloud/dataform/v1/dataform/rest/client" module Google diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb index 18df45f79914..9cb052734e05 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb @@ -149,6 +149,13 @@ def initialize @quota_project_id = @config.quota_project @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + @operations_client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + @dataform_stub = ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.new( endpoint: @config.endpoint, endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, @@ -157,59 +164,1428 @@ def initialize logger: @config.logger ) - @dataform_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end + @dataform_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_team_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.search_team_folders request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @dataform_stub.logger if config.respond_to? :logger= + # Customize the options with defaults + call_metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) end ## - # Get the associated client for mix-in of the Locations. + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. # - # @return [Google::Cloud::Location::Locations::Rest::Client] + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). # - attr_reader :iam_policy_client + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_user_root_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end ## - # The logger used for request/response debug logging. + # Moves a Folder to a new Folder, TeamFolder, or the root location. # - # @return [Logger] + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. # - def logger - @dataform_stub.logger - end + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? - # Service calls + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_folder request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end ## # Lists Repositories in a given project and location. @@ -571,28 +1947,115 @@ def update_repository request, options = nil # Pass arguments to `delete_repository` via a request object, either of type # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. # - # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_repository(name: nil, force: nil) + # Pass arguments to `delete_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param force [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + # + # # Call the delete_repository method. + # result = client.delete_repository request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload delete_repository(name: nil, force: nil) - # Pass arguments to `delete_repository` via keyword arguments. Note that at + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The repository's name. - # @param force [::Boolean] - # Optional. If set to true, any child resources of this repository will also - # be deleted. (Otherwise, the request will only succeed if the repository has - # no child resources.) + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam result [::Gapic::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Gapic::Operation] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -603,24 +2066,31 @@ def update_repository request, options = nil # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - # - # # Call the delete_repository method. - # result = client.delete_repository request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end # - def delete_repository request, options = nil + def move_repository request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - call_metadata = @config.rpcs.delete_repository.metadata.to_h + call_metadata = @config.rpcs.move_repository.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -631,16 +2101,18 @@ def delete_repository request, options = nil call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy + retry_policy: @config.rpcs.move_repository.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @dataform_stub.delete_repository request, options do |result, operation| + @dataform_stub.move_repository request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options yield result, operation if block_given? + throw :response, result end rescue ::Gapic::Rest::Error => e raise ::Google::Cloud::Error.from_error(e) @@ -2181,7 +3653,7 @@ def fetch_file_diff request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil) + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) # Pass arguments to `query_directory_contents` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -2202,6 +3674,11 @@ def fetch_file_diff request, options = nil # When paginating, all other parameters provided to # `QueryDirectoryContents`, with the exception of `page_size`, must match the # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] # @yieldparam operation [::Gapic::Rest::TransportOperation] @@ -4823,6 +6300,273 @@ def update_config request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.set_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.test_iam_permissions request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the Dataform REST API. # @@ -4839,17 +6583,17 @@ def update_config request, options = nil # @example # # # Modify the global config, setting the timeout for - # # list_repositories to 20 seconds, + # # get_team_folder to 20 seconds, # # and all remaining timeouts to 10 seconds. # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| # config.timeout = 10.0 - # config.rpcs.list_repositories.timeout = 20.0 + # config.rpcs.get_team_folder.timeout = 20.0 # end # # # Apply the above configuration only to a new client. # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| # config.timeout = 10.0 - # config.rpcs.list_repositories.timeout = 20.0 + # config.rpcs.get_team_folder.timeout = 20.0 # end # # @!attribute [rw] endpoint @@ -4976,6 +6720,81 @@ def rpcs # trigger a retry. # class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder ## # RPC-specific configuration for `list_repositories` # @return [::Gapic::Config::Method] @@ -5002,6 +6821,11 @@ class Rpcs # attr_reader :delete_repository ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## # RPC-specific configuration for `commit_repository_changes` # @return [::Gapic::Config::Method] # @@ -5246,9 +7070,54 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions # @private def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories @list_repositories = ::Gapic::Config::Method.new list_repositories_config get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository @@ -5259,6 +7128,8 @@ def initialize parent_rpcs = nil @update_repository = ::Gapic::Config::Method.new update_repository_config delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file @@ -5357,6 +7228,12 @@ def initialize parent_rpcs = nil @get_config = ::Gapic::Config::Method.new get_config_config update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config yield self if block_given? end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb rename to google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb index d8a0c1d46fff..5021614a347a 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb @@ -74,23 +74,23 @@ def logger stub: false end ## - # Baseline implementation for the list_repositories REST call + # Baseline implementation for the get_team_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # @return [::Google::Cloud::Dataform::V1::TeamFolder] # A result object deserialized from the server's reply - def list_repositories request_pb, options = nil + def get_team_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_get_team_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -102,11 +102,11 @@ def list_repositories request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_repositories", + method_name: "get_team_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -114,23 +114,23 @@ def list_repositories request_pb, options = nil end ## - # Baseline implementation for the get_repository REST call + # Baseline implementation for the create_team_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::Repository] + # @return [::Google::Cloud::Dataform::V1::TeamFolder] # A result object deserialized from the server's reply - def get_repository request_pb, options = nil + def create_team_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_create_team_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -142,11 +142,11 @@ def get_repository request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "get_repository", + method_name: "create_team_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -154,23 +154,23 @@ def get_repository request_pb, options = nil end ## - # Baseline implementation for the create_repository REST call + # Baseline implementation for the update_team_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::Repository] + # @return [::Google::Cloud::Dataform::V1::TeamFolder] # A result object deserialized from the server's reply - def create_repository request_pb, options = nil + def update_team_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_update_team_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -182,11 +182,11 @@ def create_repository request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "create_repository", + method_name: "update_team_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -194,23 +194,23 @@ def create_repository request_pb, options = nil end ## - # Baseline implementation for the update_repository REST call + # Baseline implementation for the delete_team_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::Repository] + # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply - def update_repository request_pb, options = nil + def delete_team_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -222,11 +222,11 @@ def update_repository request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "update_repository", + method_name: "delete_team_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -234,23 +234,23 @@ def update_repository request_pb, options = nil end ## - # Baseline implementation for the delete_repository REST call + # Baseline implementation for the delete_team_folder_tree REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam result [::Google::Longrunning::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Longrunning::Operation] # A result object deserialized from the server's reply - def delete_repository request_pb, options = nil + def delete_team_folder_tree request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -262,11 +262,11 @@ def delete_repository request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "delete_repository", + method_name: "delete_team_folder_tree", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -274,23 +274,23 @@ def delete_repository request_pb, options = nil end ## - # Baseline implementation for the commit_repository_changes REST call + # Baseline implementation for the query_team_folder_contents REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @return [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] # A result object deserialized from the server's reply - def commit_repository_changes request_pb, options = nil + def query_team_folder_contents request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_query_team_folder_contents_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -302,11 +302,11 @@ def commit_repository_changes request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "commit_repository_changes", + method_name: "query_team_folder_contents", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -314,23 +314,23 @@ def commit_repository_changes request_pb, options = nil end ## - # Baseline implementation for the read_repository_file REST call + # Baseline implementation for the search_team_folders REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @return [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] # A result object deserialized from the server's reply - def read_repository_file request_pb, options = nil + def search_team_folders request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_search_team_folders_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -342,11 +342,11 @@ def read_repository_file request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "read_repository_file", + method_name: "search_team_folders", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -354,23 +354,23 @@ def read_repository_file request_pb, options = nil end ## - # Baseline implementation for the query_repository_directory_contents REST call + # Baseline implementation for the get_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # @return [::Google::Cloud::Dataform::V1::Folder] # A result object deserialized from the server's reply - def query_repository_directory_contents request_pb, options = nil + def get_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -382,11 +382,11 @@ def query_repository_directory_contents request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "query_repository_directory_contents", + method_name: "get_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -394,23 +394,23 @@ def query_repository_directory_contents request_pb, options = nil end ## - # Baseline implementation for the fetch_repository_history REST call + # Baseline implementation for the create_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # @return [::Google::Cloud::Dataform::V1::Folder] # A result object deserialized from the server's reply - def fetch_repository_history request_pb, options = nil + def create_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_create_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -422,11 +422,11 @@ def fetch_repository_history request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "fetch_repository_history", + method_name: "create_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -434,23 +434,23 @@ def fetch_repository_history request_pb, options = nil end ## - # Baseline implementation for the compute_repository_access_token_status REST call + # Baseline implementation for the update_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @return [::Google::Cloud::Dataform::V1::Folder] # A result object deserialized from the server's reply - def compute_repository_access_token_status request_pb, options = nil + def update_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -462,11 +462,11 @@ def compute_repository_access_token_status request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "compute_repository_access_token_status", + method_name: "update_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -474,23 +474,23 @@ def compute_repository_access_token_status request_pb, options = nil end ## - # Baseline implementation for the fetch_remote_branches REST call + # Baseline implementation for the delete_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply - def fetch_remote_branches request_pb, options = nil + def delete_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -502,11 +502,11 @@ def fetch_remote_branches request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "fetch_remote_branches", + method_name: "delete_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -514,23 +514,23 @@ def fetch_remote_branches request_pb, options = nil end ## - # Baseline implementation for the list_workspaces REST call + # Baseline implementation for the delete_folder_tree REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # @yieldparam result [::Google::Longrunning::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # @return [::Google::Longrunning::Operation] # A result object deserialized from the server's reply - def list_workspaces request_pb, options = nil + def delete_folder_tree request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -542,11 +542,11 @@ def list_workspaces request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_workspaces", + method_name: "delete_folder_tree", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -554,23 +554,23 @@ def list_workspaces request_pb, options = nil end ## - # Baseline implementation for the get_workspace REST call + # Baseline implementation for the query_folder_contents REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::Workspace] + # @return [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] # A result object deserialized from the server's reply - def get_workspace request_pb, options = nil + def query_folder_contents request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_query_folder_contents_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -582,11 +582,11 @@ def get_workspace request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "get_workspace", + method_name: "query_folder_contents", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -594,23 +594,23 @@ def get_workspace request_pb, options = nil end ## - # Baseline implementation for the create_workspace REST call + # Baseline implementation for the query_user_root_contents REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::Workspace] + # @return [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] # A result object deserialized from the server's reply - def create_workspace request_pb, options = nil + def query_user_root_contents request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_query_user_root_contents_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -622,11 +622,11 @@ def create_workspace request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "create_workspace", + method_name: "query_user_root_contents", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -634,23 +634,23 @@ def create_workspace request_pb, options = nil end ## - # Baseline implementation for the delete_workspace REST call + # Baseline implementation for the move_folder REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam result [::Google::Longrunning::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Longrunning::Operation] # A result object deserialized from the server's reply - def delete_workspace request_pb, options = nil + def move_folder request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_move_folder_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -662,11 +662,11 @@ def delete_workspace request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "delete_workspace", + method_name: "move_folder", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -674,23 +674,23 @@ def delete_workspace request_pb, options = nil end ## - # Baseline implementation for the install_npm_packages REST call + # Baseline implementation for the list_repositories REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] # A result object deserialized from the server's reply - def install_npm_packages request_pb, options = nil + def list_repositories request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -702,11 +702,11 @@ def install_npm_packages request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "install_npm_packages", + method_name: "list_repositories", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -714,23 +714,23 @@ def install_npm_packages request_pb, options = nil end ## - # Baseline implementation for the pull_git_commits REST call + # Baseline implementation for the get_repository REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @return [::Google::Cloud::Dataform::V1::Repository] # A result object deserialized from the server's reply - def pull_git_commits request_pb, options = nil + def get_repository request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -742,11 +742,11 @@ def pull_git_commits request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "pull_git_commits", + method_name: "get_repository", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -754,23 +754,23 @@ def pull_git_commits request_pb, options = nil end ## - # Baseline implementation for the push_git_commits REST call + # Baseline implementation for the create_repository REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @return [::Google::Cloud::Dataform::V1::Repository] # A result object deserialized from the server's reply - def push_git_commits request_pb, options = nil + def create_repository request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -782,11 +782,11 @@ def push_git_commits request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "push_git_commits", + method_name: "create_repository", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -794,23 +794,23 @@ def push_git_commits request_pb, options = nil end ## - # Baseline implementation for the fetch_file_git_statuses REST call + # Baseline implementation for the update_repository REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @return [::Google::Cloud::Dataform::V1::Repository] # A result object deserialized from the server's reply - def fetch_file_git_statuses request_pb, options = nil + def update_repository request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -822,11 +822,11 @@ def fetch_file_git_statuses request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "fetch_file_git_statuses", + method_name: "update_repository", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -834,23 +834,23 @@ def fetch_file_git_statuses request_pb, options = nil end ## - # Baseline implementation for the fetch_git_ahead_behind REST call + # Baseline implementation for the delete_repository REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply - def fetch_git_ahead_behind request_pb, options = nil + def delete_repository request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -862,11 +862,11 @@ def fetch_git_ahead_behind request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "fetch_git_ahead_behind", + method_name: "delete_repository", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -874,23 +874,23 @@ def fetch_git_ahead_behind request_pb, options = nil end ## - # Baseline implementation for the commit_workspace_changes REST call + # Baseline implementation for the move_repository REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam result [::Google::Longrunning::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @return [::Google::Longrunning::Operation] # A result object deserialized from the server's reply - def commit_workspace_changes request_pb, options = nil + def move_repository request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_move_repository_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -902,11 +902,11 @@ def commit_workspace_changes request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "commit_workspace_changes", + method_name: "move_repository", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -914,23 +914,23 @@ def commit_workspace_changes request_pb, options = nil end ## - # Baseline implementation for the reset_workspace_changes REST call + # Baseline implementation for the commit_repository_changes REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] # A result object deserialized from the server's reply - def reset_workspace_changes request_pb, options = nil + def commit_repository_changes request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -942,11 +942,11 @@ def reset_workspace_changes request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "reset_workspace_changes", + method_name: "commit_repository_changes", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -954,23 +954,23 @@ def reset_workspace_changes request_pb, options = nil end ## - # Baseline implementation for the fetch_file_diff REST call + # Baseline implementation for the read_repository_file REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] # A result object deserialized from the server's reply - def fetch_file_diff request_pb, options = nil + def read_repository_file request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -982,11 +982,11 @@ def fetch_file_diff request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "fetch_file_diff", + method_name: "read_repository_file", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -994,23 +994,23 @@ def fetch_file_diff request_pb, options = nil end ## - # Baseline implementation for the query_directory_contents REST call + # Baseline implementation for the query_repository_directory_contents REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] # A result object deserialized from the server's reply - def query_directory_contents request_pb, options = nil + def query_repository_directory_contents request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1022,11 +1022,11 @@ def query_directory_contents request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "query_directory_contents", + method_name: "query_repository_directory_contents", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1034,23 +1034,23 @@ def query_directory_contents request_pb, options = nil end ## - # Baseline implementation for the search_files REST call + # Baseline implementation for the fetch_repository_history REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] # A result object deserialized from the server's reply - def search_files request_pb, options = nil + def fetch_repository_history request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1062,11 +1062,11 @@ def search_files request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "search_files", + method_name: "fetch_repository_history", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1074,23 +1074,23 @@ def search_files request_pb, options = nil end ## - # Baseline implementation for the make_directory REST call + # Baseline implementation for the compute_repository_access_token_status REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] # A result object deserialized from the server's reply - def make_directory request_pb, options = nil + def compute_repository_access_token_status request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1102,11 +1102,11 @@ def make_directory request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "make_directory", + method_name: "compute_repository_access_token_status", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1114,23 +1114,23 @@ def make_directory request_pb, options = nil end ## - # Baseline implementation for the remove_directory REST call + # Baseline implementation for the fetch_remote_branches REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] # A result object deserialized from the server's reply - def remove_directory request_pb, options = nil + def fetch_remote_branches request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1142,11 +1142,11 @@ def remove_directory request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "remove_directory", + method_name: "fetch_remote_branches", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1154,23 +1154,23 @@ def remove_directory request_pb, options = nil end ## - # Baseline implementation for the move_directory REST call + # Baseline implementation for the list_workspaces REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] # A result object deserialized from the server's reply - def move_directory request_pb, options = nil + def list_workspaces request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1182,11 +1182,11 @@ def move_directory request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "move_directory", + method_name: "list_workspaces", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1194,23 +1194,23 @@ def move_directory request_pb, options = nil end ## - # Baseline implementation for the read_file REST call + # Baseline implementation for the get_workspace REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @return [::Google::Cloud::Dataform::V1::Workspace] # A result object deserialized from the server's reply - def read_file request_pb, options = nil + def get_workspace request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1222,11 +1222,11 @@ def read_file request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "read_file", + method_name: "get_workspace", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1234,23 +1234,23 @@ def read_file request_pb, options = nil end ## - # Baseline implementation for the remove_file REST call + # Baseline implementation for the create_workspace REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @return [::Google::Cloud::Dataform::V1::Workspace] # A result object deserialized from the server's reply - def remove_file request_pb, options = nil + def create_workspace request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1262,11 +1262,11 @@ def remove_file request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "remove_file", + method_name: "create_workspace", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1274,23 +1274,23 @@ def remove_file request_pb, options = nil end ## - # Baseline implementation for the move_file REST call + # Baseline implementation for the delete_workspace REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply - def move_file request_pb, options = nil + def delete_workspace request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1302,11 +1302,11 @@ def move_file request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "move_file", + method_name: "delete_workspace", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1314,23 +1314,23 @@ def move_file request_pb, options = nil end ## - # Baseline implementation for the write_file REST call + # Baseline implementation for the install_npm_packages REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] # A result object deserialized from the server's reply - def write_file request_pb, options = nil + def install_npm_packages request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1342,11 +1342,11 @@ def write_file request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "write_file", + method_name: "install_npm_packages", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1354,23 +1354,23 @@ def write_file request_pb, options = nil end ## - # Baseline implementation for the list_release_configs REST call + # Baseline implementation for the pull_git_commits REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] # A result object deserialized from the server's reply - def list_release_configs request_pb, options = nil + def pull_git_commits request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1382,11 +1382,11 @@ def list_release_configs request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_release_configs", + method_name: "pull_git_commits", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1394,23 +1394,23 @@ def list_release_configs request_pb, options = nil end ## - # Baseline implementation for the get_release_config REST call + # Baseline implementation for the push_git_commits REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] # A result object deserialized from the server's reply - def get_release_config request_pb, options = nil + def push_git_commits request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1422,11 +1422,11 @@ def get_release_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "get_release_config", + method_name: "push_git_commits", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1434,23 +1434,23 @@ def get_release_config request_pb, options = nil end ## - # Baseline implementation for the create_release_config REST call + # Baseline implementation for the fetch_file_git_statuses REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] # A result object deserialized from the server's reply - def create_release_config request_pb, options = nil + def fetch_file_git_statuses request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1462,11 +1462,11 @@ def create_release_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "create_release_config", + method_name: "fetch_file_git_statuses", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1474,23 +1474,23 @@ def create_release_config request_pb, options = nil end ## - # Baseline implementation for the update_release_config REST call + # Baseline implementation for the fetch_git_ahead_behind REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] # A result object deserialized from the server's reply - def update_release_config request_pb, options = nil + def fetch_git_ahead_behind request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1502,11 +1502,11 @@ def update_release_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "update_release_config", + method_name: "fetch_git_ahead_behind", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1514,23 +1514,23 @@ def update_release_config request_pb, options = nil end ## - # Baseline implementation for the delete_release_config REST call + # Baseline implementation for the commit_workspace_changes REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] # A result object deserialized from the server's reply - def delete_release_config request_pb, options = nil + def commit_workspace_changes request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1542,11 +1542,11 @@ def delete_release_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "delete_release_config", + method_name: "commit_workspace_changes", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1554,23 +1554,23 @@ def delete_release_config request_pb, options = nil end ## - # Baseline implementation for the list_compilation_results REST call + # Baseline implementation for the reset_workspace_changes REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] # A result object deserialized from the server's reply - def list_compilation_results request_pb, options = nil + def reset_workspace_changes request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1582,11 +1582,11 @@ def list_compilation_results request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_compilation_results", + method_name: "reset_workspace_changes", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1594,23 +1594,23 @@ def list_compilation_results request_pb, options = nil end ## - # Baseline implementation for the get_compilation_result REST call + # Baseline implementation for the fetch_file_diff REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] # A result object deserialized from the server's reply - def get_compilation_result request_pb, options = nil + def fetch_file_diff request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1622,11 +1622,11 @@ def get_compilation_result request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "get_compilation_result", + method_name: "fetch_file_diff", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1634,23 +1634,23 @@ def get_compilation_result request_pb, options = nil end ## - # Baseline implementation for the create_compilation_result REST call + # Baseline implementation for the query_directory_contents REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] # A result object deserialized from the server's reply - def create_compilation_result request_pb, options = nil + def query_directory_contents request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1662,11 +1662,11 @@ def create_compilation_result request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "create_compilation_result", + method_name: "query_directory_contents", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1674,23 +1674,23 @@ def create_compilation_result request_pb, options = nil end ## - # Baseline implementation for the query_compilation_result_actions REST call + # Baseline implementation for the search_files REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] # A result object deserialized from the server's reply - def query_compilation_result_actions request_pb, options = nil + def search_files request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1702,11 +1702,11 @@ def query_compilation_result_actions request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "query_compilation_result_actions", + method_name: "search_files", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1714,23 +1714,23 @@ def query_compilation_result_actions request_pb, options = nil end ## - # Baseline implementation for the list_workflow_configs REST call + # Baseline implementation for the make_directory REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] # A result object deserialized from the server's reply - def list_workflow_configs request_pb, options = nil + def make_directory request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1742,11 +1742,11 @@ def list_workflow_configs request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_workflow_configs", + method_name: "make_directory", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1754,23 +1754,23 @@ def list_workflow_configs request_pb, options = nil end ## - # Baseline implementation for the get_workflow_config REST call + # Baseline implementation for the remove_directory REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] # A result object deserialized from the server's reply - def get_workflow_config request_pb, options = nil + def remove_directory request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1782,11 +1782,11 @@ def get_workflow_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "get_workflow_config", + method_name: "remove_directory", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1794,23 +1794,23 @@ def get_workflow_config request_pb, options = nil end ## - # Baseline implementation for the create_workflow_config REST call + # Baseline implementation for the move_directory REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] # A result object deserialized from the server's reply - def create_workflow_config request_pb, options = nil + def move_directory request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1822,11 +1822,11 @@ def create_workflow_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "create_workflow_config", + method_name: "move_directory", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1834,23 +1834,23 @@ def create_workflow_config request_pb, options = nil end ## - # Baseline implementation for the update_workflow_config REST call + # Baseline implementation for the read_file REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] # A result object deserialized from the server's reply - def update_workflow_config request_pb, options = nil + def read_file request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1862,11 +1862,11 @@ def update_workflow_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "update_workflow_config", + method_name: "read_file", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1874,23 +1874,23 @@ def update_workflow_config request_pb, options = nil end ## - # Baseline implementation for the delete_workflow_config REST call + # Baseline implementation for the remove_file REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] # A result object deserialized from the server's reply - def delete_workflow_config request_pb, options = nil + def remove_file request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1902,11 +1902,11 @@ def delete_workflow_config request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "delete_workflow_config", + method_name: "remove_file", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1914,23 +1914,23 @@ def delete_workflow_config request_pb, options = nil end ## - # Baseline implementation for the list_workflow_invocations REST call + # Baseline implementation for the move_file REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] # A result object deserialized from the server's reply - def list_workflow_invocations request_pb, options = nil + def move_file request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1942,11 +1942,11 @@ def list_workflow_invocations request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_workflow_invocations", + method_name: "move_file", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1954,23 +1954,23 @@ def list_workflow_invocations request_pb, options = nil end ## - # Baseline implementation for the get_workflow_invocation REST call + # Baseline implementation for the write_file REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] # A result object deserialized from the server's reply - def get_workflow_invocation request_pb, options = nil + def write_file request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -1982,11 +1982,11 @@ def get_workflow_invocation request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "get_workflow_invocation", + method_name: "write_file", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -1994,23 +1994,23 @@ def get_workflow_invocation request_pb, options = nil end ## - # Baseline implementation for the create_workflow_invocation REST call + # Baseline implementation for the list_release_configs REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] # A result object deserialized from the server's reply - def create_workflow_invocation request_pb, options = nil + def list_release_configs request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -2022,11 +2022,11 @@ def create_workflow_invocation request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "create_workflow_invocation", + method_name: "list_release_configs", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -2034,23 +2034,23 @@ def create_workflow_invocation request_pb, options = nil end ## - # Baseline implementation for the delete_workflow_invocation REST call + # Baseline implementation for the get_release_config REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] # A result object deserialized from the server's reply - def delete_workflow_invocation request_pb, options = nil + def get_release_config request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -2062,11 +2062,11 @@ def delete_workflow_invocation request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "delete_workflow_invocation", + method_name: "get_release_config", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -2074,23 +2074,23 @@ def delete_workflow_invocation request_pb, options = nil end ## - # Baseline implementation for the cancel_workflow_invocation REST call + # Baseline implementation for the create_release_config REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] # A result object deserialized from the server's reply - def cancel_workflow_invocation request_pb, options = nil + def create_release_config request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -2102,11 +2102,11 @@ def cancel_workflow_invocation request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "cancel_workflow_invocation", + method_name: "create_release_config", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -2114,23 +2114,23 @@ def cancel_workflow_invocation request_pb, options = nil end ## - # Baseline implementation for the query_workflow_invocation_actions REST call + # Baseline implementation for the update_release_config REST call # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] # A result object deserialized from the server's reply - def query_workflow_invocation_actions request_pb, options = nil + def update_release_config request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -2142,11 +2142,51 @@ def query_workflow_invocation_actions request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "query_workflow_invocation_actions", + method_name: "update_release_config", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -2154,83 +2194,1125 @@ def query_workflow_invocation_actions request_pb, options = nil end ## - # Baseline implementation for the get_config REST call + # Baseline implementation for the list_compilation_results REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # A result object deserialized from the server's reply + def list_compilation_results request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_compilation_results", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def get_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def create_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_compilation_result_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # A result object deserialized from the server's reply + def query_compilation_result_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_compilation_result_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # A result object deserialized from the server's reply + def list_workflow_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def get_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def create_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def update_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_invocations REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # A result object deserialized from the server's reply + def list_workflow_invocations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_invocations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def get_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def create_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # A result object deserialized from the server's reply + def cancel_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_workflow_invocation_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # A result object deserialized from the server's reply + def query_workflow_invocation_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_workflow_invocation_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def get_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def update_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def get_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def set_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "set_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # A result object deserialized from the server's reply + def test_iam_permissions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "test_iam_permissions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/teamFolders", + body: "team_folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{team_folder.name}", + body: "team_folder", + matches: [ + ["team_folder.name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_team_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_team_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{team_folder}:queryContents", + matches: [ + ["team_folder", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_team_folders REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_team_folders_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}/teamFolders:search", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/folders", + body: "folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{folder.name}", + body: "folder", + matches: [ + ["folder.name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private # - # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # GRPC transcoding helper method for the delete_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] + # GRPC transcoding helper method for the delete_folder_tree REST call # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def get_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb end ## - # Baseline implementation for the update_config REST call + # @private # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # GRPC transcoding helper method for the query_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{folder}:queryFolderContents", + matches: [ + ["folder", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] + # GRPC transcoding helper method for the query_user_root_contents REST call # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def update_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_user_root_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}:queryUserRootContents", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end + ## + # @private + # + # GRPC transcoding helper method for the move_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb end ## @@ -2340,6 +3422,28 @@ def self.transcode_delete_repository_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the move_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # @@ -3389,6 +4493,140 @@ def self.transcode_update_config_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_set_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_test_iam_permissions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb index 1e5b02f61985..d0223b594bff 100644 --- a/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb +++ b/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb @@ -8,6 +8,9 @@ require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' @@ -15,7 +18,7 @@ require 'google/type/interval_pb' -descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x9e\r\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_internal_metadata\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xe8\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\xfd\x02\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadata\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xa1\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\">\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x42\x07\n\x05\x65ntry\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xef\x07\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xba\x1b\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xc5\x08\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xa0\x02\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xb9\x07\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xca\x01\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfig\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x32\x8b[\n\x08\x44\x61taform\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x1at\xca\x41\x17\x64\x61taform.googleapis.com\xd2\x41Whttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\xde\x05\n\x1c\x63om.google.cloud.dataform.v1B\rDataformProtoP\x01Z8cloud.google.com/go/dataform/apiv1/dataformpb;dataformpb\xaa\x02\x18Google.Cloud.Dataform.V1\xca\x02\x18Google\\Cloud\\Dataform\\V1\xea\x02\x1bGoogle::Cloud::Dataform::V1\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41\xa6\x01\n(cloudkms.googleapis.com/CryptoKeyVersion\x12zprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\xea\x41\x91\x01\n1aiplatform.googleapis.com/NotebookRuntimeTemplate\x12\\projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}b\x06proto3" +descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0e\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12#\n\x11\x63ontaining_folder\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\"\n\x10team_folder_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_containing_folderB\x13\n\x11_team_folder_nameB\x14\n\x12_internal_metadata\"3\n\x17PrivateResourceMetadata\x12\x18\n\x0buser_scoped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa4\x01\n\x15MoveRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xff\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\x8b\x04\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rdisable_moves\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x08 \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadataB\x10\n\x0e_disable_moves\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xe5\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x05 \x01(\x0e\x32/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x12\x43\n\x08metadata\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\n\x05\x65ntry\"h\n\x17\x46ilesystemEntryMetadata\x12\x17\n\nsize_bytes\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xca\x08\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x0c \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa3\x1e\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xae\x0b\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\n\nconnection\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x0ctable_format\x18\x10 \x01(\x0e\x32\x46.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xe0\x41\x01\x12_\n\x0b\x66ile_format\x18\x11 \x01(\x0e\x32\x45.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xe0\x41\x01\x12\x18\n\x0bstorage_uri\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\"8\n\x0bTableFormat\x12\x1c\n\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07ICEBERG\x10\x01\"6\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xdc\x03\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x0equery_priority\x18\t \x01(\x0e\x32\x38.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xe0\x41\x01H\x00\x88\x01\x01\"K\n\rQueryPriority\x12\x1e\n\x1aQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINTERACTIVE\x10\x01\x12\t\n\x05\x42\x41TCH\x10\x02\x42\x11\n\x0f_query_priority\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\x94\x08\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\n \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x02\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfigB\x14\n\x12_internal_metadata\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcf\x03\n\x06\x46older\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x63ontaining_folder\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10team_folder_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:n\xea\x41k\n\x1e\x64\x61taform.googleapis.com/Folder\x12\x38projects/{project}/locations/{location}/folders/{folder}*\x07\x66olders2\x06\x66olderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x87\x01\n\x13\x43reateFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"\x9c\x01\n\x11MoveFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"H\n\x10GetFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"\x82\x01\n\x13UpdateFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"K\n\x13\x44\x65leteFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"c\n\x17\x44\x65leteFolderTreeRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x1b\x44\x65leteTeamFolderTreeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe2\x02\n\x18\x44\x65leteFolderTreeMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\"[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xb1\x01\n\x1aQueryFolderContentsRequest\x12\x36\n\x06\x66older\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1bQueryFolderContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8e\x01\n\x13\x46olderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb8\x01\n\x1cQueryUserRootContentsRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1dQueryUserRootContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8c\x01\n\x11RootContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xab\x03\n\nTeamFolder\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n\"dataform.googleapis.com/TeamFolder\x12\x41projects/{project}/locations/{location}/teamFolders/{team_folder}*\x0bteamFolders2\nteamFolderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x94\x01\n\x17\x43reateTeamFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"P\n\x14GetTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\x8f\x01\n\x17UpdateTeamFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"S\n\x17\x44\x65leteTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\xbe\x01\n\x1eQueryTeamFolderContentsRequest\x12?\n\x0bteam_folder\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb3\x02\n\x1fQueryTeamFolderContentsResponse\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x92\x01\n\x17TeamFolderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb4\x01\n\x18SearchTeamFoldersRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xf1\x01\n\x19SearchTeamFoldersResponse\x12[\n\x07results\x18\x01 \x03(\x0b\x32J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a^\n\x16TeamFolderSearchResult\x12;\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderH\x00\x42\x07\n\x05\x65ntry\"\xca\x02\n\x12MoveFolderMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xd2\x02\n\x16MoveRepositoryMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04*\x89\x01\n\x15\x44irectoryContentsView\x12\'\n#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1d\x44IRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12$\n DIRECTORY_CONTENTS_VIEW_METADATA\x10\x02\x32\xe3}\n\x08\x44\x61taform\x12\xa5\x01\n\rGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xc6\x01\n\x10\x43reateTeamFolder\x12\x31.google.cloud.dataform.v1.CreateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"Y\xda\x41\x12parent,team_folder\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0bteam_folder\x12\xd7\x01\n\x10UpdateTeamFolder\x12\x31.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"j\xda\x41\x17team_folder,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0bteam_folder\x12\x9d\x01\n\x10\x44\x65leteTeamFolder\x12\x31.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xf5\x01\n\x14\x44\x65leteTeamFolderTree\x12\x35.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xea\x01\n\x17QueryTeamFolderContents\x12\x38.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1a\x39.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xda\x41\x0bteam_folder\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xbe\x01\n\x11SearchTeamFolders\x12\x32.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1a\x33.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\n\tGetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1a .google.cloud.dataform.v1.Folder\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xac\x01\n\x0c\x43reateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"K\xda\x41\rparent,folder\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/folders:\x06\x66older\x12\xb8\x01\n\x0cUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"W\xda\x41\x12\x66older,update_mask\x82\xd3\xe4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06\x66older\x12\x91\x01\n\x0c\x44\x65leteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xe9\x01\n\x10\x44\x65leteFolderTree\x12\x31.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xd6\x01\n\x13QueryFolderContents\x12\x34.google.cloud.dataform.v1.QueryFolderContentsRequest\x1a\x35.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xda\x41\x06\x66older\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xd8\x01\n\x15QueryUserRootContents\x12\x36.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1a\x37.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xda\x41\x08location\x82\xd3\xe4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xe9\x01\n\nMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41+\n\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02\x35\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xfa\x01\n\x0eMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x12\xf7\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xab\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x99\x02\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class FolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `QueryUserRootContents` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryUserRootContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryUserRootContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryUserRootContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class RootContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents a Dataform TeamFolder. This is a resource that sits at the project + # level and is used to organize Repositories and Folders with hierarchical + # access controls. They provide a team context and stricter access controls. + # @!attribute [rw] name + # @return [::String] + # Identifier. The TeamFolder's name. + # @!attribute [rw] display_name + # @return [::String] + # Required. The TeamFolder's user-friendly name. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] creator_iam_principal + # @return [::String] + # Output only. The IAM principal identifier of the creator of the TeamFolder. + class TeamFolder + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateTeamFolder` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The TeamFolder to create. + class CreateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class GetTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateTeamFolder` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The updated TeamFolder. + class UpdateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class DeleteTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` request message. + # @!attribute [rw] team_folder + # @return [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryTeamFolderContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # List of entries in the TeamFolder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryTeamFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class TeamFolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `SearchTeamFolders` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class SearchTeamFoldersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `SearchTeamFolders` response message. + # @!attribute [rw] results + # @return [::Array<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # List of TeamFolders that match the search query. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class SearchTeamFoldersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A TeamFolder resource that is in the project / location. + class TeamFolderSearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Contains metadata about the progress of the MoveFolder Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveFolderMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveFolderMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Contains metadata about the progress of the MoveRepository Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveRepositoryMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveRepositoryMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Represents the level of detail to return for directory contents. + module DirectoryContentsView + # The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0 + + # Includes only the file or directory name. This is the default behavior. + DIRECTORY_CONTENTS_VIEW_BASIC = 1 + + # Includes all metadata for each file or directory. Currently not supported + # by CMEK-protected workspaces. + DIRECTORY_CONTENTS_VIEW_METADATA = 2 + end end end end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb b/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb rename to google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb b/google-cloud-dataform-v1/snippets/dataform/create_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/create_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb b/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb b/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/delete_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb b/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb rename to google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb b/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb b/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb rename to google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb b/google-cloud-dataform-v1/snippets/dataform/get_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/get_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb b/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb rename to google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb b/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb b/google-cloud-dataform-v1/snippets/dataform/move_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/move_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb b/google-cloud-dataform-v1/snippets/dataform/move_repository.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb rename to google-cloud-dataform-v1/snippets/dataform/move_repository.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb b/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb rename to google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb b/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb rename to google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb b/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb rename to google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb b/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb rename to google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb b/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb rename to google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb b/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb rename to google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb b/google-cloud-dataform-v1/snippets/dataform/update_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/update_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb b/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb rename to google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb b/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb rename to google-cloud-dataform-v1/snippets/operations/cancel_operation.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb b/google-cloud-dataform-v1/snippets/operations/delete_operation.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb rename to google-cloud-dataform-v1/snippets/operations/delete_operation.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb b/google-cloud-dataform-v1/snippets/operations/get_operation.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb rename to google-cloud-dataform-v1/snippets/operations/get_operation.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb b/google-cloud-dataform-v1/snippets/operations/list_operations.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb rename to google-cloud-dataform-v1/snippets/operations/list_operations.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb b/google-cloud-dataform-v1/snippets/operations/wait_operation.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb rename to google-cloud-dataform-v1/snippets/operations/wait_operation.rb diff --git a/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json b/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json index 300717888282..f352d1a1275e 100644 --- a/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json +++ b/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json @@ -11,6 +11,606 @@ ] }, "snippets": [ + { + "region_tag": "dataform_v1_generated_Dataform_GetTeamFolder_sync", + "title": "Snippet for the get_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder.", + "file": "dataform/get_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateTeamFolder_sync", + "title": "Snippet for the create_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder.", + "file": "dataform/create_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateTeamFolder_sync", + "title": "Snippet for the update_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder.", + "file": "dataform/update_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolder_sync", + "title": "Snippet for the delete_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder.", + "file": "dataform/delete_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync", + "title": "Snippet for the delete_team_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree.", + "file": "dataform/delete_team_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_sync", + "title": "Snippet for the query_team_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents.", + "file": "dataform/query_team_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_team_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryTeamFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SearchTeamFolders_sync", + "title": "Snippet for the search_team_folders call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders.", + "file": "dataform/search_team_folders.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_team_folders", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SearchTeamFolders", + "full_name": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetFolder_sync", + "title": "Snippet for the get_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_folder.", + "file": "dataform/get_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateFolder_sync", + "title": "Snippet for the create_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_folder.", + "file": "dataform/create_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateFolder_sync", + "title": "Snippet for the update_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_folder.", + "file": "dataform/update_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolder_sync", + "title": "Snippet for the delete_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder.", + "file": "dataform/delete_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolderTree_sync", + "title": "Snippet for the delete_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree.", + "file": "dataform/delete_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryFolderContents_sync", + "title": "Snippet for the query_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents.", + "file": "dataform/query_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryUserRootContents_sync", + "title": "Snippet for the query_user_root_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents.", + "file": "dataform/query_user_root_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_user_root_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryUserRootContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveFolder_sync", + "title": "Snippet for the move_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_folder.", + "file": "dataform/move_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveFolder", + "full_name": "google.cloud.dataform.v1.Dataform.MoveFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, { "region_tag": "dataform_v1_generated_Dataform_ListRepositories_sync", "title": "Snippet for the list_repositories call in the Dataform service", @@ -211,6 +811,46 @@ } ] }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveRepository_sync", + "title": "Snippet for the move_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_repository.", + "file": "dataform/move_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveRepository", + "full_name": "google.cloud.dataform.v1.Dataform.MoveRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, { "region_tag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_sync", "title": "Snippet for the commit_repository_changes call in the Dataform service", @@ -2170,6 +2810,126 @@ "type": "FULL" } ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy.", + "file": "dataform/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.GetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy.", + "file": "dataform/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.SetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions.", + "file": "dataform/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.cloud.dataform.v1.Dataform.TestIamPermissions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] } ] } \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json b/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json similarity index 99% rename from owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json rename to google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json index ae5311ef4402..2a7c8f5e757a 100644 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json +++ b/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json @@ -1,7 +1,7 @@ { "client_library": { "name": "google-cloud-dataform-v1", - "version": "", + "version": "0.3.0", "language": "RUBY", "apis": [ { diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb b/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb rename to google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb diff --git a/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb b/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb index d13c36810002..34e248602750 100644 --- a/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb +++ b/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb @@ -89,6 +89,18 @@ def test_crypto_key_version_path end end + def test_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.folder_path project: "value0", location: "value1", folder: "value2" + assert_equal "projects/value0/locations/value1/folders/value2", path + end + end + def test_location_path grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure ::Gapic::ServiceStub.stub :new, DummyStub.new do @@ -149,6 +161,18 @@ def test_secret_version_path end end + def test_team_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.team_folder_path project: "value0", location: "value1", team_folder: "value2" + assert_equal "projects/value0/locations/value1/teamFolders/value2", path + end + end + def test_workflow_config_path grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure ::Gapic::ServiceStub.stub :new, DummyStub.new do diff --git a/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb b/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb index 547fdcd40b6c..475b6e65a896 100644 --- a/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb +++ b/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb @@ -78,6 +78,839 @@ def logger end end + def test_get_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_count + end + end + end + + def test_create_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_count + end + end + end + + def test_update_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_count + end + end + end + + def test_query_team_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_team_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_count + end + end + end + + def test_search_team_folders + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_team_folders_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_count + end + end + end + + def test_get_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_count + end + end + end + + def test_create_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_count + end + end + end + + def test_update_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_count + end + end + end + + def test_delete_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_count + end + end + end + + def test_delete_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_count + end + end + end + + def test_query_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_count + end + end + end + + def test_query_user_root_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_user_root_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_count + end + end + end + + def test_move_folder + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_count + end + end + end + def test_list_repositories # Create test objects. client_result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new @@ -356,6 +1189,61 @@ def test_delete_repository end end + def test_move_repository + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_count + end + end + end + def test_commit_repository_changes # Create test objects. client_result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new @@ -1367,6 +2255,7 @@ def test_query_directory_contents path = "hello world" page_size = 42 page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED query_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| assert options.metadata.key? :"x-goog-api-client" @@ -1382,27 +2271,27 @@ def test_query_directory_contents end # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token }) do |_result, response| + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token do |_result, response| + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token) do |_result, response| + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token), call_options) do |_result, response| + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), call_options) do |_result, response| assert_equal http_response, response.underlying_op end @@ -3072,6 +3961,172 @@ def test_update_config end end + def test_get_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_count + end + end + end + + def test_set_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_set_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_count + end + end + end + + def test_test_iam_permissions + # Create test objects. + client_result = ::Google::Iam::V1::TestIamPermissionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_test_iam_permissions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb b/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb index 692e03688fdc..9845d5b9ef8d 100644 --- a/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb +++ b/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb @@ -63,6 +63,958 @@ def logger end end + def test_get_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_rpc_count + end + end + + def test_create_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_rpc_count + end + end + + def test_update_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_team_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_team_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, request + assert_equal "hello world", request["team_folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_rpc_count + end + end + + def test_search_team_folders + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_team_folders, name + assert_kind_of ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_rpc_count + end + end + + def test_get_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_rpc_count + end + end + + def test_create_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_rpc_count + end + end + + def test_update_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, request + assert_equal "hello world", request["folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_rpc_count + end + end + + def test_query_user_root_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_user_root_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_rpc_count + end + end + + def test_move_folder + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveFolderRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_rpc_count + end + end + def test_list_repositories # Create GRPC objects. grpc_response = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new @@ -374,6 +1326,72 @@ def test_delete_repository end end + def test_move_repository + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveRepositoryRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_rpc_count + end + end + def test_commit_repository_changes # Create GRPC objects. grpc_response = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new @@ -1499,6 +2517,7 @@ def test_query_directory_contents path = "hello world" page_size = 42 page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED query_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| assert_equal :query_directory_contents, name @@ -1507,6 +2526,7 @@ def test_query_directory_contents assert_equal "hello world", request["path"] assert_equal 42, request["page_size"] assert_equal "hello world", request["page_token"] + assert_equal :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED, request["view"] refute_nil options end @@ -1517,35 +2537,35 @@ def test_query_directory_contents end # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token }) do |response, operation| + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token do |response, operation| + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token) do |response, operation| + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation @@ -3411,6 +4431,188 @@ def test_update_config end end + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + def test_configure grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure @@ -3449,4 +4651,18 @@ def test_credentials assert_equal creds, client.configure.credentials end end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations, client.operations_client + end end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb b/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb rename to google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb b/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb rename to google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb b/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb similarity index 100% rename from owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb rename to google-cloud-dataform-v1/test/google/longrunning/operations_test.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/.gitignore b/owl-bot-staging/google-cloud-dataform-v1/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json deleted file mode 100644 index 637d61a979b2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_id": "dataform.googleapis.com", - "api_shortname": "dataform", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest", - "distribution_name": "google-cloud-dataform-v1", - "is_cloud": true, - "language": "ruby", - "name": "dataform", - "name_pretty": "Dataform V1 API", - "product_documentation": "https://cloud.google.com/dataform/docs/overview", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details.", - "ruby-cloud-product-url": "https://cloud.google.com/dataform/docs/overview", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml deleted file mode 100644 index 6f84a6d0a78b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-dataform-v1.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-dataform-v1.rb" diff --git a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/.yardopts b/owl-bot-staging/google-cloud-dataform-v1/.yardopts deleted file mode 100644 index f98df5dcdd6e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Dataform V1 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md deleted file mode 100644 index 91f83b42e5fa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-dataform-v1 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-dataform-v1 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/dataform/v1" - -client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/dataform/v1" - -::Google::Longrunning::Operations::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Longrunning::Operations::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-dataform-v1 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/dataform/v1" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Longrunning::Operations::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-dataform-v1/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataform-v1/README.md b/owl-bot-staging/google-cloud-dataform-v1/README.md deleted file mode 100644 index bd989cf181ba..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Dataform V1 API - -Service to develop, version control, and operationalize SQL pipelines in BigQuery. - -Service to develop, version control, and operationalize SQL pipelines in BigQuery. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Dataform V1 API. Most users should consider using -the main client gem, -[google-cloud-dataform](https://rubygems.org/gems/google-cloud-dataform). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-dataform-v1 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/dataform.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/dataform/v1" - -client = ::Google::Longrunning::Operations::Client.new -request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...) -response = client.list_operations request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/dataform/docs/overview) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/dataform/v1" -require "logger" - -client = ::Google::Longrunning::Operations::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-dataform`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-dataform-v1`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-dataform`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-dataform-v1`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataform-v1/Rakefile b/owl-bot-staging/google-cloud-dataform-v1/Rakefile deleted file mode 100644 index 5a65a0a061e8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-dataform-v1 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["GOOGLE_CLOUD_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/longrunning/operations/credentials" - ::Google::Longrunning::Operations::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["GOOGLE_CLOUD_PROJECT"] = project - ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project - ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-dataform-v1 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataform-v1 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataform-v1 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-dataform-v1 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-dataform-v1" - header "google-cloud-dataform-v1 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-dataform-v1 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-dataform-v1 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-dataform-v1 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-dataform-v1 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json deleted file mode 100644 index da5082c37f30..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.cloud.dataform.v1", - "libraryPackage": "::Google::Cloud::Dataform::V1", - "services": { - "Dataform": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataform::V1::Dataform::Client", - "rpcs": { - "GetTeamFolder": { - "methods": [ - "get_team_folder" - ] - }, - "CreateTeamFolder": { - "methods": [ - "create_team_folder" - ] - }, - "UpdateTeamFolder": { - "methods": [ - "update_team_folder" - ] - }, - "DeleteTeamFolder": { - "methods": [ - "delete_team_folder" - ] - }, - "DeleteTeamFolderTree": { - "methods": [ - "delete_team_folder_tree" - ] - }, - "QueryTeamFolderContents": { - "methods": [ - "query_team_folder_contents" - ] - }, - "SearchTeamFolders": { - "methods": [ - "search_team_folders" - ] - }, - "GetFolder": { - "methods": [ - "get_folder" - ] - }, - "CreateFolder": { - "methods": [ - "create_folder" - ] - }, - "UpdateFolder": { - "methods": [ - "update_folder" - ] - }, - "DeleteFolder": { - "methods": [ - "delete_folder" - ] - }, - "DeleteFolderTree": { - "methods": [ - "delete_folder_tree" - ] - }, - "QueryFolderContents": { - "methods": [ - "query_folder_contents" - ] - }, - "QueryUserRootContents": { - "methods": [ - "query_user_root_contents" - ] - }, - "MoveFolder": { - "methods": [ - "move_folder" - ] - }, - "ListRepositories": { - "methods": [ - "list_repositories" - ] - }, - "GetRepository": { - "methods": [ - "get_repository" - ] - }, - "CreateRepository": { - "methods": [ - "create_repository" - ] - }, - "UpdateRepository": { - "methods": [ - "update_repository" - ] - }, - "DeleteRepository": { - "methods": [ - "delete_repository" - ] - }, - "MoveRepository": { - "methods": [ - "move_repository" - ] - }, - "CommitRepositoryChanges": { - "methods": [ - "commit_repository_changes" - ] - }, - "ReadRepositoryFile": { - "methods": [ - "read_repository_file" - ] - }, - "QueryRepositoryDirectoryContents": { - "methods": [ - "query_repository_directory_contents" - ] - }, - "FetchRepositoryHistory": { - "methods": [ - "fetch_repository_history" - ] - }, - "ComputeRepositoryAccessTokenStatus": { - "methods": [ - "compute_repository_access_token_status" - ] - }, - "FetchRemoteBranches": { - "methods": [ - "fetch_remote_branches" - ] - }, - "ListWorkspaces": { - "methods": [ - "list_workspaces" - ] - }, - "GetWorkspace": { - "methods": [ - "get_workspace" - ] - }, - "CreateWorkspace": { - "methods": [ - "create_workspace" - ] - }, - "DeleteWorkspace": { - "methods": [ - "delete_workspace" - ] - }, - "InstallNpmPackages": { - "methods": [ - "install_npm_packages" - ] - }, - "PullGitCommits": { - "methods": [ - "pull_git_commits" - ] - }, - "PushGitCommits": { - "methods": [ - "push_git_commits" - ] - }, - "FetchFileGitStatuses": { - "methods": [ - "fetch_file_git_statuses" - ] - }, - "FetchGitAheadBehind": { - "methods": [ - "fetch_git_ahead_behind" - ] - }, - "CommitWorkspaceChanges": { - "methods": [ - "commit_workspace_changes" - ] - }, - "ResetWorkspaceChanges": { - "methods": [ - "reset_workspace_changes" - ] - }, - "FetchFileDiff": { - "methods": [ - "fetch_file_diff" - ] - }, - "QueryDirectoryContents": { - "methods": [ - "query_directory_contents" - ] - }, - "SearchFiles": { - "methods": [ - "search_files" - ] - }, - "MakeDirectory": { - "methods": [ - "make_directory" - ] - }, - "RemoveDirectory": { - "methods": [ - "remove_directory" - ] - }, - "MoveDirectory": { - "methods": [ - "move_directory" - ] - }, - "ReadFile": { - "methods": [ - "read_file" - ] - }, - "RemoveFile": { - "methods": [ - "remove_file" - ] - }, - "MoveFile": { - "methods": [ - "move_file" - ] - }, - "WriteFile": { - "methods": [ - "write_file" - ] - }, - "ListReleaseConfigs": { - "methods": [ - "list_release_configs" - ] - }, - "GetReleaseConfig": { - "methods": [ - "get_release_config" - ] - }, - "CreateReleaseConfig": { - "methods": [ - "create_release_config" - ] - }, - "UpdateReleaseConfig": { - "methods": [ - "update_release_config" - ] - }, - "DeleteReleaseConfig": { - "methods": [ - "delete_release_config" - ] - }, - "ListCompilationResults": { - "methods": [ - "list_compilation_results" - ] - }, - "GetCompilationResult": { - "methods": [ - "get_compilation_result" - ] - }, - "CreateCompilationResult": { - "methods": [ - "create_compilation_result" - ] - }, - "QueryCompilationResultActions": { - "methods": [ - "query_compilation_result_actions" - ] - }, - "ListWorkflowConfigs": { - "methods": [ - "list_workflow_configs" - ] - }, - "GetWorkflowConfig": { - "methods": [ - "get_workflow_config" - ] - }, - "CreateWorkflowConfig": { - "methods": [ - "create_workflow_config" - ] - }, - "UpdateWorkflowConfig": { - "methods": [ - "update_workflow_config" - ] - }, - "DeleteWorkflowConfig": { - "methods": [ - "delete_workflow_config" - ] - }, - "ListWorkflowInvocations": { - "methods": [ - "list_workflow_invocations" - ] - }, - "GetWorkflowInvocation": { - "methods": [ - "get_workflow_invocation" - ] - }, - "CreateWorkflowInvocation": { - "methods": [ - "create_workflow_invocation" - ] - }, - "DeleteWorkflowInvocation": { - "methods": [ - "delete_workflow_invocation" - ] - }, - "CancelWorkflowInvocation": { - "methods": [ - "cancel_workflow_invocation" - ] - }, - "QueryWorkflowInvocationActions": { - "methods": [ - "query_workflow_invocation_actions" - ] - }, - "GetConfig": { - "methods": [ - "get_config" - ] - }, - "UpdateConfig": { - "methods": [ - "update_config" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec deleted file mode 100644 index 76010660b167..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec +++ /dev/null @@ -1,30 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/dataform/v1/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-dataform-v1" - gem.version = Google::Cloud::Dataform::V1::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details." - gem.summary = "Service to develop, version control, and operationalize SQL pipelines in BigQuery." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "google-cloud-location", "~> 1.0" - gem.add_dependency "google-iam-v1", "~> 1.3" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb deleted file mode 100644 index 015820e39535..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/dataform/v1" -# require "google/longrunning" diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb deleted file mode 100644 index 7a6071098191..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataform/v1/dataform" -require "google/cloud/dataform/v1/version" - -module Google - module Cloud - module Dataform - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/dataform/v1" - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/dataform/v1" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module V1 - end - end - end -end - -helper_path = ::File.join __dir__, "v1", "_helpers.rb" -require "google/cloud/dataform/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb deleted file mode 100644 index 655e4a1eab49..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" - -module Google - module Cloud - module Dataform - ## - # @example Loading just the REST part of this package, including all its services, and instantiating a REST client - # - # require "google/cloud/dataform/v1/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module V1 - ## - # @private - # Initialize the mixin bindings configuration - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - - default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config - default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}/locations", - matches: [ - ["name", %r{^projects/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config - end - yield @configure if block_given? - @configure - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb deleted file mode 100644 index ac1adbd0da42..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" - -require "google/cloud/dataform/v1/dataform/credentials" -require "google/cloud/dataform/v1/dataform/paths" -require "google/cloud/dataform/v1/dataform/operations" -require "google/cloud/dataform/v1/dataform/client" -require "google/cloud/dataform/v1/dataform/rest" - -module Google - module Cloud - module Dataform - module V1 - ## - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataform/v1/dataform" - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataform/v1/dataform/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module Dataform - end - end - end - end -end - -helper_path = ::File.join __dir__, "dataform", "helpers.rb" -require "google/cloud/dataform/v1/dataform/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb deleted file mode 100644 index 632bdd44803f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb +++ /dev/null @@ -1,7794 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/location" -require "google/iam/v1" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - ## - # Client for the Dataform service. - # - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :dataform_stub - - ## - # Configure the Dataform Client class. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Dataform clients - # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @dataform_stub.universe_domain - end - - ## - # Create a new Dataform client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Dataform client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/cloud/dataform/v1/dataform_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @dataform_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataform::V1::Dataform::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @dataform_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Dataform::V1::Dataform::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @dataform_stub.logger - end - - # Service calls - - ## - # Fetches a single TeamFolder. - # - # @overload get_team_folder(request, options = nil) - # Pass arguments to `get_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_team_folder(name: nil) - # Pass arguments to `get_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - # - # # Call the get_team_folder method. - # result = client.get_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def get_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new TeamFolder in a given project and location. - # - # @overload create_team_folder(request, options = nil) - # Pass arguments to `create_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_team_folder(parent: nil, team_folder: nil) - # Pass arguments to `create_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The TeamFolder to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - # - # # Call the create_team_folder method. - # result = client.create_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def create_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single TeamFolder. - # - # @overload update_team_folder(request, options = nil) - # Pass arguments to `update_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_team_folder(update_mask: nil, team_folder: nil) - # Pass arguments to `update_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The updated TeamFolder. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - # - # # Call the update_team_folder method. - # result = client.update_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def update_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.team_folder&.name - header_params["team_folder.name"] = request.team_folder.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single TeamFolder. - # - # @overload delete_team_folder(request, options = nil) - # Pass arguments to `delete_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_team_folder(name: nil) - # Pass arguments to `delete_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - # - # # Call the delete_team_folder method. - # result = client.delete_team_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_team_folder_tree(request, options = nil) - # Pass arguments to `delete_team_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_team_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - # - # # Call the delete_team_folder_tree method. - # result = client.delete_team_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_team_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given TeamFolder. - # - # @overload query_team_folder_contents(request, options = nil) - # Pass arguments to `query_team_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param team_folder [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - # - # # Call the query_team_folder_contents method. - # result = client.query_team_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - # p item - # end - # - def query_team_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_team_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.team_folder - header_params["team_folder"] = request.team_folder - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_team_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all TeamFolders in a given location that the caller has access to - # and match the provided filter. - # - # @overload search_team_folders(request, options = nil) - # Pass arguments to `search_team_folders` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `search_team_folders` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - # - # # Call the search_team_folders method. - # result = client.search_team_folders request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - # p item - # end - # - def search_team_folders request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_team_folders.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_team_folders.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Folder. - # - # @overload get_folder(request, options = nil) - # Pass arguments to `get_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_folder(name: nil) - # Pass arguments to `get_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetFolderRequest.new - # - # # Call the get_folder method. - # result = client.get_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def get_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Folder in a given project and location. - # - # @overload create_folder(request, options = nil) - # Pass arguments to `create_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_folder(parent: nil, folder: nil) - # Pass arguments to `create_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The Folder to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - # - # # Call the create_folder method. - # result = client.create_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def create_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Folder. - # - # @overload update_folder(request, options = nil) - # Pass arguments to `update_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_folder(update_mask: nil, folder: nil) - # Pass arguments to `update_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The updated Folder. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - # - # # Call the update_folder method. - # result = client.update_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def update_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.folder&.name - header_params["folder.name"] = request.folder.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Folder. - # - # @overload delete_folder(request, options = nil) - # Pass arguments to `delete_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_folder(name: nil) - # Pass arguments to `delete_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - # - # # Call the delete_folder method. - # result = client.delete_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Folder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_folder_tree(request, options = nil) - # Pass arguments to `delete_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - # - # # Call the delete_folder_tree method. - # result = client.delete_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Folder. - # - # @overload query_folder_contents(request, options = nil) - # Pass arguments to `query_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param folder [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - # - # # Call the query_folder_contents method. - # result = client.query_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - # p item - # end - # - def query_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.folder - header_params["folder"] = request.folder - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a caller's root folder in a given location. - # The root folder contains all resources that are created by the user and not - # contained in any other folder. - # - # @overload query_user_root_contents(request, options = nil) - # Pass arguments to `query_user_root_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - # - # # Call the query_user_root_contents method. - # result = client.query_user_root_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - # p item - # end - # - def query_user_root_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_user_root_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_user_root_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Folder to a new Folder, TeamFolder, or the root location. - # - # @overload move_folder(request, options = nil) - # Pass arguments to `move_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_folder(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the Folder to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - # - # # Call the move_folder method. - # result = client.move_folder request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Repositories in a given project and location. - # - # **Note:** *This method can return repositories not shown in the [Dataform - # UI](https://console.cloud.google.com/bigquery/dataform)*. - # - # @overload list_repositories(request, options = nil) - # Pass arguments to `list_repositories` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_repositories` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - # - # # Call the list_repositories method. - # result = client.list_repositories request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - # p item - # end - # - def list_repositories request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_repositories.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_repositories.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Repository. - # - # @overload get_repository(request, options = nil) - # Pass arguments to `get_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_repository(name: nil) - # Pass arguments to `get_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - # - # # Call the get_repository method. - # result = client.get_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def get_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Repository in a given project and location. - # - # @overload create_repository(request, options = nil) - # Pass arguments to `create_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_repository(parent: nil, repository: nil, repository_id: nil) - # Pass arguments to `create_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to create. - # @param repository_id [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - # - # # Call the create_repository method. - # result = client.create_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def create_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Repository. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_repository(request, options = nil) - # Pass arguments to `update_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_repository(update_mask: nil, repository: nil) - # Pass arguments to `update_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - # - # # Call the update_repository method. - # result = client.update_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def update_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.repository&.name - header_params["repository.name"] = request.repository.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Repository. - # - # @overload delete_repository(request, options = nil) - # Pass arguments to `delete_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_repository(name: nil, force: nil) - # Pass arguments to `delete_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param force [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - # - # # Call the delete_repository method. - # result = client.delete_repository request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Repository to a new location. - # - # @overload move_repository(request, options = nil) - # Pass arguments to `move_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_repository(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the repository to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - # - # # Call the move_repository method. - # result = client.move_repository request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit to a Repository. The Repository must not have a value - # for `git_remote_settings.url`. - # - # @overload commit_repository_changes(request, options = nil) - # Pass arguments to `commit_repository_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) - # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] - # Required. The changes to commit to the repository. - # @param required_head_commit_sha [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - # - # # Call the commit_repository_changes method. - # result = client.commit_repository_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - # p result - # - def commit_repository_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.commit_repository_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.commit_repository_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Repository). The Repository - # must not have a value for `git_remote_settings.url`. - # - # @overload read_repository_file(request, options = nil) - # Pass arguments to `read_repository_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) - # Pass arguments to `read_repository_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @param path [::String] - # Required. Full file path to read including filename, from repository root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - # - # # Call the read_repository_file method. - # result = client.read_repository_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - # p result - # - def read_repository_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.read_repository_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.read_repository_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Repository directory. The Repository must - # not have a value for `git_remote_settings.url`. - # - # @overload query_repository_directory_contents(request, options = nil) - # Pass arguments to `query_repository_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - # - # # Call the query_repository_directory_contents method. - # result = client.query_repository_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_repository_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's history of commits. The Repository must not have a - # value for `git_remote_settings.url`. - # - # @overload fetch_repository_history(request, options = nil) - # Pass arguments to `fetch_repository_history` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param page_size [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - # - # # Call the fetch_repository_history method. - # result = client.fetch_repository_history request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - # p item - # end - # - def fetch_repository_history request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_repository_history.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_repository_history.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Computes a Repository's Git access token status. - # - # @overload compute_repository_access_token_status(request, options = nil) - # Pass arguments to `compute_repository_access_token_status` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload compute_repository_access_token_status(name: nil) - # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - # - # # Call the compute_repository_access_token_status method. - # result = client.compute_repository_access_token_status request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - # p result - # - def compute_repository_access_token_status request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, - metadata: metadata, - retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's remote branches. - # - # @overload fetch_remote_branches(request, options = nil) - # Pass arguments to `fetch_remote_branches` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_remote_branches(name: nil) - # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - # - # # Call the fetch_remote_branches method. - # result = client.fetch_remote_branches request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - # p result - # - def fetch_remote_branches request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_remote_branches.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_remote_branches.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Workspaces in a given Repository. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Workspace. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Workspace in a given Repository. - # - # @overload create_workspace(request, options = nil) - # Pass arguments to `create_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) - # Pass arguments to `create_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] - # Required. The workspace to create. - # @param workspace_id [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - # - # # Call the create_workspace method. - # result = client.create_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def create_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Workspace. - # - # @overload delete_workspace(request, options = nil) - # Pass arguments to `delete_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workspace(name: nil) - # Pass arguments to `delete_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - # - # # Call the delete_workspace method. - # result = client.delete_workspace request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Installs dependency NPM packages (inside a Workspace). - # - # @overload install_npm_packages(request, options = nil) - # Pass arguments to `install_npm_packages` via a request object, either of type - # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload install_npm_packages(workspace: nil) - # Pass arguments to `install_npm_packages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - # - # # Call the install_npm_packages method. - # result = client.install_npm_packages request - # - # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - # p result - # - def install_npm_packages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.install_npm_packages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, - metadata: metadata, - retry_policy: @config.rpcs.install_npm_packages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pulls Git commits from the Repository's remote into a Workspace. - # - # @overload pull_git_commits(request, options = nil) - # Pass arguments to `pull_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) - # Pass arguments to `pull_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - # - # # Call the pull_git_commits method. - # result = client.pull_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - # p result - # - def pull_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.pull_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, - metadata: metadata, - retry_policy: @config.rpcs.pull_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pushes Git commits from a Workspace to the Repository's remote. - # - # @overload push_git_commits(request, options = nil) - # Pass arguments to `push_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload push_git_commits(name: nil, remote_branch: nil) - # Pass arguments to `push_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - # - # # Call the push_git_commits method. - # result = client.push_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - # p result - # - def push_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.push_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, - metadata: metadata, - retry_policy: @config.rpcs.push_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git statuses for the files in a Workspace. - # - # @overload fetch_file_git_statuses(request, options = nil) - # Pass arguments to `fetch_file_git_statuses` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_file_git_statuses(name: nil) - # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - # - # # Call the fetch_file_git_statuses method. - # result = client.fetch_file_git_statuses request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - # p result - # - def fetch_file_git_statuses request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git ahead/behind against a remote branch. - # - # @overload fetch_git_ahead_behind(request, options = nil) - # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) - # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - # - # # Call the fetch_git_ahead_behind method. - # result = client.fetch_git_ahead_behind request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - # p result - # - def fetch_git_ahead_behind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit for uncommitted files in a Workspace. - # - # @overload commit_workspace_changes(request, options = nil) - # Pass arguments to `commit_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) - # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The commit's author. - # @param commit_message [::String] - # Optional. The commit's message. - # @param paths [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - # - # # Call the commit_workspace_changes method. - # result = client.commit_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - # p result - # - def commit_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.commit_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.commit_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a Git reset for uncommitted files in a Workspace. - # - # @overload reset_workspace_changes(request, options = nil) - # Pass arguments to `reset_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) - # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param paths [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @param clean [::Boolean] - # Optional. If set to true, untracked files will be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - # - # # Call the reset_workspace_changes method. - # result = client.reset_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - # p result - # - def reset_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.reset_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.reset_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git diff for an uncommitted file in a Workspace. - # - # @overload fetch_file_diff(request, options = nil) - # Pass arguments to `fetch_file_diff` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_file_diff(workspace: nil, path: nil) - # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - # - # # Call the fetch_file_diff method. - # result = client.fetch_file_diff request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - # p result - # - def fetch_file_diff request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_file_diff.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_file_diff.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Workspace directory. - # - # @overload query_directory_contents(request, options = nil) - # Pass arguments to `query_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `query_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - # - # # Call the query_directory_contents method. - # result = client.query_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Finds the contents of a given Workspace directory by filter. - # - # @overload search_files(request, options = nil) - # Pass arguments to `search_files` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `search_files` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param page_size [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param filter [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - # - # # Call the search_files method. - # result = client.search_files request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - # p item - # end - # - def search_files request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_files.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_files.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_files.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :search_files, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_files, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a directory inside a Workspace. - # - # @overload make_directory(request, options = nil) - # Pass arguments to `make_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload make_directory(workspace: nil, path: nil) - # Pass arguments to `make_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - # - # # Call the make_directory method. - # result = client.make_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - # p result - # - def make_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.make_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.make_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.make_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a directory (inside a Workspace) and all of its contents. - # - # @overload remove_directory(request, options = nil) - # Pass arguments to `remove_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_directory(workspace: nil, path: nil) - # Pass arguments to `remove_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - # - # # Call the remove_directory method. - # result = client.remove_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - # p result - # - def remove_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a directory (inside a Workspace), and all of its contents, to a new - # location. - # - # @overload move_directory(request, options = nil) - # Pass arguments to `move_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_directory(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @param new_path [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - # - # # Call the move_directory method. - # result = client.move_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - # p result - # - def move_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Workspace). - # - # @overload read_file(request, options = nil) - # Pass arguments to `read_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload read_file(workspace: nil, path: nil, revision: nil) - # Pass arguments to `read_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param revision [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadFileRequest.new - # - # # Call the read_file method. - # result = client.read_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - # p result - # - def read_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.read_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.read_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.read_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :read_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a file (inside a Workspace). - # - # @overload remove_file(request, options = nil) - # Pass arguments to `remove_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_file(workspace: nil, path: nil) - # Pass arguments to `remove_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - # - # # Call the remove_file method. - # result = client.remove_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - # p result - # - def remove_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a file (inside a Workspace) to a new location. - # - # @overload move_file(request, options = nil) - # Pass arguments to `move_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_file(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param new_path [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFileRequest.new - # - # # Call the move_file method. - # result = client.move_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - # p result - # - def move_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Writes to a file (inside a Workspace). - # - # @overload write_file(request, options = nil) - # Pass arguments to `write_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload write_file(workspace: nil, path: nil, contents: nil) - # Pass arguments to `write_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file. - # @param contents [::String] - # Required. The file's contents. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::WriteFileRequest.new - # - # # Call the write_file method. - # result = client.write_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - # p result - # - def write_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.write_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.write_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.write_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :write_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ReleaseConfigs in a given Repository. - # - # @overload list_release_configs(request, options = nil) - # Pass arguments to `list_release_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_release_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - # - # # Call the list_release_configs method. - # result = client.list_release_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - # p item - # end - # - def list_release_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_release_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_release_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single ReleaseConfig. - # - # @overload get_release_config(request, options = nil) - # Pass arguments to `get_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_release_config(name: nil) - # Pass arguments to `get_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - # - # # Call the get_release_config method. - # result = client.get_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def get_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ReleaseConfig in a given Repository. - # - # @overload create_release_config(request, options = nil) - # Pass arguments to `create_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) - # Pass arguments to `create_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to create. - # @param release_config_id [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - # - # # Call the create_release_config method. - # result = client.create_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def create_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single ReleaseConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_release_config(request, options = nil) - # Pass arguments to `update_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_release_config(update_mask: nil, release_config: nil) - # Pass arguments to `update_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - # - # # Call the update_release_config method. - # result = client.update_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def update_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.release_config&.name - header_params["release_config.name"] = request.release_config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ReleaseConfig. - # - # @overload delete_release_config(request, options = nil) - # Pass arguments to `delete_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_release_config(name: nil) - # Pass arguments to `delete_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - # - # # Call the delete_release_config method. - # result = client.delete_release_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CompilationResults in a given Repository. - # - # @overload list_compilation_results(request, options = nil) - # Pass arguments to `list_compilation_results` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_compilation_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - # - # # Call the list_compilation_results method. - # result = client.list_compilation_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - # p item - # end - # - def list_compilation_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_compilation_results.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_compilation_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single CompilationResult. - # - # @overload get_compilation_result(request, options = nil) - # Pass arguments to `get_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_compilation_result(name: nil) - # Pass arguments to `get_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - # - # # Call the get_compilation_result method. - # result = client.get_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def get_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new CompilationResult in a given project and location. - # - # @overload create_compilation_result(request, options = nil) - # Pass arguments to `create_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_compilation_result(parent: nil, compilation_result: nil) - # Pass arguments to `create_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] - # Required. The compilation result to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - # - # # Call the create_compilation_result method. - # result = client.create_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def create_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns CompilationResultActions in a given CompilationResult. - # - # @overload query_compilation_result_actions(request, options = nil) - # Pass arguments to `query_compilation_result_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param filter [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - # - # # Call the query_compilation_result_actions method. - # result = client.query_compilation_result_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - # p item - # end - # - def query_compilation_result_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowConfigs in a given Repository. - # - # @overload list_workflow_configs(request, options = nil) - # Pass arguments to `list_workflow_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - # - # # Call the list_workflow_configs method. - # result = client.list_workflow_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - # p item - # end - # - def list_workflow_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workflow_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workflow_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowConfig. - # - # @overload get_workflow_config(request, options = nil) - # Pass arguments to `get_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workflow_config(name: nil) - # Pass arguments to `get_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - # - # # Call the get_workflow_config method. - # result = client.get_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def get_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowConfig in a given Repository. - # - # @overload create_workflow_config(request, options = nil) - # Pass arguments to `create_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) - # Pass arguments to `create_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to create. - # @param workflow_config_id [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - # - # # Call the create_workflow_config method. - # result = client.create_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def create_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single WorkflowConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_workflow_config(request, options = nil) - # Pass arguments to `update_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_workflow_config(update_mask: nil, workflow_config: nil) - # Pass arguments to `update_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - # - # # Call the update_workflow_config method. - # result = client.update_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def update_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workflow_config&.name - header_params["workflow_config.name"] = request.workflow_config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowConfig. - # - # @overload delete_workflow_config(request, options = nil) - # Pass arguments to `delete_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workflow_config(name: nil) - # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - # - # # Call the delete_workflow_config method. - # result = client.delete_workflow_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowInvocations in a given Repository. - # - # @overload list_workflow_invocations(request, options = nil) - # Pass arguments to `list_workflow_invocations` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - # - # # Call the list_workflow_invocations method. - # result = client.list_workflow_invocations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - # p item - # end - # - def list_workflow_invocations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workflow_invocations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workflow_invocations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowInvocation. - # - # @overload get_workflow_invocation(request, options = nil) - # Pass arguments to `get_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workflow_invocation(name: nil) - # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - # - # # Call the get_workflow_invocation method. - # result = client.get_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def get_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowInvocation in a given Repository. - # - # @overload create_workflow_invocation(request, options = nil) - # Pass arguments to `create_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) - # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] - # Required. The workflow invocation resource to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - # - # # Call the create_workflow_invocation method. - # result = client.create_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def create_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowInvocation. - # - # @overload delete_workflow_invocation(request, options = nil) - # Pass arguments to `delete_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workflow_invocation(name: nil) - # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - # - # # Call the delete_workflow_invocation method. - # result = client.delete_workflow_invocation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests cancellation of a running WorkflowInvocation. - # - # @overload cancel_workflow_invocation(request, options = nil) - # Pass arguments to `cancel_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_workflow_invocation(name: nil) - # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - # - # # Call the cancel_workflow_invocation method. - # result = client.cancel_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - # p result - # - def cancel_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns WorkflowInvocationActions in a given WorkflowInvocation. - # - # @overload query_workflow_invocation_actions(request, options = nil) - # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation's name. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - # - # # Call the query_workflow_invocation_actions method. - # result = client.query_workflow_invocation_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - # p item - # end - # - def query_workflow_invocation_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get default config for a given project and location. - # - # @overload get_config(request, options = nil) - # Pass arguments to `get_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_config(name: nil) - # Pass arguments to `get_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The config name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetConfigRequest.new - # - # # Call the get_config method. - # result = client.get_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def get_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update default config for a given project and location. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_config(request, options = nil) - # Pass arguments to `update_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_config(config: nil, update_mask: nil) - # Pass arguments to `update_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] - # Required. The config to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the config. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - # - # # Call the update_config method. - # result = client.update_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def update_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.config&.name - header_params["config.name"] = request.config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # 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. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Dataform API. - # - # This class represents the configuration for Dataform, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_team_folder to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Dataform API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_team_folder - ## - # RPC-specific configuration for `create_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_team_folder - ## - # RPC-specific configuration for `update_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_team_folder - ## - # RPC-specific configuration for `delete_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder - ## - # RPC-specific configuration for `delete_team_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder_tree - ## - # RPC-specific configuration for `query_team_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_team_folder_contents - ## - # RPC-specific configuration for `search_team_folders` - # @return [::Gapic::Config::Method] - # - attr_reader :search_team_folders - ## - # RPC-specific configuration for `get_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_folder - ## - # RPC-specific configuration for `create_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_folder - ## - # RPC-specific configuration for `update_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_folder - ## - # RPC-specific configuration for `delete_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder - ## - # RPC-specific configuration for `delete_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder_tree - ## - # RPC-specific configuration for `query_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_folder_contents - ## - # RPC-specific configuration for `query_user_root_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_user_root_contents - ## - # RPC-specific configuration for `move_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :move_folder - ## - # RPC-specific configuration for `list_repositories` - # @return [::Gapic::Config::Method] - # - attr_reader :list_repositories - ## - # RPC-specific configuration for `get_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :get_repository - ## - # RPC-specific configuration for `create_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :create_repository - ## - # RPC-specific configuration for `update_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :update_repository - ## - # RPC-specific configuration for `delete_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_repository - ## - # RPC-specific configuration for `move_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :move_repository - ## - # RPC-specific configuration for `commit_repository_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_repository_changes - ## - # RPC-specific configuration for `read_repository_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_repository_file - ## - # RPC-specific configuration for `query_repository_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_repository_directory_contents - ## - # RPC-specific configuration for `fetch_repository_history` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_repository_history - ## - # RPC-specific configuration for `compute_repository_access_token_status` - # @return [::Gapic::Config::Method] - # - attr_reader :compute_repository_access_token_status - ## - # RPC-specific configuration for `fetch_remote_branches` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_remote_branches - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `create_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workspace - ## - # RPC-specific configuration for `delete_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workspace - ## - # RPC-specific configuration for `install_npm_packages` - # @return [::Gapic::Config::Method] - # - attr_reader :install_npm_packages - ## - # RPC-specific configuration for `pull_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :pull_git_commits - ## - # RPC-specific configuration for `push_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :push_git_commits - ## - # RPC-specific configuration for `fetch_file_git_statuses` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_git_statuses - ## - # RPC-specific configuration for `fetch_git_ahead_behind` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_git_ahead_behind - ## - # RPC-specific configuration for `commit_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_workspace_changes - ## - # RPC-specific configuration for `reset_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :reset_workspace_changes - ## - # RPC-specific configuration for `fetch_file_diff` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_diff - ## - # RPC-specific configuration for `query_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_directory_contents - ## - # RPC-specific configuration for `search_files` - # @return [::Gapic::Config::Method] - # - attr_reader :search_files - ## - # RPC-specific configuration for `make_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :make_directory - ## - # RPC-specific configuration for `remove_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_directory - ## - # RPC-specific configuration for `move_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :move_directory - ## - # RPC-specific configuration for `read_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_file - ## - # RPC-specific configuration for `remove_file` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_file - ## - # RPC-specific configuration for `move_file` - # @return [::Gapic::Config::Method] - # - attr_reader :move_file - ## - # RPC-specific configuration for `write_file` - # @return [::Gapic::Config::Method] - # - attr_reader :write_file - ## - # RPC-specific configuration for `list_release_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_release_configs - ## - # RPC-specific configuration for `get_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release_config - ## - # RPC-specific configuration for `create_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release_config - ## - # RPC-specific configuration for `update_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release_config - ## - # RPC-specific configuration for `delete_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release_config - ## - # RPC-specific configuration for `list_compilation_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_compilation_results - ## - # RPC-specific configuration for `get_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :get_compilation_result - ## - # RPC-specific configuration for `create_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :create_compilation_result - ## - # RPC-specific configuration for `query_compilation_result_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_compilation_result_actions - ## - # RPC-specific configuration for `list_workflow_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_configs - ## - # RPC-specific configuration for `get_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_config - ## - # RPC-specific configuration for `create_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_config - ## - # RPC-specific configuration for `update_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_workflow_config - ## - # RPC-specific configuration for `delete_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_config - ## - # RPC-specific configuration for `list_workflow_invocations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_invocations - ## - # RPC-specific configuration for `get_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_invocation - ## - # RPC-specific configuration for `create_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_invocation - ## - # RPC-specific configuration for `delete_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_invocation - ## - # RPC-specific configuration for `cancel_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_workflow_invocation - ## - # RPC-specific configuration for `query_workflow_invocation_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_workflow_invocation_actions - ## - # RPC-specific configuration for `get_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_config - ## - # RPC-specific configuration for `update_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_config - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - - # @private - def initialize parent_rpcs = nil - get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder - @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config - create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder - @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config - update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder - @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config - delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder - @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config - delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree - @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config - query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents - @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config - search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders - @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config - get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder - @get_folder = ::Gapic::Config::Method.new get_folder_config - create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder - @create_folder = ::Gapic::Config::Method.new create_folder_config - update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder - @update_folder = ::Gapic::Config::Method.new update_folder_config - delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder - @delete_folder = ::Gapic::Config::Method.new delete_folder_config - delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree - @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config - query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents - @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config - query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents - @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config - move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder - @move_folder = ::Gapic::Config::Method.new move_folder_config - list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories - @list_repositories = ::Gapic::Config::Method.new list_repositories_config - get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository - @get_repository = ::Gapic::Config::Method.new get_repository_config - create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository - @create_repository = ::Gapic::Config::Method.new create_repository_config - update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository - @update_repository = ::Gapic::Config::Method.new update_repository_config - delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository - @delete_repository = ::Gapic::Config::Method.new delete_repository_config - move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository - @move_repository = ::Gapic::Config::Method.new move_repository_config - commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes - @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config - read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file - @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config - query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents - @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config - fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history - @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config - compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status - @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config - fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches - @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace - @create_workspace = ::Gapic::Config::Method.new create_workspace_config - delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace - @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config - install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages - @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config - pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits - @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config - push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits - @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config - fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses - @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config - fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind - @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config - commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes - @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config - reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes - @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config - fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff - @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config - query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents - @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config - search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files - @search_files = ::Gapic::Config::Method.new search_files_config - make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory - @make_directory = ::Gapic::Config::Method.new make_directory_config - remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory - @remove_directory = ::Gapic::Config::Method.new remove_directory_config - move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory - @move_directory = ::Gapic::Config::Method.new move_directory_config - read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file - @read_file = ::Gapic::Config::Method.new read_file_config - remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file - @remove_file = ::Gapic::Config::Method.new remove_file_config - move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file - @move_file = ::Gapic::Config::Method.new move_file_config - write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file - @write_file = ::Gapic::Config::Method.new write_file_config - list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs - @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config - get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config - @get_release_config = ::Gapic::Config::Method.new get_release_config_config - create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config - @create_release_config = ::Gapic::Config::Method.new create_release_config_config - update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config - @update_release_config = ::Gapic::Config::Method.new update_release_config_config - delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config - @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config - list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results - @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config - get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result - @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config - create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result - @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config - query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions - @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config - list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs - @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config - get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config - @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config - create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config - @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config - update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config - @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config - delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config - @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config - list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations - @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config - get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation - @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config - create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation - @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config - delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation - @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config - cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation - @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config - query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions - @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config - get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config - @get_config = ::Gapic::Config::Method.new get_config_config - update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config - @update_config = ::Gapic::Config::Method.new update_config_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb deleted file mode 100644 index a1cc0ba6afef..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Credentials for the Dataform API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigquery", - "https://www.googleapis.com/auth/cloud-platform" - ] - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb deleted file mode 100644 index 591bf0ee5afa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb +++ /dev/null @@ -1,311 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Path helper methods for the Dataform API. - module Paths - ## - # Create a fully-qualified CompilationResult resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param compilation_result [String] - # - # @return [::String] - def compilation_result_path project:, location:, repository:, compilation_result: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}" - end - - ## - # Create a fully-qualified Config resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/config` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def config_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}/config" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified CryptoKeyVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # @param crypto_key_version [String] - # - # @return [::String] - def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" - end - - ## - # Create a fully-qualified Folder resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/folders/{folder}` - # - # @param project [String] - # @param location [String] - # @param folder [String] - # - # @return [::String] - def folder_path project:, location:, folder: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/folders/#{folder}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified NotebookRuntimeTemplate resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` - # - # @param project [String] - # @param location [String] - # @param notebook_runtime_template [String] - # - # @return [::String] - def notebook_runtime_template_path project:, location:, notebook_runtime_template: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}" - end - - ## - # Create a fully-qualified ReleaseConfig resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param release_config [String] - # - # @return [::String] - def release_config_path project:, location:, repository:, release_config: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}" - end - - ## - # Create a fully-qualified Repository resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # - # @return [::String] - def repository_path project:, location:, repository: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}" - end - - ## - # Create a fully-qualified SecretVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/secrets/{secret}/versions/{version}` - # - # @param project [String] - # @param secret [String] - # @param version [String] - # - # @return [::String] - def secret_version_path project:, secret:, version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" - - "projects/#{project}/secrets/#{secret}/versions/#{version}" - end - - ## - # Create a fully-qualified TeamFolder resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/teamFolders/{team_folder}` - # - # @param project [String] - # @param location [String] - # @param team_folder [String] - # - # @return [::String] - def team_folder_path project:, location:, team_folder: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/teamFolders/#{team_folder}" - end - - ## - # Create a fully-qualified WorkflowConfig resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workflow_config [String] - # - # @return [::String] - def workflow_config_path project:, location:, repository:, workflow_config: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}" - end - - ## - # Create a fully-qualified WorkflowInvocation resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workflow_invocation [String] - # - # @return [::String] - def workflow_invocation_path project:, location:, repository:, workflow_invocation: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}" - end - - ## - # Create a fully-qualified Workspace resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workspace [String] - # - # @return [::String] - def workspace_path project:, location:, repository:, workspace: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}" - end - - extend self - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb deleted file mode 100644 index 01b9b9f1cbed..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" -require "google/cloud/dataform/v1/bindings_override" - -require "google/cloud/dataform/v1/dataform/credentials" -require "google/cloud/dataform/v1/dataform/paths" -require "google/cloud/dataform/v1/dataform/rest/operations" -require "google/cloud/dataform/v1/dataform/rest/client" - -module Google - module Cloud - module Dataform - module V1 - ## - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataform/v1/dataform/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module Dataform - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataform/v1/dataform/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb deleted file mode 100644 index b3bb6824d285..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb +++ /dev/null @@ -1,7248 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform/rest/service_stub" -require "google/cloud/location/rest" -require "google/iam/v1/rest" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - ## - # REST client for the Dataform service. - # - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :dataform_stub - - ## - # Configure the Dataform Client class. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Dataform clients - # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @dataform_stub.universe_domain - end - - ## - # Create a new Dataform REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Dataform client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @dataform_stub = ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @dataform_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Dataform::V1::Dataform::Rest::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Rest::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @dataform_stub.logger - end - - # Service calls - - ## - # Fetches a single TeamFolder. - # - # @overload get_team_folder(request, options = nil) - # Pass arguments to `get_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_team_folder(name: nil) - # Pass arguments to `get_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - # - # # Call the get_team_folder method. - # result = client.get_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def get_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new TeamFolder in a given project and location. - # - # @overload create_team_folder(request, options = nil) - # Pass arguments to `create_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_team_folder(parent: nil, team_folder: nil) - # Pass arguments to `create_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The TeamFolder to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - # - # # Call the create_team_folder method. - # result = client.create_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def create_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single TeamFolder. - # - # @overload update_team_folder(request, options = nil) - # Pass arguments to `update_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_team_folder(update_mask: nil, team_folder: nil) - # Pass arguments to `update_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The updated TeamFolder. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - # - # # Call the update_team_folder method. - # result = client.update_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def update_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single TeamFolder. - # - # @overload delete_team_folder(request, options = nil) - # Pass arguments to `delete_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_team_folder(name: nil) - # Pass arguments to `delete_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - # - # # Call the delete_team_folder method. - # result = client.delete_team_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_team_folder_tree(request, options = nil) - # Pass arguments to `delete_team_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_team_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - # - # # Call the delete_team_folder_tree method. - # result = client.delete_team_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_team_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_team_folder_tree request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given TeamFolder. - # - # @overload query_team_folder_contents(request, options = nil) - # Pass arguments to `query_team_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param team_folder [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - # - # # Call the query_team_folder_contents method. - # result = client.query_team_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - # p item - # end - # - def query_team_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_team_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_team_folder_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all TeamFolders in a given location that the caller has access to - # and match the provided filter. - # - # @overload search_team_folders(request, options = nil) - # Pass arguments to `search_team_folders` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `search_team_folders` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - # - # # Call the search_team_folders method. - # result = client.search_team_folders request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - # p item - # end - # - def search_team_folders request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.search_team_folders.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.search_team_folders.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.search_team_folders request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Folder. - # - # @overload get_folder(request, options = nil) - # Pass arguments to `get_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_folder(name: nil) - # Pass arguments to `get_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetFolderRequest.new - # - # # Call the get_folder method. - # result = client.get_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def get_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Folder in a given project and location. - # - # @overload create_folder(request, options = nil) - # Pass arguments to `create_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_folder(parent: nil, folder: nil) - # Pass arguments to `create_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The Folder to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - # - # # Call the create_folder method. - # result = client.create_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def create_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Folder. - # - # @overload update_folder(request, options = nil) - # Pass arguments to `update_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_folder(update_mask: nil, folder: nil) - # Pass arguments to `update_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The updated Folder. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - # - # # Call the update_folder method. - # result = client.update_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def update_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Folder. - # - # @overload delete_folder(request, options = nil) - # Pass arguments to `delete_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_folder(name: nil) - # Pass arguments to `delete_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - # - # # Call the delete_folder method. - # result = client.delete_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Folder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_folder_tree(request, options = nil) - # Pass arguments to `delete_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - # - # # Call the delete_folder_tree method. - # result = client.delete_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_folder_tree request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Folder. - # - # @overload query_folder_contents(request, options = nil) - # Pass arguments to `query_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param folder [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - # - # # Call the query_folder_contents method. - # result = client.query_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - # p item - # end - # - def query_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_folder_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a caller's root folder in a given location. - # The root folder contains all resources that are created by the user and not - # contained in any other folder. - # - # @overload query_user_root_contents(request, options = nil) - # Pass arguments to `query_user_root_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - # - # # Call the query_user_root_contents method. - # result = client.query_user_root_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - # p item - # end - # - def query_user_root_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_user_root_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_user_root_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Folder to a new Folder, TeamFolder, or the root location. - # - # @overload move_folder(request, options = nil) - # Pass arguments to `move_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_folder(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the Folder to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - # - # # Call the move_folder method. - # result = client.move_folder request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_folder request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Repositories in a given project and location. - # - # **Note:** *This method can return repositories not shown in the [Dataform - # UI](https://console.cloud.google.com/bigquery/dataform)*. - # - # @overload list_repositories(request, options = nil) - # Pass arguments to `list_repositories` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_repositories` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - # - # # Call the list_repositories method. - # result = client.list_repositories request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - # p item - # end - # - def list_repositories request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_repositories.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_repositories.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_repositories request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_repositories, "repositories", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Repository. - # - # @overload get_repository(request, options = nil) - # Pass arguments to `get_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_repository(name: nil) - # Pass arguments to `get_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - # - # # Call the get_repository method. - # result = client.get_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def get_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Repository in a given project and location. - # - # @overload create_repository(request, options = nil) - # Pass arguments to `create_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_repository(parent: nil, repository: nil, repository_id: nil) - # Pass arguments to `create_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to create. - # @param repository_id [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - # - # # Call the create_repository method. - # result = client.create_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def create_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Repository. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_repository(request, options = nil) - # Pass arguments to `update_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_repository(update_mask: nil, repository: nil) - # Pass arguments to `update_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - # - # # Call the update_repository method. - # result = client.update_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def update_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Repository. - # - # @overload delete_repository(request, options = nil) - # Pass arguments to `delete_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_repository(name: nil, force: nil) - # Pass arguments to `delete_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param force [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - # - # # Call the delete_repository method. - # result = client.delete_repository request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Repository to a new location. - # - # @overload move_repository(request, options = nil) - # Pass arguments to `move_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_repository(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the repository to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - # - # # Call the move_repository method. - # result = client.move_repository request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_repository request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit to a Repository. The Repository must not have a value - # for `git_remote_settings.url`. - # - # @overload commit_repository_changes(request, options = nil) - # Pass arguments to `commit_repository_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) - # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] - # Required. The changes to commit to the repository. - # @param required_head_commit_sha [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - # - # # Call the commit_repository_changes method. - # result = client.commit_repository_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - # p result - # - def commit_repository_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.commit_repository_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.commit_repository_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Repository). The Repository - # must not have a value for `git_remote_settings.url`. - # - # @overload read_repository_file(request, options = nil) - # Pass arguments to `read_repository_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) - # Pass arguments to `read_repository_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @param path [::String] - # Required. Full file path to read including filename, from repository root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - # - # # Call the read_repository_file method. - # result = client.read_repository_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - # p result - # - def read_repository_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.read_repository_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.read_repository_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.read_repository_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Repository directory. The Repository must - # not have a value for `git_remote_settings.url`. - # - # @overload query_repository_directory_contents(request, options = nil) - # Pass arguments to `query_repository_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - # - # # Call the query_repository_directory_contents method. - # result = client.query_repository_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_repository_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_repository_directory_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's history of commits. The Repository must not have a - # value for `git_remote_settings.url`. - # - # @overload fetch_repository_history(request, options = nil) - # Pass arguments to `fetch_repository_history` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param page_size [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - # - # # Call the fetch_repository_history method. - # result = client.fetch_repository_history request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - # p item - # end - # - def fetch_repository_history request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_repository_history.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_repository_history request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Computes a Repository's Git access token status. - # - # @overload compute_repository_access_token_status(request, options = nil) - # Pass arguments to `compute_repository_access_token_status` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload compute_repository_access_token_status(name: nil) - # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - # - # # Call the compute_repository_access_token_status method. - # result = client.compute_repository_access_token_status request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - # p result - # - def compute_repository_access_token_status request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.compute_repository_access_token_status request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's remote branches. - # - # @overload fetch_remote_branches(request, options = nil) - # Pass arguments to `fetch_remote_branches` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_remote_branches(name: nil) - # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - # - # # Call the fetch_remote_branches method. - # result = client.fetch_remote_branches request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - # p result - # - def fetch_remote_branches request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_remote_branches.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_remote_branches request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Workspaces in a given Repository. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workspaces request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workspaces, "workspaces", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Workspace. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Workspace in a given Repository. - # - # @overload create_workspace(request, options = nil) - # Pass arguments to `create_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) - # Pass arguments to `create_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] - # Required. The workspace to create. - # @param workspace_id [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - # - # # Call the create_workspace method. - # result = client.create_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def create_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Workspace. - # - # @overload delete_workspace(request, options = nil) - # Pass arguments to `delete_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workspace(name: nil) - # Pass arguments to `delete_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - # - # # Call the delete_workspace method. - # result = client.delete_workspace request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Installs dependency NPM packages (inside a Workspace). - # - # @overload install_npm_packages(request, options = nil) - # Pass arguments to `install_npm_packages` via a request object, either of type - # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload install_npm_packages(workspace: nil) - # Pass arguments to `install_npm_packages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - # - # # Call the install_npm_packages method. - # result = client.install_npm_packages request - # - # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - # p result - # - def install_npm_packages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.install_npm_packages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.install_npm_packages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.install_npm_packages request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pulls Git commits from the Repository's remote into a Workspace. - # - # @overload pull_git_commits(request, options = nil) - # Pass arguments to `pull_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) - # Pass arguments to `pull_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - # - # # Call the pull_git_commits method. - # result = client.pull_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - # p result - # - def pull_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.pull_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.pull_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.pull_git_commits request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pushes Git commits from a Workspace to the Repository's remote. - # - # @overload push_git_commits(request, options = nil) - # Pass arguments to `push_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload push_git_commits(name: nil, remote_branch: nil) - # Pass arguments to `push_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - # - # # Call the push_git_commits method. - # result = client.push_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - # p result - # - def push_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.push_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.push_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.push_git_commits request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git statuses for the files in a Workspace. - # - # @overload fetch_file_git_statuses(request, options = nil) - # Pass arguments to `fetch_file_git_statuses` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_file_git_statuses(name: nil) - # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - # - # # Call the fetch_file_git_statuses method. - # result = client.fetch_file_git_statuses request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - # p result - # - def fetch_file_git_statuses request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_file_git_statuses request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git ahead/behind against a remote branch. - # - # @overload fetch_git_ahead_behind(request, options = nil) - # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) - # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - # - # # Call the fetch_git_ahead_behind method. - # result = client.fetch_git_ahead_behind request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - # p result - # - def fetch_git_ahead_behind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_git_ahead_behind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit for uncommitted files in a Workspace. - # - # @overload commit_workspace_changes(request, options = nil) - # Pass arguments to `commit_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) - # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The commit's author. - # @param commit_message [::String] - # Optional. The commit's message. - # @param paths [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - # - # # Call the commit_workspace_changes method. - # result = client.commit_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - # p result - # - def commit_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.commit_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.commit_workspace_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a Git reset for uncommitted files in a Workspace. - # - # @overload reset_workspace_changes(request, options = nil) - # Pass arguments to `reset_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) - # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param paths [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @param clean [::Boolean] - # Optional. If set to true, untracked files will be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - # - # # Call the reset_workspace_changes method. - # result = client.reset_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - # p result - # - def reset_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.reset_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.reset_workspace_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git diff for an uncommitted file in a Workspace. - # - # @overload fetch_file_diff(request, options = nil) - # Pass arguments to `fetch_file_diff` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_file_diff(workspace: nil, path: nil) - # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - # - # # Call the fetch_file_diff method. - # result = client.fetch_file_diff request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - # p result - # - def fetch_file_diff request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_file_diff.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_file_diff request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Workspace directory. - # - # @overload query_directory_contents(request, options = nil) - # Pass arguments to `query_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `query_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - # - # # Call the query_directory_contents method. - # result = client.query_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_directory_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Finds the contents of a given Workspace directory by filter. - # - # @overload search_files(request, options = nil) - # Pass arguments to `search_files` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `search_files` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param page_size [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param filter [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - # - # # Call the search_files method. - # result = client.search_files request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - # p item - # end - # - def search_files request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.search_files.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_files.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.search_files.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.search_files request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_files, "search_results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a directory inside a Workspace. - # - # @overload make_directory(request, options = nil) - # Pass arguments to `make_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload make_directory(workspace: nil, path: nil) - # Pass arguments to `make_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - # - # # Call the make_directory method. - # result = client.make_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - # p result - # - def make_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.make_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.make_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.make_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.make_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a directory (inside a Workspace) and all of its contents. - # - # @overload remove_directory(request, options = nil) - # Pass arguments to `remove_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload remove_directory(workspace: nil, path: nil) - # Pass arguments to `remove_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - # - # # Call the remove_directory method. - # result = client.remove_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - # p result - # - def remove_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.remove_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.remove_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.remove_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a directory (inside a Workspace), and all of its contents, to a new - # location. - # - # @overload move_directory(request, options = nil) - # Pass arguments to `move_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_directory(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @param new_path [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - # - # # Call the move_directory method. - # result = client.move_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - # p result - # - def move_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Workspace). - # - # @overload read_file(request, options = nil) - # Pass arguments to `read_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload read_file(workspace: nil, path: nil, revision: nil) - # Pass arguments to `read_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param revision [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadFileRequest.new - # - # # Call the read_file method. - # result = client.read_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - # p result - # - def read_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.read_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.read_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.read_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.read_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a file (inside a Workspace). - # - # @overload remove_file(request, options = nil) - # Pass arguments to `remove_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload remove_file(workspace: nil, path: nil) - # Pass arguments to `remove_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - # - # # Call the remove_file method. - # result = client.remove_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - # p result - # - def remove_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.remove_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.remove_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.remove_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.remove_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a file (inside a Workspace) to a new location. - # - # @overload move_file(request, options = nil) - # Pass arguments to `move_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_file(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param new_path [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFileRequest.new - # - # # Call the move_file method. - # result = client.move_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - # p result - # - def move_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Writes to a file (inside a Workspace). - # - # @overload write_file(request, options = nil) - # Pass arguments to `write_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload write_file(workspace: nil, path: nil, contents: nil) - # Pass arguments to `write_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file. - # @param contents [::String] - # Required. The file's contents. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::WriteFileRequest.new - # - # # Call the write_file method. - # result = client.write_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - # p result - # - def write_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.write_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.write_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.write_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.write_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ReleaseConfigs in a given Repository. - # - # @overload list_release_configs(request, options = nil) - # Pass arguments to `list_release_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_release_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - # - # # Call the list_release_configs method. - # result = client.list_release_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - # p item - # end - # - def list_release_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_release_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_release_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_release_configs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_release_configs, "release_configs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single ReleaseConfig. - # - # @overload get_release_config(request, options = nil) - # Pass arguments to `get_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_release_config(name: nil) - # Pass arguments to `get_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - # - # # Call the get_release_config method. - # result = client.get_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def get_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ReleaseConfig in a given Repository. - # - # @overload create_release_config(request, options = nil) - # Pass arguments to `create_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) - # Pass arguments to `create_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to create. - # @param release_config_id [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - # - # # Call the create_release_config method. - # result = client.create_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def create_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single ReleaseConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_release_config(request, options = nil) - # Pass arguments to `update_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_release_config(update_mask: nil, release_config: nil) - # Pass arguments to `update_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - # - # # Call the update_release_config method. - # result = client.update_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def update_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ReleaseConfig. - # - # @overload delete_release_config(request, options = nil) - # Pass arguments to `delete_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_release_config(name: nil) - # Pass arguments to `delete_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - # - # # Call the delete_release_config method. - # result = client.delete_release_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CompilationResults in a given Repository. - # - # @overload list_compilation_results(request, options = nil) - # Pass arguments to `list_compilation_results` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_compilation_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - # - # # Call the list_compilation_results method. - # result = client.list_compilation_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - # p item - # end - # - def list_compilation_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_compilation_results.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_compilation_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_compilation_results request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_compilation_results, "compilation_results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single CompilationResult. - # - # @overload get_compilation_result(request, options = nil) - # Pass arguments to `get_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_compilation_result(name: nil) - # Pass arguments to `get_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - # - # # Call the get_compilation_result method. - # result = client.get_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def get_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_compilation_result request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new CompilationResult in a given project and location. - # - # @overload create_compilation_result(request, options = nil) - # Pass arguments to `create_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_compilation_result(parent: nil, compilation_result: nil) - # Pass arguments to `create_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] - # Required. The compilation result to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - # - # # Call the create_compilation_result method. - # result = client.create_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def create_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_compilation_result request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns CompilationResultActions in a given CompilationResult. - # - # @overload query_compilation_result_actions(request, options = nil) - # Pass arguments to `query_compilation_result_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param filter [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - # - # # Call the query_compilation_result_actions method. - # result = client.query_compilation_result_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - # p item - # end - # - def query_compilation_result_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_compilation_result_actions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowConfigs in a given Repository. - # - # @overload list_workflow_configs(request, options = nil) - # Pass arguments to `list_workflow_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - # - # # Call the list_workflow_configs method. - # result = client.list_workflow_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - # p item - # end - # - def list_workflow_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workflow_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workflow_configs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_configs, "workflow_configs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowConfig. - # - # @overload get_workflow_config(request, options = nil) - # Pass arguments to `get_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workflow_config(name: nil) - # Pass arguments to `get_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - # - # # Call the get_workflow_config method. - # result = client.get_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def get_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowConfig in a given Repository. - # - # @overload create_workflow_config(request, options = nil) - # Pass arguments to `create_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) - # Pass arguments to `create_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to create. - # @param workflow_config_id [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - # - # # Call the create_workflow_config method. - # result = client.create_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def create_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single WorkflowConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_workflow_config(request, options = nil) - # Pass arguments to `update_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_workflow_config(update_mask: nil, workflow_config: nil) - # Pass arguments to `update_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - # - # # Call the update_workflow_config method. - # result = client.update_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def update_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowConfig. - # - # @overload delete_workflow_config(request, options = nil) - # Pass arguments to `delete_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workflow_config(name: nil) - # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - # - # # Call the delete_workflow_config method. - # result = client.delete_workflow_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowInvocations in a given Repository. - # - # @overload list_workflow_invocations(request, options = nil) - # Pass arguments to `list_workflow_invocations` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - # - # # Call the list_workflow_invocations method. - # result = client.list_workflow_invocations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - # p item - # end - # - def list_workflow_invocations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workflow_invocations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workflow_invocations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, "workflow_invocations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowInvocation. - # - # @overload get_workflow_invocation(request, options = nil) - # Pass arguments to `get_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workflow_invocation(name: nil) - # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - # - # # Call the get_workflow_invocation method. - # result = client.get_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def get_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowInvocation in a given Repository. - # - # @overload create_workflow_invocation(request, options = nil) - # Pass arguments to `create_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) - # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] - # Required. The workflow invocation resource to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - # - # # Call the create_workflow_invocation method. - # result = client.create_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def create_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowInvocation. - # - # @overload delete_workflow_invocation(request, options = nil) - # Pass arguments to `delete_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workflow_invocation(name: nil) - # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - # - # # Call the delete_workflow_invocation method. - # result = client.delete_workflow_invocation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests cancellation of a running WorkflowInvocation. - # - # @overload cancel_workflow_invocation(request, options = nil) - # Pass arguments to `cancel_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_workflow_invocation(name: nil) - # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - # - # # Call the cancel_workflow_invocation method. - # result = client.cancel_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - # p result - # - def cancel_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.cancel_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns WorkflowInvocationActions in a given WorkflowInvocation. - # - # @overload query_workflow_invocation_actions(request, options = nil) - # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation's name. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - # - # # Call the query_workflow_invocation_actions method. - # result = client.query_workflow_invocation_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - # p item - # end - # - def query_workflow_invocation_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_workflow_invocation_actions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get default config for a given project and location. - # - # @overload get_config(request, options = nil) - # Pass arguments to `get_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_config(name: nil) - # Pass arguments to `get_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The config name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetConfigRequest.new - # - # # Call the get_config method. - # result = client.get_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def get_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update default config for a given project and location. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_config(request, options = nil) - # Pass arguments to `update_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_config(config: nil, update_mask: nil) - # Pass arguments to `update_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] - # Required. The config to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the config. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - # - # # Call the update_config method. - # result = client.update_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def update_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_iam_policy request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.set_iam_policy request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # 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. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.test_iam_permissions request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Dataform REST API. - # - # This class represents the configuration for Dataform REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_team_folder to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - - # @private - # Overrides for http bindings for the RPCs of this service - # are only used when this service is used as mixin, and only - # by the host service. - # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] - config_attr :bindings_override, {}, ::Hash, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Dataform API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_team_folder - ## - # RPC-specific configuration for `create_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_team_folder - ## - # RPC-specific configuration for `update_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_team_folder - ## - # RPC-specific configuration for `delete_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder - ## - # RPC-specific configuration for `delete_team_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder_tree - ## - # RPC-specific configuration for `query_team_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_team_folder_contents - ## - # RPC-specific configuration for `search_team_folders` - # @return [::Gapic::Config::Method] - # - attr_reader :search_team_folders - ## - # RPC-specific configuration for `get_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_folder - ## - # RPC-specific configuration for `create_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_folder - ## - # RPC-specific configuration for `update_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_folder - ## - # RPC-specific configuration for `delete_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder - ## - # RPC-specific configuration for `delete_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder_tree - ## - # RPC-specific configuration for `query_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_folder_contents - ## - # RPC-specific configuration for `query_user_root_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_user_root_contents - ## - # RPC-specific configuration for `move_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :move_folder - ## - # RPC-specific configuration for `list_repositories` - # @return [::Gapic::Config::Method] - # - attr_reader :list_repositories - ## - # RPC-specific configuration for `get_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :get_repository - ## - # RPC-specific configuration for `create_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :create_repository - ## - # RPC-specific configuration for `update_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :update_repository - ## - # RPC-specific configuration for `delete_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_repository - ## - # RPC-specific configuration for `move_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :move_repository - ## - # RPC-specific configuration for `commit_repository_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_repository_changes - ## - # RPC-specific configuration for `read_repository_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_repository_file - ## - # RPC-specific configuration for `query_repository_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_repository_directory_contents - ## - # RPC-specific configuration for `fetch_repository_history` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_repository_history - ## - # RPC-specific configuration for `compute_repository_access_token_status` - # @return [::Gapic::Config::Method] - # - attr_reader :compute_repository_access_token_status - ## - # RPC-specific configuration for `fetch_remote_branches` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_remote_branches - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `create_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workspace - ## - # RPC-specific configuration for `delete_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workspace - ## - # RPC-specific configuration for `install_npm_packages` - # @return [::Gapic::Config::Method] - # - attr_reader :install_npm_packages - ## - # RPC-specific configuration for `pull_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :pull_git_commits - ## - # RPC-specific configuration for `push_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :push_git_commits - ## - # RPC-specific configuration for `fetch_file_git_statuses` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_git_statuses - ## - # RPC-specific configuration for `fetch_git_ahead_behind` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_git_ahead_behind - ## - # RPC-specific configuration for `commit_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_workspace_changes - ## - # RPC-specific configuration for `reset_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :reset_workspace_changes - ## - # RPC-specific configuration for `fetch_file_diff` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_diff - ## - # RPC-specific configuration for `query_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_directory_contents - ## - # RPC-specific configuration for `search_files` - # @return [::Gapic::Config::Method] - # - attr_reader :search_files - ## - # RPC-specific configuration for `make_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :make_directory - ## - # RPC-specific configuration for `remove_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_directory - ## - # RPC-specific configuration for `move_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :move_directory - ## - # RPC-specific configuration for `read_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_file - ## - # RPC-specific configuration for `remove_file` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_file - ## - # RPC-specific configuration for `move_file` - # @return [::Gapic::Config::Method] - # - attr_reader :move_file - ## - # RPC-specific configuration for `write_file` - # @return [::Gapic::Config::Method] - # - attr_reader :write_file - ## - # RPC-specific configuration for `list_release_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_release_configs - ## - # RPC-specific configuration for `get_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release_config - ## - # RPC-specific configuration for `create_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release_config - ## - # RPC-specific configuration for `update_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release_config - ## - # RPC-specific configuration for `delete_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release_config - ## - # RPC-specific configuration for `list_compilation_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_compilation_results - ## - # RPC-specific configuration for `get_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :get_compilation_result - ## - # RPC-specific configuration for `create_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :create_compilation_result - ## - # RPC-specific configuration for `query_compilation_result_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_compilation_result_actions - ## - # RPC-specific configuration for `list_workflow_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_configs - ## - # RPC-specific configuration for `get_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_config - ## - # RPC-specific configuration for `create_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_config - ## - # RPC-specific configuration for `update_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_workflow_config - ## - # RPC-specific configuration for `delete_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_config - ## - # RPC-specific configuration for `list_workflow_invocations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_invocations - ## - # RPC-specific configuration for `get_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_invocation - ## - # RPC-specific configuration for `create_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_invocation - ## - # RPC-specific configuration for `delete_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_invocation - ## - # RPC-specific configuration for `cancel_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_workflow_invocation - ## - # RPC-specific configuration for `query_workflow_invocation_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_workflow_invocation_actions - ## - # RPC-specific configuration for `get_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_config - ## - # RPC-specific configuration for `update_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_config - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - - # @private - def initialize parent_rpcs = nil - get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder - @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config - create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder - @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config - update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder - @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config - delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder - @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config - delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree - @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config - query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents - @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config - search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders - @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config - get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder - @get_folder = ::Gapic::Config::Method.new get_folder_config - create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder - @create_folder = ::Gapic::Config::Method.new create_folder_config - update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder - @update_folder = ::Gapic::Config::Method.new update_folder_config - delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder - @delete_folder = ::Gapic::Config::Method.new delete_folder_config - delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree - @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config - query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents - @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config - query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents - @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config - move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder - @move_folder = ::Gapic::Config::Method.new move_folder_config - list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories - @list_repositories = ::Gapic::Config::Method.new list_repositories_config - get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository - @get_repository = ::Gapic::Config::Method.new get_repository_config - create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository - @create_repository = ::Gapic::Config::Method.new create_repository_config - update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository - @update_repository = ::Gapic::Config::Method.new update_repository_config - delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository - @delete_repository = ::Gapic::Config::Method.new delete_repository_config - move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository - @move_repository = ::Gapic::Config::Method.new move_repository_config - commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes - @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config - read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file - @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config - query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents - @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config - fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history - @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config - compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status - @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config - fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches - @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace - @create_workspace = ::Gapic::Config::Method.new create_workspace_config - delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace - @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config - install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages - @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config - pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits - @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config - push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits - @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config - fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses - @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config - fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind - @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config - commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes - @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config - reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes - @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config - fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff - @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config - query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents - @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config - search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files - @search_files = ::Gapic::Config::Method.new search_files_config - make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory - @make_directory = ::Gapic::Config::Method.new make_directory_config - remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory - @remove_directory = ::Gapic::Config::Method.new remove_directory_config - move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory - @move_directory = ::Gapic::Config::Method.new move_directory_config - read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file - @read_file = ::Gapic::Config::Method.new read_file_config - remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file - @remove_file = ::Gapic::Config::Method.new remove_file_config - move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file - @move_file = ::Gapic::Config::Method.new move_file_config - write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file - @write_file = ::Gapic::Config::Method.new write_file_config - list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs - @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config - get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config - @get_release_config = ::Gapic::Config::Method.new get_release_config_config - create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config - @create_release_config = ::Gapic::Config::Method.new create_release_config_config - update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config - @update_release_config = ::Gapic::Config::Method.new update_release_config_config - delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config - @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config - list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results - @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config - get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result - @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config - create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result - @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config - query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions - @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config - list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs - @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config - get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config - @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config - create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config - @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config - update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config - @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config - delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config - @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config - list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations - @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config - get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation - @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config - create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation - @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config - delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation - @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config - cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation - @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config - query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions - @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config - get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config - @get_config = ::Gapic::Config::Method.new get_config_config - update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config - @update_config = ::Gapic::Config::Method.new update_config_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb deleted file mode 100644 index 1f799e9394cc..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb +++ /dev/null @@ -1,4636 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataform/v1/dataform_pb" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - ## - # REST service stub for the Dataform service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def get_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def create_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def update_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_team_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_team_folder_tree request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_team_folder_tree", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_team_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] - # A result object deserialized from the server's reply - def query_team_folder_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_team_folder_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_team_folder_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the search_team_folders REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] - # A result object deserialized from the server's reply - def search_team_folders request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_search_team_folders_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "search_team_folders", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def get_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def create_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def update_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_folder_tree request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_folder_tree", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] - # A result object deserialized from the server's reply - def query_folder_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_folder_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_folder_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_user_root_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] - # A result object deserialized from the server's reply - def query_user_root_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_user_root_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_user_root_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def move_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_repositories REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] - # A result object deserialized from the server's reply - def list_repositories request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_repositories", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def get_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def create_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def update_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def move_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the commit_repository_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # A result object deserialized from the server's reply - def commit_repository_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "commit_repository_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the read_repository_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # A result object deserialized from the server's reply - def read_repository_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "read_repository_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_repository_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] - # A result object deserialized from the server's reply - def query_repository_directory_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_repository_directory_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_repository_history REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] - # A result object deserialized from the server's reply - def fetch_repository_history request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_repository_history", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the compute_repository_access_token_status REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # A result object deserialized from the server's reply - def compute_repository_access_token_status request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "compute_repository_access_token_status", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_remote_branches REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # A result object deserialized from the server's reply - def fetch_remote_branches request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_remote_branches", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workspaces REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] - # A result object deserialized from the server's reply - def list_workspaces request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workspaces", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # A result object deserialized from the server's reply - def get_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # A result object deserialized from the server's reply - def create_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the install_npm_packages REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # A result object deserialized from the server's reply - def install_npm_packages request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "install_npm_packages", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the pull_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # A result object deserialized from the server's reply - def pull_git_commits request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "pull_git_commits", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the push_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # A result object deserialized from the server's reply - def push_git_commits request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "push_git_commits", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_file_git_statuses REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # A result object deserialized from the server's reply - def fetch_file_git_statuses request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_file_git_statuses", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_git_ahead_behind REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # A result object deserialized from the server's reply - def fetch_git_ahead_behind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_git_ahead_behind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the commit_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # A result object deserialized from the server's reply - def commit_workspace_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "commit_workspace_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the reset_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # A result object deserialized from the server's reply - def reset_workspace_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "reset_workspace_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_file_diff REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # A result object deserialized from the server's reply - def fetch_file_diff request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_file_diff", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] - # A result object deserialized from the server's reply - def query_directory_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_directory_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the search_files REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] - # A result object deserialized from the server's reply - def search_files request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "search_files", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the make_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # A result object deserialized from the server's reply - def make_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "make_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the remove_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # A result object deserialized from the server's reply - def remove_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "remove_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # A result object deserialized from the server's reply - def move_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the read_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # A result object deserialized from the server's reply - def read_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "read_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the remove_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # A result object deserialized from the server's reply - def remove_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "remove_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # A result object deserialized from the server's reply - def move_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the write_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # A result object deserialized from the server's reply - def write_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "write_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_release_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] - # A result object deserialized from the server's reply - def list_release_configs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_release_configs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def get_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def create_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def update_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_compilation_results REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] - # A result object deserialized from the server's reply - def list_compilation_results request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_compilation_results", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # A result object deserialized from the server's reply - def get_compilation_result request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_compilation_result", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # A result object deserialized from the server's reply - def create_compilation_result request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_compilation_result", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_compilation_result_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] - # A result object deserialized from the server's reply - def query_compilation_result_actions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_compilation_result_actions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workflow_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] - # A result object deserialized from the server's reply - def list_workflow_configs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workflow_configs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def get_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def create_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def update_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workflow_invocations REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] - # A result object deserialized from the server's reply - def list_workflow_invocations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workflow_invocations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # A result object deserialized from the server's reply - def get_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # A result object deserialized from the server's reply - def create_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # A result object deserialized from the server's reply - def cancel_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_workflow_invocation_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] - # A result object deserialized from the server's reply - def query_workflow_invocation_actions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_workflow_invocation_actions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def get_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def update_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # A result object deserialized from the server's reply - def get_iam_policy request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_iam_policy", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the set_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # A result object deserialized from the server's reply - def set_iam_policy request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "set_iam_policy", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the test_iam_permissions REST call - # - # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # A result object deserialized from the server's reply - def test_iam_permissions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "test_iam_permissions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/teamFolders", - body: "team_folder", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{team_folder.name}", - body: "team_folder", - matches: [ - ["team_folder.name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_team_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_team_folder_tree_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:deleteTree", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_team_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_team_folder_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{team_folder}:queryContents", - matches: [ - ["team_folder", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the search_team_folders REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_search_team_folders_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{location}/teamFolders:search", - matches: [ - ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/folders", - body: "folder", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{folder.name}", - body: "folder", - matches: [ - ["folder.name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_folder_tree_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:deleteTree", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_folder_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{folder}:queryFolderContents", - matches: [ - ["folder", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_user_root_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_user_root_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{location}:queryUserRootContents", - matches: [ - ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:move", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_repositories REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_repositories_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/repositories", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/repositories", - body: "repository", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{repository.name}", - body: "repository", - matches: [ - ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:move", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the commit_repository_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_commit_repository_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:commit", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the read_repository_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_read_repository_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:readFile", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_repository_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_repository_directory_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:queryDirectoryContents", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_repository_history REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_repository_history_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchHistory", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the compute_repository_access_token_status REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_compute_repository_access_token_status_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:computeAccessTokenStatus", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_remote_branches REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_remote_branches_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchRemoteBranches", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workspaces REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workspaces_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workspaces", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workspaces", - body: "workspace", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the install_npm_packages REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_install_npm_packages_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:installNpmPackages", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the pull_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_pull_git_commits_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:pull", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the push_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_push_git_commits_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:push", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_file_git_statuses REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_file_git_statuses_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchFileGitStatuses", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_git_ahead_behind REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_git_ahead_behind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchGitAheadBehind", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the commit_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_commit_workspace_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:commit", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the reset_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_reset_workspace_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:reset", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_file_diff REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_file_diff_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:fetchFileDiff", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_directory_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:queryDirectoryContents", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the search_files REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_search_files_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:searchFiles", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the make_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_make_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:makeDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the remove_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_remove_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:removeDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:moveDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the read_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_read_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:readFile", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the remove_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_remove_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:removeFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:moveFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the write_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_write_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:writeFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_release_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_release_configs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/releaseConfigs", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/releaseConfigs", - body: "release_config", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{release_config.name}", - body: "release_config", - matches: [ - ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_compilation_results REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_compilation_results_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/compilationResults", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_compilation_result_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_compilation_result_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/compilationResults", - body: "compilation_result", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_compilation_result_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_compilation_result_actions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:query", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workflow_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workflow_configs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workflowConfigs", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workflowConfigs", - body: "workflow_config", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{workflow_config.name}", - body: "workflow_config", - matches: [ - ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workflow_invocations REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workflow_invocations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workflowInvocations", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workflowInvocations", - body: "workflow_invocation", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_workflow_invocation_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_workflow_invocation_actions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:query", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{config.name}", - body: "config", - matches: [ - ["config.name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_iam_policy_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the set_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_set_iam_policy_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the test_iam_permissions REST call - # - # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_test_iam_permissions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb deleted file mode 100644 index d0223b594bff..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb +++ /dev/null @@ -1,216 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/dataform/v1/dataform.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' -require 'google/rpc/status_pb' -require 'google/type/interval_pb' - - -descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0e\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12#\n\x11\x63ontaining_folder\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\"\n\x10team_folder_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_containing_folderB\x13\n\x11_team_folder_nameB\x14\n\x12_internal_metadata\"3\n\x17PrivateResourceMetadata\x12\x18\n\x0buser_scoped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa4\x01\n\x15MoveRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xff\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\x8b\x04\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rdisable_moves\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x08 \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadataB\x10\n\x0e_disable_moves\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xe5\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x05 \x01(\x0e\x32/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x12\x43\n\x08metadata\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\n\x05\x65ntry\"h\n\x17\x46ilesystemEntryMetadata\x12\x17\n\nsize_bytes\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xca\x08\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x0c \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa3\x1e\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xae\x0b\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\n\nconnection\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x0ctable_format\x18\x10 \x01(\x0e\x32\x46.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xe0\x41\x01\x12_\n\x0b\x66ile_format\x18\x11 \x01(\x0e\x32\x45.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xe0\x41\x01\x12\x18\n\x0bstorage_uri\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\"8\n\x0bTableFormat\x12\x1c\n\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07ICEBERG\x10\x01\"6\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xdc\x03\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x0equery_priority\x18\t \x01(\x0e\x32\x38.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xe0\x41\x01H\x00\x88\x01\x01\"K\n\rQueryPriority\x12\x1e\n\x1aQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINTERACTIVE\x10\x01\x12\t\n\x05\x42\x41TCH\x10\x02\x42\x11\n\x0f_query_priority\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\x94\x08\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\n \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x02\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfigB\x14\n\x12_internal_metadata\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcf\x03\n\x06\x46older\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x63ontaining_folder\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10team_folder_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:n\xea\x41k\n\x1e\x64\x61taform.googleapis.com/Folder\x12\x38projects/{project}/locations/{location}/folders/{folder}*\x07\x66olders2\x06\x66olderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x87\x01\n\x13\x43reateFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"\x9c\x01\n\x11MoveFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"H\n\x10GetFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"\x82\x01\n\x13UpdateFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"K\n\x13\x44\x65leteFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"c\n\x17\x44\x65leteFolderTreeRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x1b\x44\x65leteTeamFolderTreeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe2\x02\n\x18\x44\x65leteFolderTreeMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\"[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xb1\x01\n\x1aQueryFolderContentsRequest\x12\x36\n\x06\x66older\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1bQueryFolderContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8e\x01\n\x13\x46olderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb8\x01\n\x1cQueryUserRootContentsRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1dQueryUserRootContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8c\x01\n\x11RootContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xab\x03\n\nTeamFolder\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n\"dataform.googleapis.com/TeamFolder\x12\x41projects/{project}/locations/{location}/teamFolders/{team_folder}*\x0bteamFolders2\nteamFolderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x94\x01\n\x17\x43reateTeamFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"P\n\x14GetTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\x8f\x01\n\x17UpdateTeamFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"S\n\x17\x44\x65leteTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\xbe\x01\n\x1eQueryTeamFolderContentsRequest\x12?\n\x0bteam_folder\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb3\x02\n\x1fQueryTeamFolderContentsResponse\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x92\x01\n\x17TeamFolderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb4\x01\n\x18SearchTeamFoldersRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xf1\x01\n\x19SearchTeamFoldersResponse\x12[\n\x07results\x18\x01 \x03(\x0b\x32J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a^\n\x16TeamFolderSearchResult\x12;\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderH\x00\x42\x07\n\x05\x65ntry\"\xca\x02\n\x12MoveFolderMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xd2\x02\n\x16MoveRepositoryMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04*\x89\x01\n\x15\x44irectoryContentsView\x12\'\n#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1d\x44IRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12$\n DIRECTORY_CONTENTS_VIEW_METADATA\x10\x02\x32\xe3}\n\x08\x44\x61taform\x12\xa5\x01\n\rGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xc6\x01\n\x10\x43reateTeamFolder\x12\x31.google.cloud.dataform.v1.CreateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"Y\xda\x41\x12parent,team_folder\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0bteam_folder\x12\xd7\x01\n\x10UpdateTeamFolder\x12\x31.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"j\xda\x41\x17team_folder,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0bteam_folder\x12\x9d\x01\n\x10\x44\x65leteTeamFolder\x12\x31.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xf5\x01\n\x14\x44\x65leteTeamFolderTree\x12\x35.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xea\x01\n\x17QueryTeamFolderContents\x12\x38.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1a\x39.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xda\x41\x0bteam_folder\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xbe\x01\n\x11SearchTeamFolders\x12\x32.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1a\x33.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\n\tGetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1a .google.cloud.dataform.v1.Folder\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xac\x01\n\x0c\x43reateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"K\xda\x41\rparent,folder\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/folders:\x06\x66older\x12\xb8\x01\n\x0cUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"W\xda\x41\x12\x66older,update_mask\x82\xd3\xe4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06\x66older\x12\x91\x01\n\x0c\x44\x65leteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xe9\x01\n\x10\x44\x65leteFolderTree\x12\x31.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xd6\x01\n\x13QueryFolderContents\x12\x34.google.cloud.dataform.v1.QueryFolderContentsRequest\x1a\x35.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xda\x41\x06\x66older\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xd8\x01\n\x15QueryUserRootContents\x12\x36.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1a\x37.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xda\x41\x08location\x82\xd3\xe4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xe9\x01\n\nMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41+\n\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02\x35\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xfa\x01\n\x0eMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x12\xf7\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xab\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x99\x02\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb deleted file mode 100644 index 71e821d33ab7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb +++ /dev/null @@ -1,3308 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataform - module V1 - # Describes encryption state of a resource. - # @!attribute [rw] kms_key_version_name - # @return [::String] - # Required. The KMS key version name with which data of a resource is - # encrypted. - class DataEncryptionState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git repository. - # @!attribute [rw] name - # @return [::String] - # Identifier. The repository's name. - # @!attribute [rw] containing_folder - # @return [::String] - # Optional. The name of the containing folder of the repository. - # The field is immutable and it can be modified via a MoveRepository - # operation. - # Format: `projects/*/locations/*/folders/*`. or - # `projects/*/locations/*/teamFolders/*`. - # @!attribute [r] team_folder_name - # @return [::String] - # Output only. The resource name of the TeamFolder that this Repository is - # associated with. This should take the format: - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this - # is not set, the Repository is not associated with a TeamFolder. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the repository was created. - # @!attribute [rw] display_name - # @return [::String] - # Optional. The repository's user-friendly name. - # @!attribute [rw] git_remote_settings - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings] - # Optional. If set, configures this repository to be linked to a Git remote. - # @!attribute [rw] npmrc_environment_variables_secret_version - # @return [::String] - # Optional. The name of the Secret Manager secret version to be used to - # interpolate variables into the .npmrc file for package installation - # operations. Must be in the format `projects/*/secrets/*/versions/*`. The - # file itself must be in a JSON format. - # @!attribute [rw] workspace_compilation_overrides - # @return [::Google::Cloud::Dataform::V1::Repository::WorkspaceCompilationOverrides] - # Optional. If set, fields of `workspace_compilation_overrides` override the - # default compilation settings that are specified in dataform.json when - # creating workspace-scoped compilation results. See documentation for - # `WorkspaceCompilationOverrides` for more information. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Repository user labels. - # @!attribute [rw] set_authenticated_user_admin - # @return [::Boolean] - # Optional. Input only. If set to true, the authenticated user will be - # granted the roles/dataform.admin role on the created repository. - # @!attribute [rw] service_account - # @return [::String] - # Optional. The service account to run workflow invocations under. - # @!attribute [rw] kms_key_name - # @return [::String] - # Optional. The reference to a KMS encryption key. If provided, it will be - # used to encrypt user data in the repository and all child resources. It is - # not possible to add or update the encryption key after the repository is - # created. Example: - # `projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}` - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. A data encryption state of a Git repository if this Repository - # is protected by a KMS key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class Repository - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Controls Git remote configuration for a repository. - # @!attribute [rw] url - # @return [::String] - # Required. The Git remote's URL. - # @!attribute [rw] default_branch - # @return [::String] - # Required. The Git remote's default branch name. - # @!attribute [rw] authentication_token_secret_version - # @return [::String] - # Optional. The name of the Secret Manager secret version to use as an - # authentication token for Git operations. Must be in the format - # `projects/*/secrets/*/versions/*`. - # @!attribute [rw] ssh_authentication_config - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::SshAuthenticationConfig] - # Optional. Authentication fields for remote uris using SSH protocol. - # @!attribute [r] token_status - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::TokenStatus] - # Output only. Deprecated: The field does not contain any token status - # information. - class GitRemoteSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Configures fields for performing SSH authentication. - # @!attribute [rw] user_private_key_secret_version - # @return [::String] - # Required. The name of the Secret Manager secret version to use as a - # ssh private key for Git operations. - # Must be in the format `projects/*/secrets/*/versions/*`. - # @!attribute [rw] host_public_key - # @return [::String] - # Required. Content of a public SSH key to verify an identity of a remote - # Git host. - class SshAuthenticationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The status of the authentication token. - module TokenStatus - # Default value. This value is unused. - TOKEN_STATUS_UNSPECIFIED = 0 - - # The token could not be found in Secret Manager (or the Dataform - # Service Account did not have permission to access it). - NOT_FOUND = 1 - - # The token could not be used to authenticate against the Git remote. - INVALID = 2 - - # The token was used successfully to authenticate against the Git remote. - VALID = 3 - end - end - - # Configures workspace compilation overrides for a repository. - # @!attribute [rw] default_database - # @return [::String] - # Optional. The default database (Google Cloud project ID). - # @!attribute [rw] schema_suffix - # @return [::String] - # Optional. The suffix that should be appended to all schema (BigQuery - # dataset ID) names. - # @!attribute [rw] table_prefix - # @return [::String] - # Optional. The prefix that should be prepended to all table names. - class WorkspaceCompilationOverrides - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Metadata used to identify if a resource is user scoped. - # @!attribute [r] user_scoped - # @return [::Boolean] - # Output only. If true, this resource is user-scoped, meaning it is either a - # workspace or sourced from a workspace. - class PrivateResourceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListRepositories` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListRepositoriesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListRepositories` response message. - # @!attribute [rw] repositories - # @return [::Array<::Google::Cloud::Dataform::V1::Repository>] - # List of repositories. - # @!attribute [rw] next_page_token - # @return [::String] - # A token which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListRepositoriesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The full resource name of the repository to move. - # @!attribute [rw] destination_containing_folder - # @return [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - class MoveRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class GetRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateRepository` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # Required. The repository to create. - # @!attribute [rw] repository_id - # @return [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - class CreateRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateRepository` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # Required. The repository to update. - class UpdateRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - class DeleteRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitRepositoryChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_metadata - # @return [::Google::Cloud::Dataform::V1::CommitMetadata] - # Required. The changes to commit to the repository. - # @!attribute [rw] required_head_commit_sha - # @return [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @!attribute [rw] file_operations - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - class CommitRepositoryChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single file operation to the repository. - # @!attribute [rw] write_file - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::WriteFile] - # Represents the write operation. - # - # Note: The following fields are mutually exclusive: `write_file`, `delete_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delete_file - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::DeleteFile] - # Represents the delete operation. - # - # Note: The following fields are mutually exclusive: `delete_file`, `write_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class FileOperation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the write file operation (for files added or modified). - # @!attribute [rw] contents - # @return [::String] - # The file's contents. - class WriteFile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the delete file operation. - class DeleteFile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation] - class FileOperationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `CommitRepositoryChanges` response message. - # @!attribute [rw] commit_sha - # @return [::String] - # The commit SHA of the current commit. - class CommitRepositoryChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadRepositoryFile` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_sha - # @return [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @!attribute [rw] path - # @return [::String] - # Required. Full file path to read including filename, from repository root. - class ReadRepositoryFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadRepositoryFile` response message. - # @!attribute [rw] contents - # @return [::String] - # The file's contents. - class ReadRepositoryFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryRepositoryDirectoryContents` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_sha - # @return [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @!attribute [rw] path - # @return [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - class QueryRepositoryDirectoryContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryRepositoryDirectoryContents` response message. - # @!attribute [rw] directory_entries - # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # List of entries in the directory. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryRepositoryDirectoryContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRepositoryHistory` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class FetchRepositoryHistoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRepositoryHistory` response message. - # @!attribute [rw] commits - # @return [::Array<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # A list of commit logs, ordered by 'git log' default order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class FetchRepositoryHistoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single commit log. - # @!attribute [rw] commit_time - # @return [::Google::Protobuf::Timestamp] - # Commit timestamp. - # @!attribute [rw] commit_sha - # @return [::String] - # The commit SHA for this commit log entry. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # The commit author for this commit log entry. - # @!attribute [rw] commit_message - # @return [::String] - # The commit message for this commit log entry. - class CommitLogEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git commit. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The commit's author. - # @!attribute [rw] commit_message - # @return [::String] - # Optional. The commit's message. - class CommitMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ComputeRepositoryAccessTokenStatus` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class ComputeRepositoryAccessTokenStatusRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ComputeRepositoryAccessTokenStatus` response message. - # @!attribute [rw] token_status - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse::TokenStatus] - # Indicates the status of the Git access token. - class ComputeRepositoryAccessTokenStatusResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the status of a Git authentication token. - module TokenStatus - # Default value. This value is unused. - TOKEN_STATUS_UNSPECIFIED = 0 - - # The token could not be found in Secret Manager (or the Dataform - # Service Account did not have permission to access it). - NOT_FOUND = 1 - - # The token could not be used to authenticate against the Git remote. - INVALID = 2 - - # The token was used successfully to authenticate against the Git remote. - VALID = 3 - - # The token is not accessible due to permission issues. - PERMISSION_DENIED = 4 - end - end - - # `FetchRemoteBranches` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class FetchRemoteBranchesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRemoteBranches` response message. - # @!attribute [rw] branches - # @return [::Array<::String>] - # The remote repository's branch names. - class FetchRemoteBranchesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git workspace. - # @!attribute [rw] name - # @return [::String] - # Identifier. The workspace's name. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the workspace was created. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. A data encryption state of a Git repository if this Workspace - # is protected by a KMS key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [rw] disable_moves - # @return [::Boolean] - # Optional. If set to true, workspaces will not be moved if its linked - # Repository is moved. Instead, it will be deleted. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # Output only. Metadata indicating whether this resource is user-scoped. For - # `Workspace` resources, the `user_scoped` field is always `true`. - class Workspace - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkspaces` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListWorkspacesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkspaces` response message. - # @!attribute [rw] workspaces - # @return [::Array<::Google::Cloud::Dataform::V1::Workspace>] - # List of workspaces. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkspacesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkspace` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - class GetWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkspace` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workspace - # @return [::Google::Cloud::Dataform::V1::Workspace] - # Required. The workspace to create. - # @!attribute [rw] workspace_id - # @return [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - class CreateWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkspace` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace resource's name. - class DeleteWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the author of a Git commit. - # @!attribute [rw] name - # @return [::String] - # Required. The commit author's name. - # @!attribute [rw] email_address - # @return [::String] - # Required. The commit author's email address. - class CommitAuthor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PullGitCommits` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - class PullGitCommitsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PullGitCommits` response message. - class PullGitCommitsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PushGitCommits` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - class PushGitCommitsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PushGitCommits` response message. - class PushGitCommitsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileGitStatuses` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - class FetchFileGitStatusesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileGitStatuses` response message. - # @!attribute [rw] uncommitted_file_changes - # @return [::Array<::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange>] - # A list of all files which have uncommitted Git changes. There will only be - # a single entry for any given file. - class FetchFileGitStatusesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the Git state of a file with uncommitted changes. - # @!attribute [rw] path - # @return [::String] - # The file's full path including filename, relative to the workspace root. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange::State] - # Output only. Indicates the status of the file. - class UncommittedFileChange - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the status of an uncommitted file change. - module State - # Default value. This value is unused. - STATE_UNSPECIFIED = 0 - - # The file has been newly added. - ADDED = 1 - - # The file has been deleted. - DELETED = 2 - - # The file has been modified. - MODIFIED = 3 - - # The file contains merge conflicts. - HAS_CONFLICTS = 4 - end - end - end - - # `FetchGitAheadBehind` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - class FetchGitAheadBehindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchGitAheadBehind` response message. - # @!attribute [rw] commits_ahead - # @return [::Integer] - # The number of commits in the remote branch that are not in the workspace. - # @!attribute [rw] commits_behind - # @return [::Integer] - # The number of commits in the workspace that are not in the remote branch. - class FetchGitAheadBehindResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitWorkspaceChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The commit's author. - # @!attribute [rw] commit_message - # @return [::String] - # Optional. The commit's message. - # @!attribute [rw] paths - # @return [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - class CommitWorkspaceChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitWorkspaceChanges` response message. - class CommitWorkspaceChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ResetWorkspaceChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] paths - # @return [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @!attribute [rw] clean - # @return [::Boolean] - # Optional. If set to true, untracked files will be deleted. - class ResetWorkspaceChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ResetWorkspaceChanges` response message. - class ResetWorkspaceChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileDiff` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - class FetchFileDiffRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileDiff` response message. - # @!attribute [rw] formatted_diff - # @return [::String] - # The raw formatted Git diff for the file. - class FetchFileDiffResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryDirectoryContents` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - class QueryDirectoryContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryDirectoryContents` response message. - # @!attribute [rw] directory_entries - # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # List of entries in the directory. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryDirectoryContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single entry in a directory. - # @!attribute [rw] file - # @return [::String] - # A file in the directory. - # - # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] directory - # @return [::String] - # A child directory in the directory. - # - # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] metadata - # @return [::Google::Cloud::Dataform::V1::FilesystemEntryMetadata] - # Entry with metadata. - class DirectoryEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents metadata for a single entry in a filesystem. - # @!attribute [r] size_bytes - # @return [::Integer] - # Output only. Provides the size of the entry in bytes. For directories, this - # will be 0. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Represents the time of the last modification of the entry. - class FilesystemEntryMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Configuration containing file search request parameters. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - class SearchFilesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a file search response. - # @!attribute [rw] search_results - # @return [::Array<::Google::Cloud::Dataform::V1::SearchResult>] - # List of matched results. - # @!attribute [rw] next_page_token - # @return [::String] - # Optional. A token, which can be sent as `page_token` to retrieve the next - # page. If this field is omitted, there are no subsequent pages. - class SearchFilesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a search result entry. - # @!attribute [rw] file - # @return [::Google::Cloud::Dataform::V1::FileSearchResult] - # Details when search result is a file. - # - # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] directory - # @return [::Google::Cloud::Dataform::V1::DirectorySearchResult] - # Details when search result is a directory. - # - # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class SearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a file entry in search results. - # @!attribute [rw] path - # @return [::String] - # File system path relative to the workspace root. - class FileSearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a directory entry in search results. - # @!attribute [rw] path - # @return [::String] - # File system path relative to the workspace root. - class DirectorySearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MakeDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - class MakeDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MakeDirectory` response message. - class MakeDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - class RemoveDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveDirectory` response message. - class RemoveDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @!attribute [rw] new_path - # @return [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - class MoveDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveDirectory` response message. - class MoveDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @!attribute [rw] revision - # @return [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - class ReadFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadFile` response message. - # @!attribute [rw] file_contents - # @return [::String] - # The file's contents. - class ReadFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - class RemoveFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveFile` response message. - class RemoveFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @!attribute [rw] new_path - # @return [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - class MoveFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFile` response message. - class MoveFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `WriteFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file. - # @!attribute [rw] contents - # @return [::String] - # Required. The file's contents. - class WriteFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `WriteFile` response message. - class WriteFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `InstallNpmPackages` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - class InstallNpmPackagesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `InstallNpmPackages` response message. - class InstallNpmPackagesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform release configuration. - # @!attribute [rw] name - # @return [::String] - # Identifier. The release config's name. - # @!attribute [rw] git_commitish - # @return [::String] - # Required. 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` - # @!attribute [rw] code_compilation_config - # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] - # Optional. If set, fields of `code_compilation_config` override the default - # compilation settings that are specified in dataform.json. - # @!attribute [rw] cron_schedule - # @return [::String] - # Optional. Optional schedule (in cron format) for automatic creation of - # compilation results. - # @!attribute [rw] time_zone - # @return [::String] - # 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. - # @!attribute [r] recent_scheduled_release_records - # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig::ScheduledReleaseRecord>] - # Output only. Records of the 10 most recent scheduled release attempts, - # ordered in descending order of `release_time`. Updated whenever automatic - # creation of a compilation result is triggered by cron_schedule. - # @!attribute [rw] release_compilation_result - # @return [::String] - # Optional. The name of the currently released compilation result for this - # release config. This value is updated when a compilation result is - # automatically created from this release config (using cron_schedule), or - # when this resource is updated by API call (perhaps to roll back to an - # earlier release). The compilation result must have been created using this - # release config. Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # @!attribute [rw] disabled - # @return [::Boolean] - # Optional. Disables automatic creation of compilation results. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class ReleaseConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A record of an attempt to create a compilation result for this release - # config. - # @!attribute [rw] compilation_result - # @return [::String] - # The name of the created compilation result, if one was successfully - # created. Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # - # Note: The following fields are mutually exclusive: `compilation_result`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] error_status - # @return [::Google::Rpc::Status] - # The error status encountered upon this attempt to create the - # compilation result, if the attempt was unsuccessful. - # - # Note: The following fields are mutually exclusive: `error_status`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] release_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of this release attempt. - class ScheduledReleaseRecord - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `ListReleaseConfigs` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class ListReleaseConfigsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListReleaseConfigs` response message. - # @!attribute [rw] release_configs - # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # List of release configs. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListReleaseConfigsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetReleaseConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The release config's name. - class GetReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateReleaseConfig` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] release_config - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # Required. The release config to create. - # @!attribute [rw] release_config_id - # @return [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - class CreateReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateReleaseConfig` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @!attribute [rw] release_config - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # Required. The release config to update. - class UpdateReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteReleaseConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The release config's name. - class DeleteReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the result of compiling a Dataform project. - # @!attribute [rw] git_commitish - # @return [::String] - # 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` - # - # Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] workspace - # @return [::String] - # Immutable. The name of the workspace to compile. Must be in the format - # `projects/*/locations/*/repositories/*/workspaces/*`. - # - # Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] release_config - # @return [::String] - # Immutable. The name of the release config to compile. Must be in the - # format `projects/*/locations/*/repositories/*/releaseConfigs/*`. - # - # Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] name - # @return [::String] - # Output only. The compilation result's name. - # @!attribute [rw] code_compilation_config - # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] - # Immutable. If set, fields of `code_compilation_config` override the default - # compilation settings that are specified in dataform.json. - # @!attribute [r] resolved_git_commit_sha - # @return [::String] - # Output only. The fully resolved Git commit SHA of the code that was - # compiled. Not set for compilation results whose source is a workspace. - # @!attribute [r] dataform_core_version - # @return [::String] - # Output only. The version of `@dataform/core` that was used for compilation. - # @!attribute [r] compilation_errors - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult::CompilationError>] - # Output only. Errors encountered during project compilation. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. Only set if the repository has a KMS Key. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the compilation result was created. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # Output only. Metadata indicating whether this resource is user-scoped. - # `CompilationResult` resource is `user_scoped` only if it is sourced - # from a workspace. - class CompilationResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # An error encountered when attempting to compile a Dataform project. - # @!attribute [r] message - # @return [::String] - # Output only. The error's top level message. - # @!attribute [r] stack - # @return [::String] - # Output only. The error's full stack trace. - # @!attribute [r] path - # @return [::String] - # Output only. The path of the file where this error occurred, if - # available, relative to the project root. - # @!attribute [r] action_target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. The identifier of the action where this error occurred, if - # available. - class CompilationError - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configures various aspects of Dataform code compilation. - # @!attribute [rw] default_database - # @return [::String] - # Optional. The default database (Google Cloud project ID). - # @!attribute [rw] default_schema - # @return [::String] - # Optional. The default schema (BigQuery dataset ID). - # @!attribute [rw] default_location - # @return [::String] - # Optional. The default BigQuery location to use. Defaults to "US". - # See the BigQuery docs for a full list of locations: - # https://cloud.google.com/bigquery/docs/locations. - # @!attribute [rw] assertion_schema - # @return [::String] - # Optional. The default schema (BigQuery dataset ID) for assertions. - # @!attribute [rw] vars - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. User-defined variables that are made available to project code - # during compilation. - # @!attribute [rw] database_suffix - # @return [::String] - # Optional. The suffix that should be appended to all database (Google Cloud - # project ID) names. - # @!attribute [rw] schema_suffix - # @return [::String] - # Optional. The suffix that should be appended to all schema (BigQuery - # dataset ID) names. - # @!attribute [rw] table_prefix - # @return [::String] - # Optional. The prefix that should be prepended to all table names. - # @!attribute [rw] builtin_assertion_name_prefix - # @return [::String] - # Optional. The prefix to prepend to built-in assertion names. - # @!attribute [rw] default_notebook_runtime_options - # @return [::Google::Cloud::Dataform::V1::NotebookRuntimeOptions] - # Optional. The default notebook runtime options. - class CodeCompilationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class VarsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configures various aspects of Dataform notebook runtime. - # @!attribute [rw] gcs_output_bucket - # @return [::String] - # Optional. The Google Cloud Storage location to upload the result to. - # Format: `gs://bucket-name`. - # @!attribute [rw] ai_platform_notebook_runtime_template - # @return [::String] - # Optional. The resource name of the [Colab runtime template] - # (https://cloud.google.com/colab/docs/runtimes), from which a runtime is - # created for notebook executions. If not specified, a runtime is created - # with Colab's default specifications. - class NotebookRuntimeOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListCompilationResults` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListCompilationResultsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListCompilationResults` response message. - # @!attribute [rw] compilation_results - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult>] - # List of compilation results. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListCompilationResultsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetCompilationResult` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The compilation result's name. - class GetCompilationResultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateCompilationResult` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] compilation_result - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # Required. The compilation result to create. - class CreateCompilationResultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents an action identifier. If the action writes output, the output - # will be written to the referenced database object. - # @!attribute [rw] database - # @return [::String] - # Optional. The action's database (Google Cloud project ID) . - # @!attribute [rw] schema - # @return [::String] - # Optional. The action's schema (BigQuery dataset ID), within `database`. - # @!attribute [rw] name - # @return [::String] - # Optional. The action's name, within `database` and `schema`. - class Target - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes a relation and its columns. - # @!attribute [rw] description - # @return [::String] - # A text description of the relation. - # @!attribute [rw] columns - # @return [::Array<::Google::Cloud::Dataform::V1::RelationDescriptor::ColumnDescriptor>] - # A list of descriptions of columns within the relation. - # @!attribute [rw] bigquery_labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # A set of BigQuery labels that should be applied to the relation. - class RelationDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes a column. - # @!attribute [rw] path - # @return [::Array<::String>] - # The identifier for the column. Each entry in `path` represents one level - # of nesting. - # @!attribute [rw] description - # @return [::String] - # A textual description of the column. - # @!attribute [rw] bigquery_policy_tags - # @return [::Array<::String>] - # A list of BigQuery policy tags that will be applied to the column. - class ColumnDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class BigqueryLabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents a single Dataform action in a compilation result. - # @!attribute [rw] relation - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation] - # The database relation created/updated by this action. - # - # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] operations - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Operations] - # The database operations executed by this action. - # - # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] assertion - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Assertion] - # The assertion executed by this action. - # - # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] declaration - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Declaration] - # The declaration declared by this action. - # - # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] notebook - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Notebook] - # The notebook executed by this action. - # - # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_preparation - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation] - # The data preparation executed by this action. - # - # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # This action's identifier. Unique within the compilation result. - # @!attribute [rw] canonical_target - # @return [::Google::Cloud::Dataform::V1::Target] - # The action's identifier if the project had been compiled without any - # overrides configured. Unique within the compilation result. - # @!attribute [rw] file_path - # @return [::String] - # The full path including filename in which this action is located, relative - # to the workspace root. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class CompilationResultAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a database relation. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the relation and its columns. - # @!attribute [rw] relation_type - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::RelationType] - # The type of this relation. - # @!attribute [rw] select_query - # @return [::String] - # The SELECT query which returns rows which this relation should contain. - # @!attribute [rw] pre_operations - # @return [::Array<::String>] - # SQL statements to be executed before creating the relation. - # @!attribute [rw] post_operations - # @return [::Array<::String>] - # SQL statements to be executed after creating the relation. - # @!attribute [rw] incremental_table_config - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::IncrementalTableConfig] - # Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - # `relation_type` is `INCREMENTAL_TABLE`. - # @!attribute [rw] partition_expression - # @return [::String] - # The SQL expression used to partition the relation. - # @!attribute [rw] cluster_expressions - # @return [::Array<::String>] - # A list of columns or SQL expressions used to cluster the table. - # @!attribute [rw] partition_expiration_days - # @return [::Integer] - # Sets the partition expiration in days. - # @!attribute [rw] require_partition_filter - # @return [::Boolean] - # Specifies whether queries on this table must include a predicate filter - # that filters on the partitioning column. - # @!attribute [rw] additional_options - # @return [::Google::Protobuf::Map{::String => ::String}] - # Additional options that will be provided as key/value pairs into the - # options clause of a create table/view statement. See - # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language - # for more information on which options are supported. - # @!attribute [rw] connection - # @return [::String] - # Optional. The connection specifying the credentials to be used to read - # and write to external storage, such as Cloud Storage. The connection can - # have the form `{project}.{location}.{connection_id}` or - # `projects/{project}/locations/{location}/connections/{connection_id}`, - # or be set to DEFAULT. - # @!attribute [rw] table_format - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::TableFormat] - # Optional. The table format for the BigQuery table. - # @!attribute [rw] file_format - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::FileFormat] - # Optional. The file format for the BigQuery table. - # @!attribute [rw] storage_uri - # @return [::String] - # Optional. The fully qualified location prefix of the external folder - # where table data is stored. The URI should be in the format - # `gs://bucket/path_to_table/`. - class Relation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Contains settings for relations of type `INCREMENTAL_TABLE`. - # @!attribute [rw] incremental_select_query - # @return [::String] - # The SELECT query which returns rows which should be inserted into the - # relation if it already exists and is not being refreshed. - # @!attribute [rw] refresh_disabled - # @return [::Boolean] - # Whether this table should be protected from being refreshed. - # @!attribute [rw] unique_key_parts - # @return [::Array<::String>] - # A set of columns or SQL expressions used to define row uniqueness. - # If any duplicates are discovered (as defined by `unique_key_parts`), - # only the newly selected rows (as defined by `incremental_select_query`) - # will be included in the relation. - # @!attribute [rw] update_partition_filter - # @return [::String] - # A SQL expression conditional used to limit the set of existing rows - # considered for a merge operation (see `unique_key_parts` for more - # information). - # @!attribute [rw] incremental_pre_operations - # @return [::Array<::String>] - # SQL statements to be executed before inserting new rows into the - # relation. - # @!attribute [rw] incremental_post_operations - # @return [::Array<::String>] - # SQL statements to be executed after inserting new rows into the - # relation. - class IncrementalTableConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AdditionalOptionsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the type of this relation. - module RelationType - # Default value. This value is unused. - RELATION_TYPE_UNSPECIFIED = 0 - - # The relation is a table. - TABLE = 1 - - # The relation is a view. - VIEW = 2 - - # The relation is an incrementalized table. - INCREMENTAL_TABLE = 3 - - # The relation is a materialized view. - MATERIALIZED_VIEW = 4 - end - - # Supported table formats for BigQuery tables. - module TableFormat - # Default value. - TABLE_FORMAT_UNSPECIFIED = 0 - - # Apache Iceberg format. - ICEBERG = 1 - end - - # Supported file formats for BigQuery tables. - module FileFormat - # Default value. - FILE_FORMAT_UNSPECIFIED = 0 - - # Apache Parquet format. - PARQUET = 1 - end - end - - # Represents a list of arbitrary database operations. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for any output relation and its columns. Only set if - # `has_output` is true. - # @!attribute [rw] queries - # @return [::Array<::String>] - # A list of arbitrary SQL statements that will be executed without - # alteration. - # @!attribute [rw] has_output - # @return [::Boolean] - # Whether these operations produce an output relation. - class Operations - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents an assertion upon a SQL query which is required return zero - # rows. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] parent_action - # @return [::Google::Cloud::Dataform::V1::Target] - # The parent action of this assertion. Only set if this assertion was - # automatically generated. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] select_query - # @return [::String] - # The SELECT query which must return zero rows in order for this assertion - # to succeed. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the assertion's automatically-generated view and its - # columns. - class Assertion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a relation which is not managed by Dataform but which may be - # referenced by Dataform actions. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the relation and its columns. Used as documentation only, - # i.e. values here will result in no changes to the relation's metadata. - class Declaration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a notebook. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] contents - # @return [::String] - # The contents of the notebook. - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - class Notebook - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a compiled Data Preparation entity - # @!attribute [rw] contents_yaml - # @return [::String] - # The data preparation definition, stored as a YAML string. - # - # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] contents_sql - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::SqlDefinition] - # SQL definition for a Data Preparation. Contains a SQL query and - # additional context information. - # - # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - class DataPreparation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Definition of a SQL Data Preparation - # @!attribute [rw] query - # @return [::String] - # The SQL query representing the data preparation steps. Formatted as a - # Pipe SQL query statement. - # @!attribute [rw] error_table - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::ErrorTable] - # Error table configuration, - # @!attribute [rw] load - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::LoadConfig] - # Load configuration. - class SqlDefinition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Error table information, used to write error data into a BigQuery - # table. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Error Table target. - # @!attribute [rw] retention_days - # @return [::Integer] - # Error table partition expiration in days. Only positive values are - # allowed. - class ErrorTable - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Simplified load configuration for actions - # @!attribute [rw] replace - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] - # Replace destination table - # - # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] append - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] - # Append into destination table - # - # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] maximum - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] - # Insert records where the value exceeds the previous maximum value for a - # column in the destination table - # - # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] unique - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] - # Insert records where the value of a column is not already present in - # the destination table - # - # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class LoadConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simple load definition - class SimpleLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Load definition for incremental load modes - # @!attribute [rw] column - # @return [::String] - # Column name for incremental load modes - class IncrementalLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `QueryCompilationResultActions` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The compilation result's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - class QueryCompilationResultActionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryCompilationResultActions` response message. - # @!attribute [rw] compilation_result_actions - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # List of compilation result actions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryCompilationResultActionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform workflow configuration. - # @!attribute [rw] name - # @return [::String] - # Identifier. The workflow config's name. - # @!attribute [rw] release_config - # @return [::String] - # Required. The name of the release config whose release_compilation_result - # should be executed. Must be in the format - # `projects/*/locations/*/repositories/*/releaseConfigs/*`. - # @!attribute [rw] invocation_config - # @return [::Google::Cloud::Dataform::V1::InvocationConfig] - # Optional. If left unset, a default InvocationConfig will be used. - # @!attribute [rw] cron_schedule - # @return [::String] - # Optional. Optional schedule (in cron format) for automatic execution of - # this workflow config. - # @!attribute [rw] time_zone - # @return [::String] - # 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. - # @!attribute [r] recent_scheduled_execution_records - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig::ScheduledExecutionRecord>] - # Output only. Records of the 10 most recent scheduled execution attempts, - # ordered in descending order of `execution_time`. Updated whenever automatic - # creation of a workflow invocation is triggered by cron_schedule. - # @!attribute [rw] disabled - # @return [::Boolean] - # Optional. Disables automatic creation of workflow invocations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the WorkflowConfig was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the WorkflowConfig was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class WorkflowConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A record of an attempt to create a workflow invocation for this workflow - # config. - # @!attribute [rw] workflow_invocation - # @return [::String] - # The name of the created workflow invocation, if one was successfully - # created. Must be in the format - # `projects/*/locations/*/repositories/*/workflowInvocations/*`. - # - # Note: The following fields are mutually exclusive: `workflow_invocation`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] error_status - # @return [::Google::Rpc::Status] - # The error status encountered upon this attempt to create the - # workflow invocation, if the attempt was unsuccessful. - # - # Note: The following fields are mutually exclusive: `error_status`, `workflow_invocation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] execution_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of this execution attempt. - class ScheduledExecutionRecord - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Includes various configuration options for a workflow invocation. - # If both `included_targets` and `included_tags` are unset, all actions - # will be included. - # @!attribute [rw] included_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # Optional. The set of action identifiers to include. - # @!attribute [rw] included_tags - # @return [::Array<::String>] - # Optional. The set of tags to include. - # @!attribute [rw] transitive_dependencies_included - # @return [::Boolean] - # Optional. When set to true, transitive dependencies of included actions - # will be executed. - # @!attribute [rw] transitive_dependents_included - # @return [::Boolean] - # Optional. When set to true, transitive dependents of included actions will - # be executed. - # @!attribute [rw] fully_refresh_incremental_tables_enabled - # @return [::Boolean] - # Optional. When set to true, any incremental tables will be fully refreshed. - # @!attribute [rw] service_account - # @return [::String] - # Optional. The service account to run workflow invocations under. - # @!attribute [rw] query_priority - # @return [::Google::Cloud::Dataform::V1::InvocationConfig::QueryPriority] - # Optional. Specifies the priority for query execution in BigQuery. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#queries. - class InvocationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Types of priority for query execution in BigQuery. - module QueryPriority - # Default value. This value is unused. - QUERY_PRIORITY_UNSPECIFIED = 0 - - # Query will be executed in BigQuery with interactive priority. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#queries. - INTERACTIVE = 1 - - # Query will be executed in BigQuery with batch priority. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#batchqueries. - BATCH = 2 - end - end - - # `ListWorkflowConfigs` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class ListWorkflowConfigsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkflowConfigs` response message. - # @!attribute [rw] workflow_configs - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # List of workflow configs. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkflowConfigsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkflowConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow config's name. - class GetWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkflowConfig` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workflow_config - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # Required. The workflow config to create. - # @!attribute [rw] workflow_config_id - # @return [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - class CreateWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateWorkflowConfig` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @!attribute [rw] workflow_config - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # Required. The workflow config to update. - class UpdateWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkflowConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow config's name. - class DeleteWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single invocation of a compilation result. - # @!attribute [rw] compilation_result - # @return [::String] - # Immutable. The name of the compilation result to use for this invocation. - # Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # - # Note: The following fields are mutually exclusive: `compilation_result`, `workflow_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] workflow_config - # @return [::String] - # Immutable. The name of the workflow config to invoke. Must be in the - # format `projects/*/locations/*/repositories/*/workflowConfigs/*`. - # - # Note: The following fields are mutually exclusive: `workflow_config`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] name - # @return [::String] - # Output only. The workflow invocation's name. - # @!attribute [rw] invocation_config - # @return [::Google::Cloud::Dataform::V1::InvocationConfig] - # Immutable. If left unset, a default InvocationConfig will be used. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation::State] - # Output only. This workflow invocation's current state. - # @!attribute [r] invocation_timing - # @return [::Google::Type::Interval] - # Output only. This workflow invocation's timing details. - # @!attribute [r] resolved_compilation_result - # @return [::String] - # Output only. The resolved compilation result that was used to create this - # invocation. Will be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. Only set if the repository has a KMS Key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # 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. - class WorkflowInvocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the current state of a workflow invocation. - module State - # Default value. This value is unused. - STATE_UNSPECIFIED = 0 - - # The workflow invocation is currently running. - RUNNING = 1 - - # The workflow invocation succeeded. A terminal state. - SUCCEEDED = 2 - - # The workflow invocation was cancelled. A terminal state. - CANCELLED = 3 - - # The workflow invocation failed. A terminal state. - FAILED = 4 - - # The workflow invocation is being cancelled, but some actions are still - # running. - CANCELING = 5 - end - end - - # `ListWorkflowInvocations` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListWorkflowInvocationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkflowInvocations` response message. - # @!attribute [rw] workflow_invocations - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # List of workflow invocations. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkflowInvocationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class GetWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkflowInvocation` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workflow_invocation - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # Required. The workflow invocation resource to create. - class CreateWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class DeleteWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CancelWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class CancelWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CancelWorkflowInvocation` response message. - class CancelWorkflowInvocationResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single action in a workflow invocation. - # @!attribute [r] bigquery_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::BigQueryAction] - # Output only. The workflow action's bigquery action details. - # - # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] notebook_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::NotebookAction] - # Output only. The workflow action's notebook action details. - # - # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] data_preparation_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction] - # Output only. The workflow action's data preparation action details. - # - # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. This action's identifier. Unique within the workflow - # invocation. - # @!attribute [r] canonical_target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. The action's identifier if the project had been compiled - # without any overrides configured. Unique within the compilation result. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::State] - # Output only. This action's current state. - # @!attribute [r] failure_reason - # @return [::String] - # Output only. If and only if action's state is FAILED a failure reason is - # set. - # @!attribute [r] invocation_timing - # @return [::Google::Type::Interval] - # Output only. This action's timing details. - # `start_time` will be set if the action is in [RUNNING, SUCCEEDED, - # CANCELLED, FAILED] state. - # `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] - # state. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class WorkflowInvocationAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a workflow action that will run against BigQuery. - # @!attribute [r] sql_script - # @return [::String] - # Output only. The generated BigQuery SQL script that will be executed. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the BigQuery job that executed the SQL in - # sql_script. Only set once the job has started to run. - class BigQueryAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a workflow action that will run against a Notebook runtime. - # @!attribute [r] contents - # @return [::String] - # Output only. The code contents of a Notebook to be run. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the Vertex 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. - class NotebookAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a workflow action that will run a Data Preparation. - # @!attribute [r] contents_yaml - # @return [::String] - # Output only. YAML representing the contents of the data preparation. - # Can be used to show the customer what the input was to their workflow. - # - # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] contents_sql - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition] - # SQL definition for a Data Preparation. Contains a SQL query and - # additional context information. - # - # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] generated_sql - # @return [::String] - # Output only. The generated BigQuery SQL script that will be executed. For - # reference only. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the BigQuery job that executed the SQL in - # sql_script. Only set once the job has started to run. - class DataPreparationAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Definition of a SQL Data Preparation - # @!attribute [rw] query - # @return [::String] - # The SQL query representing the data preparation steps. Formatted as a - # Pipe SQL query statement. - # @!attribute [rw] error_table - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionErrorTable] - # Error table configuration, - # @!attribute [rw] load_config - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionLoadConfig] - # Load configuration. - class ActionSqlDefinition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Error table information, used to write error data into a BigQuery - # table. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Error Table target. - # @!attribute [rw] retention_days - # @return [::Integer] - # Error table partition expiration in days. Only positive values are - # allowed. - class ActionErrorTable - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simplified load configuration for actions - # @!attribute [rw] replace - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] - # Replace destination table - # - # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] append - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] - # Append into destination table - # - # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] maximum - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] - # Insert records where the value exceeds the previous maximum value for - # a column in the destination table - # - # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] unique - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] - # Insert records where the value of a column is not already present in - # the destination table - # - # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class ActionLoadConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simple load definition - class ActionSimpleLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Load definition for incremental load modes - # @!attribute [rw] column - # @return [::String] - # Column name for incremental load modes - class ActionIncrementalLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents the current state of a workflow invocation action. - module State - # The action has not yet been considered for invocation. - PENDING = 0 - - # The action is currently running. - RUNNING = 1 - - # Execution of the action was skipped because upstream dependencies did not - # all complete successfully. A terminal state. - SKIPPED = 2 - - # Execution of the action was disabled as per the configuration of the - # corresponding compilation result action. A terminal state. - DISABLED = 3 - - # The action succeeded. A terminal state. - SUCCEEDED = 4 - - # The action was cancelled. A terminal state. - CANCELLED = 5 - - # The action failed. A terminal state. - FAILED = 6 - end - end - - # `QueryWorkflowInvocationActions` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - class QueryWorkflowInvocationActionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryWorkflowInvocationActions` response message. - # @!attribute [rw] workflow_invocation_actions - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # List of workflow invocation actions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryWorkflowInvocationActionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Config for all repositories in a given project and location. - # @!attribute [rw] name - # @return [::String] - # Identifier. The config name. - # @!attribute [rw] default_kms_key_name - # @return [::String] - # Optional. The default KMS key that is used if no encryption key is provided - # when a repository is created. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class Config - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The config name. - class GetConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateConfig` request message. - # @!attribute [rw] config - # @return [::Google::Cloud::Dataform::V1::Config] - # Required. The config to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the config. - class UpdateConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Folder. This is a resource that is used to organize - # Files and other Folders and provide hierarchical access controls. - # @!attribute [rw] name - # @return [::String] - # Identifier. The Folder's name. - # @!attribute [rw] display_name - # @return [::String] - # Required. The Folder's user-friendly name. - # @!attribute [rw] containing_folder - # @return [::String] - # Optional. The containing Folder resource name. This should take - # the format: projects/\\{project}/locations/\\{location}/folders/\\{folder}, - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}, or just - # projects/\\{project}/locations/\\{location} if this is a root Folder. This - # field can only be updated through MoveFolder. - # @!attribute [r] team_folder_name - # @return [::String] - # Output only. The resource name of the TeamFolder that this Folder is - # associated with. This should take the format: - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this - # is not set, the Folder is not associated with a TeamFolder and is a - # UserFolder. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the Folder was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the Folder was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] creator_iam_principal - # @return [::String] - # Output only. The IAM principal identifier of the creator of the Folder. - class Folder - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateFolder` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # Required. The Folder to create. - class CreateFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The full resource name of the Folder to move. - # @!attribute [rw] destination_containing_folder - # @return [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - class MoveFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - class GetFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateFolder` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # Required. The updated Folder. - class UpdateFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - class DeleteFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteFolderTree` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - class DeleteFolderTreeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteTeamFolderTree` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - class DeleteTeamFolderTreeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Contains metadata about the progress of the DeleteFolderTree Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Resource name of the target of the operation. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} or - # projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::DeleteFolderTreeMetadata::State] - # Output only. The state of the operation. - # @!attribute [r] percent_complete - # @return [::Integer] - # Output only. Percent complete of the operation [0, 100]. - class DeleteFolderTreeMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the DeleteFolderTree operation. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The operation was initialized and recorded by the server, but not yet - # started. - INITIALIZED = 1 - - # The operation is in progress. - IN_PROGRESS = 2 - - # The operation has completed successfully. - SUCCEEDED = 3 - - # The operation has failed. - FAILED = 4 - end - end - - # `QueryFolderContents` request message. - # @!attribute [rw] folder - # @return [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryFolderContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryFolderContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # List of entries in the folder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryFolderContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class FolderContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `QueryUserRootContents` request message. - # @!attribute [rw] location - # @return [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryUserRootContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryUserRootContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # List of entries in the folder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryUserRootContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class RootContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents a Dataform TeamFolder. This is a resource that sits at the project - # level and is used to organize Repositories and Folders with hierarchical - # access controls. They provide a team context and stricter access controls. - # @!attribute [rw] name - # @return [::String] - # Identifier. The TeamFolder's name. - # @!attribute [rw] display_name - # @return [::String] - # Required. The TeamFolder's user-friendly name. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the TeamFolder was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the TeamFolder was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] creator_iam_principal - # @return [::String] - # Output only. The IAM principal identifier of the creator of the TeamFolder. - class TeamFolder - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateTeamFolder` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # Required. The TeamFolder to create. - class CreateTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetTeamFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - class GetTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateTeamFolder` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # Required. The updated TeamFolder. - class UpdateTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteTeamFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - class DeleteTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryTeamFolderContents` request message. - # @!attribute [rw] team_folder - # @return [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryTeamFolderContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryTeamFolderContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # List of entries in the TeamFolder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryTeamFolderContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class TeamFolderContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `SearchTeamFolders` request message. - # @!attribute [rw] location - # @return [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class SearchTeamFoldersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `SearchTeamFolders` response message. - # @!attribute [rw] results - # @return [::Array<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # List of TeamFolders that match the search query. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class SearchTeamFoldersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A TeamFolder resource that is in the project / location. - class TeamFolderSearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Contains metadata about the progress of the MoveFolder Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Server-defined resource path for the target of the operation. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataform::V1::MoveFolderMetadata::State] - # The state of the move. - # @!attribute [rw] percent_complete - # @return [::Integer] - # Percent complete of the move [0, 100]. - class MoveFolderMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the move. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The move was initialized and recorded by the server, but not yet started. - INITIALIZED = 1 - - # The move is in progress. - IN_PROGRESS = 2 - - # The move has completed successfully. - SUCCESS = 3 - - # The move has failed. - FAILED = 4 - end - end - - # Contains metadata about the progress of the MoveRepository Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Server-defined resource path for the target of the operation. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataform::V1::MoveRepositoryMetadata::State] - # The state of the move. - # @!attribute [rw] percent_complete - # @return [::Integer] - # Percent complete of the move [0, 100]. - class MoveRepositoryMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the move. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The move was initialized and recorded by the server, but not yet started. - INITIALIZED = 1 - - # The move is in progress. - IN_PROGRESS = 2 - - # The move has completed successfully. - SUCCESS = 3 - - # The move has failed. - FAILED = 4 - end - end - - # Represents the level of detail to return for directory contents. - module DirectoryContentsView - # The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. - DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0 - - # Includes only the file or directory name. This is the default behavior. - DIRECTORY_CONTENTS_VIEW_BASIC = 1 - - # Includes all metadata for each file or directory. Currently not supported - # by CMEK-protected workspaces. - DIRECTORY_CONTENTS_VIEW_METADATA = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb deleted file mode 100644 index 53e7733b6592..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # - # Example (Comparison): - # - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # - # Example (Equality): - # - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # - # Example (Logic): - # - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # - # Example (Data Manipulation): - # - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. - # @!attribute [rw] expression - # @return [::String] - # Textual representation of an expression in Common Expression Language - # syntax. - # @!attribute [rw] title - # @return [::String] - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # @!attribute [rw] description - # @return [::String] - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # @!attribute [rw] location - # @return [::String] - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - class Expr - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb deleted file mode 100644 index 9350ca479005..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a time interval, encoded as a Timestamp start (inclusive) and a - # Timestamp end (exclusive). - # - # The start must be less than or equal to the end. - # When the start equals the end, the interval is empty (matches no time). - # When both start and end are unspecified, the interval matches any time. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Inclusive start of the interval. - # - # If specified, a Timestamp matching this interval will have to be the same - # or after the start. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Exclusive end of the interval. - # - # If specified, a Timestamp matching this interval will have to be before the - # end. - class Interval - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile deleted file mode 100644 index 89707fd03706..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-dataform-v1", path: "../" -else - gem "google-cloud-dataform-v1" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb deleted file mode 100644 index c4a4e55aa460..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the cancel_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation. -# -def cancel_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - - # Call the cancel_workflow_invocation method. - result = client.cancel_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - p result -end -# [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb deleted file mode 100644 index b31e885c5837..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the commit_repository_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes. -# -def commit_repository_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - - # Call the commit_repository_changes method. - result = client.commit_repository_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb deleted file mode 100644 index de4ddc10f8e4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the commit_workspace_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes. -# -def commit_workspace_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - - # Call the commit_workspace_changes method. - result = client.commit_workspace_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb deleted file mode 100644 index 4aaf8f3d74f7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the compute_repository_access_token_status call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status. -# -def compute_repository_access_token_status - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - - # Call the compute_repository_access_token_status method. - result = client.compute_repository_access_token_status request - - # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - p result -end -# [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb deleted file mode 100644 index 2a34f5cac7f6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateCompilationResult_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_compilation_result call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result. -# -def create_compilation_result - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - - # Call the create_compilation_result method. - result = client.create_compilation_result request - - # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - p result -end -# [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb deleted file mode 100644 index 46e5de64b5d1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_release_config. -# -def create_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - - # Call the create_release_config method. - result = client.create_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb deleted file mode 100644 index 186c81061421..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_repository. -# -def create_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - - # Call the create_repository method. - result = client.create_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb deleted file mode 100644 index 446e1c2e93bb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config. -# -def create_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - - # Call the create_workflow_config method. - result = client.create_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb deleted file mode 100644 index ad915149df4d..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation. -# -def create_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - - # Call the create_workflow_invocation method. - result = client.create_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb deleted file mode 100644 index 89e20592d4f2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workspace. -# -def create_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - - # Call the create_workspace method. - result = client.create_workspace request - - # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb deleted file mode 100644 index b21bc0f0a3fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config. -# -def delete_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - - # Call the delete_release_config method. - result = client.delete_release_config request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb deleted file mode 100644 index c7267ab8814d..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_repository. -# -def delete_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - - # Call the delete_repository method. - result = client.delete_repository request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb deleted file mode 100644 index 68073c51b458..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config. -# -def delete_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - - # Call the delete_workflow_config method. - result = client.delete_workflow_config request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb deleted file mode 100644 index 656f44075001..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation. -# -def delete_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - - # Call the delete_workflow_invocation method. - result = client.delete_workflow_invocation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb deleted file mode 100644 index 56e820984467..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace. -# -def delete_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - - # Call the delete_workspace method. - result = client.delete_workspace request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb deleted file mode 100644 index 8730eefe3970..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchFileDiff_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_file_diff call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff. -# -def fetch_file_diff - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - - # Call the fetch_file_diff method. - result = client.fetch_file_diff request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb deleted file mode 100644 index 4715c81828c0..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_file_git_statuses call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses. -# -def fetch_file_git_statuses - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - - # Call the fetch_file_git_statuses method. - result = client.fetch_file_git_statuses request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb deleted file mode 100644 index 0fc4c454effd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_git_ahead_behind call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind. -# -def fetch_git_ahead_behind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - - # Call the fetch_git_ahead_behind method. - result = client.fetch_git_ahead_behind request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb deleted file mode 100644 index 3c55465ceb19..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchRemoteBranches_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_remote_branches call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches. -# -def fetch_remote_branches - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - - # Call the fetch_remote_branches method. - result = client.fetch_remote_branches request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb deleted file mode 100644 index da57dd87c79e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_repository_history call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history. -# -def fetch_repository_history - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - - # Call the fetch_repository_history method. - result = client.fetch_repository_history request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb deleted file mode 100644 index 999fd435d184..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetCompilationResult_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_compilation_result call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result. -# -def get_compilation_result - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - - # Call the get_compilation_result method. - result = client.get_compilation_result request - - # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - p result -end -# [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb deleted file mode 100644 index e783c6e72d27..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_config. -# -def get_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetConfigRequest.new - - # Call the get_config method. - result = client.get_config request - - # The returned object is of type Google::Cloud::Dataform::V1::Config. - p result -end -# [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb deleted file mode 100644 index a84831df98d5..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_release_config. -# -def get_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - - # Call the get_release_config method. - result = client.get_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb deleted file mode 100644 index c5072fb2408f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_repository. -# -def get_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - - # Call the get_repository method. - result = client.get_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb deleted file mode 100644 index f381745b38fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config. -# -def get_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - - # Call the get_workflow_config method. - result = client.get_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb deleted file mode 100644 index 7a4356138297..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation. -# -def get_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - - # Call the get_workflow_invocation method. - result = client.get_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb deleted file mode 100644 index 06b3bd6fe5eb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workspace. -# -def get_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - - # Call the get_workspace method. - result = client.get_workspace request - - # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb deleted file mode 100644 index 921bd63946d7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_InstallNpmPackages_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the install_npm_packages call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages. -# -def install_npm_packages - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - - # Call the install_npm_packages method. - result = client.install_npm_packages request - - # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - p result -end -# [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb deleted file mode 100644 index 593c43c2b30e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListCompilationResults_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_compilation_results call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results. -# -def list_compilation_results - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - - # Call the list_compilation_results method. - result = client.list_compilation_results request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - p item - end -end -# [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb deleted file mode 100644 index 8ea574eff2a3..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListReleaseConfigs_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_release_configs call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs. -# -def list_release_configs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - - # Call the list_release_configs method. - result = client.list_release_configs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - p item - end -end -# [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb deleted file mode 100644 index 321b0cf9c512..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListRepositories_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_repositories call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_repositories. -# -def list_repositories - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - - # Call the list_repositories method. - result = client.list_repositories request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - p item - end -end -# [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb deleted file mode 100644 index cc9629d319fb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workflow_configs call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs. -# -def list_workflow_configs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - - # Call the list_workflow_configs method. - result = client.list_workflow_configs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb deleted file mode 100644 index 13e62b798423..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workflow_invocations call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations. -# -def list_workflow_invocations - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - - # Call the list_workflow_invocations method. - result = client.list_workflow_invocations request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb deleted file mode 100644 index 8f9be608db55..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkspaces_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workspaces call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces. -# -def list_workspaces - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - - # Call the list_workspaces method. - result = client.list_workspaces request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb deleted file mode 100644 index 47f391f846c6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MakeDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the make_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#make_directory. -# -def make_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - - # Call the make_directory method. - result = client.make_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb deleted file mode 100644 index fb67af9605e9..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_directory. -# -def move_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - - # Call the move_directory method. - result = client.move_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb deleted file mode 100644 index 4f22d16e6721..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_file. -# -def move_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveFileRequest.new - - # Call the move_file method. - result = client.move_file request - - # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb deleted file mode 100644 index d929a9ff389b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_PullGitCommits_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the pull_git_commits call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits. -# -def pull_git_commits - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - - # Call the pull_git_commits method. - result = client.pull_git_commits request - - # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - p result -end -# [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb deleted file mode 100644 index a68f07194b2b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_PushGitCommits_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the push_git_commits call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits. -# -def push_git_commits - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - - # Call the push_git_commits method. - result = client.push_git_commits request - - # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - p result -end -# [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb deleted file mode 100644 index 5639fdf8046b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_compilation_result_actions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions. -# -def query_compilation_result_actions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - - # Call the query_compilation_result_actions method. - result = client.query_compilation_result_actions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb deleted file mode 100644 index b369a3508ead..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_directory_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents. -# -def query_directory_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - - # Call the query_directory_contents method. - result = client.query_directory_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb deleted file mode 100644 index 60f03d3438fe..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_repository_directory_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents. -# -def query_repository_directory_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - - # Call the query_repository_directory_contents method. - result = client.query_repository_directory_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb deleted file mode 100644 index d44f575db9f2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_workflow_invocation_actions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions. -# -def query_workflow_invocation_actions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - - # Call the query_workflow_invocation_actions method. - result = client.query_workflow_invocation_actions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb deleted file mode 100644 index 9d32a0e63b2e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ReadFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the read_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#read_file. -# -def read_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ReadFileRequest.new - - # Call the read_file method. - result = client.read_file request - - # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb deleted file mode 100644 index 52f0945b9d40..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ReadRepositoryFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the read_repository_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file. -# -def read_repository_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - - # Call the read_repository_file method. - result = client.read_repository_file request - - # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb deleted file mode 100644 index 797de4b0ddad..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_RemoveDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the remove_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#remove_directory. -# -def remove_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - - # Call the remove_directory method. - result = client.remove_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb deleted file mode 100644 index 7e1ae41d3621..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_RemoveFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the remove_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#remove_file. -# -def remove_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - - # Call the remove_file method. - result = client.remove_file request - - # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb deleted file mode 100644 index 3e320ac0b35b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the reset_workspace_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes. -# -def reset_workspace_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - - # Call the reset_workspace_changes method. - result = client.reset_workspace_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb deleted file mode 100644 index d6359d3370f5..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_SearchFiles_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the search_files call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#search_files. -# -def search_files - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - - # Call the search_files method. - result = client.search_files request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - p item - end -end -# [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb deleted file mode 100644 index cda3be7976e1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_config. -# -def update_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - - # Call the update_config method. - result = client.update_config request - - # The returned object is of type Google::Cloud::Dataform::V1::Config. - p result -end -# [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb deleted file mode 100644 index 67f11c154df8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_release_config. -# -def update_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - - # Call the update_release_config method. - result = client.update_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb deleted file mode 100644 index 35f7462d0dac..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_repository. -# -def update_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - - # Call the update_repository method. - result = client.update_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb deleted file mode 100644 index 570ff222440b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config. -# -def update_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - - # Call the update_workflow_config method. - result = client.update_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb deleted file mode 100644 index 75fabd872e56..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_WriteFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the write_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#write_file. -# -def write_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::WriteFileRequest.new - - # Call the write_file method. - result = client.write_file request - - # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json deleted file mode 100644 index 6ded7292abaa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json +++ /dev/null @@ -1,2935 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-dataform-v1", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.cloud.dataform.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "region_tag": "dataform_v1_generated_Dataform_GetTeamFolder_sync", - "title": "Snippet for the get_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder.", - "file": "dataform/get_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.GetTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateTeamFolder_sync", - "title": "Snippet for the create_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder.", - "file": "dataform/create_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateTeamFolder_sync", - "title": "Snippet for the update_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder.", - "file": "dataform/update_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolder_sync", - "title": "Snippet for the delete_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder.", - "file": "dataform/delete_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync", - "title": "Snippet for the delete_team_folder_tree call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree.", - "file": "dataform/delete_team_folder_tree.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_team_folder_tree", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteTeamFolderTree", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_sync", - "title": "Snippet for the query_team_folder_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents.", - "file": "dataform/query_team_folder_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_team_folder_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryTeamFolderContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SearchTeamFolders_sync", - "title": "Snippet for the search_team_folders call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders.", - "file": "dataform/search_team_folders.rb", - "language": "RUBY", - "client_method": { - "short_name": "search_team_folders", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SearchTeamFolders", - "full_name": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetFolder_sync", - "title": "Snippet for the get_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_folder.", - "file": "dataform/get_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetFolder", - "full_name": "google.cloud.dataform.v1.Dataform.GetFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateFolder_sync", - "title": "Snippet for the create_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_folder.", - "file": "dataform/create_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateFolder", - "full_name": "google.cloud.dataform.v1.Dataform.CreateFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateFolder_sync", - "title": "Snippet for the update_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_folder.", - "file": "dataform/update_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateFolder", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteFolder_sync", - "title": "Snippet for the delete_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder.", - "file": "dataform/delete_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteFolder", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteFolderTree_sync", - "title": "Snippet for the delete_folder_tree call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree.", - "file": "dataform/delete_folder_tree.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_folder_tree", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteFolderTree", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryFolderContents_sync", - "title": "Snippet for the query_folder_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents.", - "file": "dataform/query_folder_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_folder_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryFolderContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryFolderContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryFolderContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryFolderContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryUserRootContents_sync", - "title": "Snippet for the query_user_root_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents.", - "file": "dataform/query_user_root_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_user_root_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryUserRootContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveFolder_sync", - "title": "Snippet for the move_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_folder.", - "file": "dataform/move_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveFolder", - "full_name": "google.cloud.dataform.v1.Dataform.MoveFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListRepositories_sync", - "title": "Snippet for the list_repositories call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_repositories.", - "file": "dataform/list_repositories.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_repositories", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_repositories", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListRepositoriesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListRepositoriesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListRepositories", - "full_name": "google.cloud.dataform.v1.Dataform.ListRepositories", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetRepository_sync", - "title": "Snippet for the get_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_repository.", - "file": "dataform/get_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetRepository", - "full_name": "google.cloud.dataform.v1.Dataform.GetRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateRepository_sync", - "title": "Snippet for the create_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_repository.", - "file": "dataform/create_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateRepository", - "full_name": "google.cloud.dataform.v1.Dataform.CreateRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateRepository_sync", - "title": "Snippet for the update_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_repository.", - "file": "dataform/update_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateRepository", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteRepository_sync", - "title": "Snippet for the delete_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_repository.", - "file": "dataform/delete_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteRepository", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveRepository_sync", - "title": "Snippet for the move_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_repository.", - "file": "dataform/move_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveRepository", - "full_name": "google.cloud.dataform.v1.Dataform.MoveRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_sync", - "title": "Snippet for the commit_repository_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes.", - "file": "dataform/commit_repository_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "commit_repository_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CommitRepositoryChanges", - "full_name": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ReadRepositoryFile_sync", - "title": "Snippet for the read_repository_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file.", - "file": "dataform/read_repository_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "read_repository_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ReadRepositoryFile", - "full_name": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync", - "title": "Snippet for the query_repository_directory_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents.", - "file": "dataform/query_repository_directory_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_repository_directory_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryRepositoryDirectoryContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchRepositoryHistory_sync", - "title": "Snippet for the fetch_repository_history call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history.", - "file": "dataform/fetch_repository_history.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_repository_history", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchRepositoryHistory", - "full_name": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync", - "title": "Snippet for the compute_repository_access_token_status call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status.", - "file": "dataform/compute_repository_access_token_status.rb", - "language": "RUBY", - "client_method": { - "short_name": "compute_repository_access_token_status", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ComputeRepositoryAccessTokenStatus", - "full_name": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchRemoteBranches_sync", - "title": "Snippet for the fetch_remote_branches call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches.", - "file": "dataform/fetch_remote_branches.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_remote_branches", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchRemoteBranches", - "full_name": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkspaces_sync", - "title": "Snippet for the list_workspaces call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces.", - "file": "dataform/list_workspaces.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workspaces", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkspacesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkspacesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkspaces", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkspaces", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkspace_sync", - "title": "Snippet for the get_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workspace.", - "file": "dataform/get_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Workspace", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkspace_sync", - "title": "Snippet for the create_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workspace.", - "file": "dataform/create_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Workspace", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkspace_sync", - "title": "Snippet for the delete_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace.", - "file": "dataform/delete_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_InstallNpmPackages_sync", - "title": "Snippet for the install_npm_packages call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages.", - "file": "dataform/install_npm_packages.rb", - "language": "RUBY", - "client_method": { - "short_name": "install_npm_packages", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "InstallNpmPackages", - "full_name": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_PullGitCommits_sync", - "title": "Snippet for the pull_git_commits call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits.", - "file": "dataform/pull_git_commits.rb", - "language": "RUBY", - "client_method": { - "short_name": "pull_git_commits", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::PullGitCommitsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::PullGitCommitsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "PullGitCommits", - "full_name": "google.cloud.dataform.v1.Dataform.PullGitCommits", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_PushGitCommits_sync", - "title": "Snippet for the push_git_commits call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits.", - "file": "dataform/push_git_commits.rb", - "language": "RUBY", - "client_method": { - "short_name": "push_git_commits", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::PushGitCommitsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::PushGitCommitsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "PushGitCommits", - "full_name": "google.cloud.dataform.v1.Dataform.PushGitCommits", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchFileGitStatuses_sync", - "title": "Snippet for the fetch_file_git_statuses call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses.", - "file": "dataform/fetch_file_git_statuses.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_file_git_statuses", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchFileGitStatuses", - "full_name": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchGitAheadBehind_sync", - "title": "Snippet for the fetch_git_ahead_behind call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind.", - "file": "dataform/fetch_git_ahead_behind.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_git_ahead_behind", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchGitAheadBehind", - "full_name": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync", - "title": "Snippet for the commit_workspace_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes.", - "file": "dataform/commit_workspace_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "commit_workspace_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CommitWorkspaceChanges", - "full_name": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync", - "title": "Snippet for the reset_workspace_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes.", - "file": "dataform/reset_workspace_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "reset_workspace_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ResetWorkspaceChanges", - "full_name": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchFileDiff_sync", - "title": "Snippet for the fetch_file_diff call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff.", - "file": "dataform/fetch_file_diff.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_file_diff", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchFileDiffRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchFileDiffResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchFileDiff", - "full_name": "google.cloud.dataform.v1.Dataform.FetchFileDiff", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryDirectoryContents_sync", - "title": "Snippet for the query_directory_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents.", - "file": "dataform/query_directory_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_directory_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryDirectoryContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SearchFiles_sync", - "title": "Snippet for the search_files call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_files.", - "file": "dataform/search_files.rb", - "language": "RUBY", - "client_method": { - "short_name": "search_files", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_files", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::SearchFilesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::SearchFilesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SearchFiles", - "full_name": "google.cloud.dataform.v1.Dataform.SearchFiles", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MakeDirectory_sync", - "title": "Snippet for the make_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#make_directory.", - "file": "dataform/make_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "make_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#make_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MakeDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MakeDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MakeDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.MakeDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_RemoveDirectory_sync", - "title": "Snippet for the remove_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_directory.", - "file": "dataform/remove_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "remove_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::RemoveDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::RemoveDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "RemoveDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.RemoveDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveDirectory_sync", - "title": "Snippet for the move_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_directory.", - "file": "dataform/move_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MoveDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.MoveDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ReadFile_sync", - "title": "Snippet for the read_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_file.", - "file": "dataform/read_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "read_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ReadFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReadFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ReadFile", - "full_name": "google.cloud.dataform.v1.Dataform.ReadFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_RemoveFile_sync", - "title": "Snippet for the remove_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_file.", - "file": "dataform/remove_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "remove_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::RemoveFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::RemoveFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "RemoveFile", - "full_name": "google.cloud.dataform.v1.Dataform.RemoveFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveFile_sync", - "title": "Snippet for the move_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_file.", - "file": "dataform/move_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MoveFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveFile", - "full_name": "google.cloud.dataform.v1.Dataform.MoveFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_WriteFile_sync", - "title": "Snippet for the write_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#write_file.", - "file": "dataform/write_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "write_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#write_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::WriteFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WriteFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "WriteFile", - "full_name": "google.cloud.dataform.v1.Dataform.WriteFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListReleaseConfigs_sync", - "title": "Snippet for the list_release_configs call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs.", - "file": "dataform/list_release_configs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_release_configs", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListReleaseConfigs", - "full_name": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetReleaseConfig_sync", - "title": "Snippet for the get_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_release_config.", - "file": "dataform/get_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateReleaseConfig_sync", - "title": "Snippet for the create_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_release_config.", - "file": "dataform/create_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateReleaseConfig_sync", - "title": "Snippet for the update_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_release_config.", - "file": "dataform/update_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteReleaseConfig_sync", - "title": "Snippet for the delete_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config.", - "file": "dataform/delete_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListCompilationResults_sync", - "title": "Snippet for the list_compilation_results call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results.", - "file": "dataform/list_compilation_results.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_compilation_results", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListCompilationResultsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListCompilationResultsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListCompilationResults", - "full_name": "google.cloud.dataform.v1.Dataform.ListCompilationResults", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetCompilationResult_sync", - "title": "Snippet for the get_compilation_result call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result.", - "file": "dataform/get_compilation_result.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_compilation_result", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetCompilationResultRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetCompilationResult", - "full_name": "google.cloud.dataform.v1.Dataform.GetCompilationResult", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateCompilationResult_sync", - "title": "Snippet for the create_compilation_result call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result.", - "file": "dataform/create_compilation_result.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_compilation_result", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateCompilationResultRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateCompilationResult", - "full_name": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryCompilationResultActions_sync", - "title": "Snippet for the query_compilation_result_actions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions.", - "file": "dataform/query_compilation_result_actions.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_compilation_result_actions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryCompilationResultActions", - "full_name": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkflowConfigs_sync", - "title": "Snippet for the list_workflow_configs call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs.", - "file": "dataform/list_workflow_configs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workflow_configs", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkflowConfigs", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkflowConfig_sync", - "title": "Snippet for the get_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config.", - "file": "dataform/get_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowConfig_sync", - "title": "Snippet for the create_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config.", - "file": "dataform/create_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync", - "title": "Snippet for the update_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config.", - "file": "dataform/update_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync", - "title": "Snippet for the delete_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config.", - "file": "dataform/delete_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkflowInvocations_sync", - "title": "Snippet for the list_workflow_invocations call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations.", - "file": "dataform/list_workflow_invocations.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workflow_invocations", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkflowInvocations", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkflowInvocation_sync", - "title": "Snippet for the get_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation.", - "file": "dataform/get_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync", - "title": "Snippet for the create_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation.", - "file": "dataform/create_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync", - "title": "Snippet for the delete_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation.", - "file": "dataform/delete_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync", - "title": "Snippet for the cancel_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation.", - "file": "dataform/cancel_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "cancel_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CancelWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync", - "title": "Snippet for the query_workflow_invocation_actions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions.", - "file": "dataform/query_workflow_invocation_actions.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_workflow_invocation_actions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryWorkflowInvocationActions", - "full_name": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetConfig_sync", - "title": "Snippet for the get_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_config.", - "file": "dataform/get_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Config", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateConfig_sync", - "title": "Snippet for the update_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_config.", - "file": "dataform/update_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Config", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy.", - "file": "dataform/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.cloud.dataform.v1.Dataform.GetIamPolicy", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy.", - "file": "dataform/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.cloud.dataform.v1.Dataform.SetIamPolicy", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions.", - "file": "dataform/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.cloud.dataform.v1.Dataform.TestIamPermissions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb deleted file mode 100644 index 1843f1d3cb44..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb +++ /dev/null @@ -1,211 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_compilation_result_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.compilation_result_path project: "value0", location: "value1", repository: "value2", compilation_result: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/compilationResults/value3", path - end - end - - def test_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.config_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1/config", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_crypto_key_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path - end - end - - def test_folder_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.folder_path project: "value0", location: "value1", folder: "value2" - assert_equal "projects/value0/locations/value1/folders/value2", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_notebook_runtime_template_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.notebook_runtime_template_path project: "value0", location: "value1", notebook_runtime_template: "value2" - assert_equal "projects/value0/locations/value1/notebookRuntimeTemplates/value2", path - end - end - - def test_release_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.release_config_path project: "value0", location: "value1", repository: "value2", release_config: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/releaseConfigs/value3", path - end - end - - def test_repository_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.repository_path project: "value0", location: "value1", repository: "value2" - assert_equal "projects/value0/locations/value1/repositories/value2", path - end - end - - def test_secret_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.secret_version_path project: "value0", secret: "value1", version: "value2" - assert_equal "projects/value0/secrets/value1/versions/value2", path - end - end - - def test_team_folder_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.team_folder_path project: "value0", location: "value1", team_folder: "value2" - assert_equal "projects/value0/locations/value1/teamFolders/value2", path - end - end - - def test_workflow_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workflow_config_path project: "value0", location: "value1", repository: "value2", workflow_config: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workflowConfigs/value3", path - end - end - - def test_workflow_invocation_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workflow_invocation_path project: "value0", location: "value1", repository: "value2", workflow_invocation: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workflowInvocations/value3", path - end - end - - def test_workspace_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workspace_path project: "value0", location: "value1", repository: "value2", workspace: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workspaces/value3", path - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb deleted file mode 100644 index 07fde9553884..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb +++ /dev/null @@ -1,4148 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform/rest" - - -class ::Google::Cloud::Dataform::V1::Dataform::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_team_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_team_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_team_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_team_folder_client_stub.call_count - end - end - end - - def test_create_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - team_folder = {} - - create_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_team_folder({ parent: parent, team_folder: team_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_team_folder parent: parent, team_folder: team_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_team_folder({ parent: parent, team_folder: team_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_team_folder_client_stub.call_count - end - end - end - - def test_update_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - team_folder = {} - - update_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_team_folder update_mask: update_mask, team_folder: team_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_team_folder_client_stub.call_count - end - end - end - - def test_delete_team_folder - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_team_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_team_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_team_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_team_folder_client_stub.call_count - end - end - end - - def test_delete_team_folder_tree - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_team_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_tree_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_team_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_team_folder_tree({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_team_folder_tree name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_team_folder_tree({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_team_folder_tree_client_stub.call_count - end - end - end - - def test_query_team_folder_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - team_folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_team_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_team_folder_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_team_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_team_folder_contents_client_stub.call_count - end - end - end - - def test_search_team_folders - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - search_team_folders_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_team_folders_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, search_team_folders_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, search_team_folders_client_stub.call_count - end - end - end - - def test_get_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_folder_client_stub.call_count - end - end - end - - def test_create_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - folder = {} - - create_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_folder({ parent: parent, folder: folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_folder parent: parent, folder: folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_folder({ parent: parent, folder: folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_folder_client_stub.call_count - end - end - end - - def test_update_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - folder = {} - - update_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_folder({ update_mask: update_mask, folder: folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_folder update_mask: update_mask, folder: folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_folder({ update_mask: update_mask, folder: folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_folder_client_stub.call_count - end - end - end - - def test_delete_folder - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_folder_client_stub.call_count - end - end - end - - def test_delete_folder_tree - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_tree_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_folder_tree({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_folder_tree name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_folder_tree({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_folder_tree_client_stub.call_count - end - end - end - - def test_query_folder_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_folder_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_folder_contents_client_stub.call_count - end - end - end - - def test_query_user_root_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_user_root_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_user_root_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_user_root_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_user_root_contents_client_stub.call_count - end - end - end - - def test_move_folder - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_folder name: name, destination_containing_folder: destination_containing_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_folder_client_stub.call_count - end - end - end - - def test_list_repositories - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_repositories_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_repositories_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_repositories_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_repositories_client_stub.call_count - end - end - end - - def test_get_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_repository({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_repository name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_repository({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_repository_client_stub.call_count - end - end - end - - def test_create_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - repository = {} - repository_id = "hello world" - - create_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_repository parent: parent, repository: repository, repository_id: repository_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_repository_client_stub.call_count - end - end - end - - def test_update_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - repository = {} - - update_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_repository({ update_mask: update_mask, repository: repository }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_repository update_mask: update_mask, repository: repository do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_repository({ update_mask: update_mask, repository: repository }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_repository_client_stub.call_count - end - end - end - - def test_delete_repository - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_repository({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_repository name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_repository({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_repository_client_stub.call_count - end - end - end - - def test_move_repository - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_repository name: name, destination_containing_folder: destination_containing_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_repository_client_stub.call_count - end - end - end - - def test_commit_repository_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_metadata = {} - required_head_commit_sha = "hello world" - file_operations = {} - - commit_repository_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_repository_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, commit_repository_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, commit_repository_changes_client_stub.call_count - end - end - end - - def test_read_repository_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - - read_repository_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_repository_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, read_repository_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.read_repository_file name: name, commit_sha: commit_sha, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, read_repository_file_client_stub.call_count - end - end - end - - def test_query_repository_directory_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - - query_repository_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_repository_directory_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_repository_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_repository_directory_contents_client_stub.call_count - end - end - end - - def test_fetch_repository_history - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - fetch_repository_history_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_repository_history_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_repository_history_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_repository_history_client_stub.call_count - end - end - end - - def test_compute_repository_access_token_status - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - compute_repository_access_token_status_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_compute_repository_access_token_status_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, compute_repository_access_token_status_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.compute_repository_access_token_status({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.compute_repository_access_token_status name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.compute_repository_access_token_status({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, compute_repository_access_token_status_client_stub.call_count - end - end - end - - def test_fetch_remote_branches - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_remote_branches_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_remote_branches_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_remote_branches_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_remote_branches({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_remote_branches name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_remote_branches({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_remote_branches_client_stub.call_count - end - end - end - - def test_list_workspaces - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workspaces_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workspaces_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workspaces_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workspaces_client_stub.call_count - end - end - end - - def test_get_workspace - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Workspace.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workspace({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workspace name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workspace({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workspace_client_stub.call_count - end - end - end - - def test_create_workspace - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Workspace.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workspace = {} - workspace_id = "hello world" - - create_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workspace_client_stub.call_count - end - end - end - - def test_delete_workspace - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workspace({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workspace name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workspace({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workspace_client_stub.call_count - end - end - end - - def test_install_npm_packages - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - - install_npm_packages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_install_npm_packages_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, install_npm_packages_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.install_npm_packages({ workspace: workspace }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.install_npm_packages workspace: workspace do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.install_npm_packages({ workspace: workspace }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, install_npm_packages_client_stub.call_count - end - end - end - - def test_pull_git_commits - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - author = {} - - pull_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_pull_git_commits_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, pull_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, pull_git_commits_client_stub.call_count - end - end - end - - def test_push_git_commits - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - push_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_push_git_commits_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, push_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.push_git_commits({ name: name, remote_branch: remote_branch }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.push_git_commits name: name, remote_branch: remote_branch do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.push_git_commits({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, push_git_commits_client_stub.call_count - end - end - end - - def test_fetch_file_git_statuses - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_file_git_statuses_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_git_statuses_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_file_git_statuses_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_file_git_statuses({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_file_git_statuses name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_file_git_statuses({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_file_git_statuses_client_stub.call_count - end - end - end - - def test_fetch_git_ahead_behind - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - fetch_git_ahead_behind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_git_ahead_behind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_git_ahead_behind_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_git_ahead_behind_client_stub.call_count - end - end - end - - def test_commit_workspace_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - author = {} - commit_message = "hello world" - paths = ["hello world"] - - commit_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_workspace_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, commit_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, commit_workspace_changes_client_stub.call_count - end - end - end - - def test_reset_workspace_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - paths = ["hello world"] - clean = true - - reset_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_reset_workspace_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, reset_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.reset_workspace_changes name: name, paths: paths, clean: clean do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, reset_workspace_changes_client_stub.call_count - end - end - end - - def test_fetch_file_diff - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - fetch_file_diff_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_diff_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_file_diff_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_file_diff({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_file_diff workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_file_diff({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_file_diff_client_stub.call_count - end - end - end - - def test_query_directory_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED - - query_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_directory_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_directory_contents_client_stub.call_count - end - end - end - - def test_search_files - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - search_files_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_files_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, search_files_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, search_files_client_stub.call_count - end - end - end - - def test_make_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - make_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_make_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, make_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.make_directory({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.make_directory workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.make_directory({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, make_directory_client_stub.call_count - end - end - end - - def test_remove_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, remove_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.remove_directory({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.remove_directory workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.remove_directory({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, remove_directory_client_stub.call_count - end - end - end - - def test_move_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_directory workspace: workspace, path: path, new_path: new_path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_directory({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_directory_client_stub.call_count - end - end - end - - def test_read_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReadFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - revision = "hello world" - - read_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, read_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.read_file({ workspace: workspace, path: path, revision: revision }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.read_file workspace: workspace, path: path, revision: revision do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.read_file({ workspace: workspace, path: path, revision: revision }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, read_file_client_stub.call_count - end - end - end - - def test_remove_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, remove_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.remove_file({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.remove_file workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.remove_file({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, remove_file_client_stub.call_count - end - end - end - - def test_move_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MoveFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_file workspace: workspace, path: path, new_path: new_path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_file({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_file_client_stub.call_count - end - end - end - - def test_write_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WriteFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - contents = "hello world" - - write_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_write_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, write_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.write_file({ workspace: workspace, path: path, contents: contents }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.write_file workspace: workspace, path: path, contents: contents do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.write_file({ workspace: workspace, path: path, contents: contents }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, write_file_client_stub.call_count - end - end - end - - def test_list_release_configs - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_release_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_release_configs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_release_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_release_configs_client_stub.call_count - end - end - end - - def test_get_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_release_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_release_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_release_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_release_config_client_stub.call_count - end - end - end - - def test_create_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_config = {} - release_config_id = "hello world" - - create_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_release_config_client_stub.call_count - end - end - end - - def test_update_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - release_config = {} - - update_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_release_config update_mask: update_mask, release_config: release_config do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_release_config({ update_mask: update_mask, release_config: release_config }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_release_config_client_stub.call_count - end - end - end - - def test_delete_release_config - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_release_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_release_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_release_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_release_config_client_stub.call_count - end - end - end - - def test_list_compilation_results - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_compilation_results_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_compilation_results_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_compilation_results_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_compilation_results_client_stub.call_count - end - end - end - - def test_get_compilation_result - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_compilation_result_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_compilation_result({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_compilation_result name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_compilation_result({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_compilation_result_client_stub.call_count - end - end - end - - def test_create_compilation_result - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - compilation_result = {} - - create_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_compilation_result_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_compilation_result parent: parent, compilation_result: compilation_result do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_compilation_result_client_stub.call_count - end - end - end - - def test_query_compilation_result_actions - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - query_compilation_result_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_compilation_result_actions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_compilation_result_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_compilation_result_actions_client_stub.call_count - end - end - end - - def test_list_workflow_configs - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_workflow_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_configs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workflow_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workflow_configs_client_stub.call_count - end - end - end - - def test_get_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workflow_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workflow_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workflow_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workflow_config_client_stub.call_count - end - end - end - - def test_create_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_config = {} - workflow_config_id = "hello world" - - create_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workflow_config_client_stub.call_count - end - end - end - - def test_update_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - workflow_config = {} - - update_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_workflow_config_client_stub.call_count - end - end - end - - def test_delete_workflow_config - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workflow_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workflow_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workflow_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workflow_config_client_stub.call_count - end - end - end - - def test_list_workflow_invocations - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workflow_invocations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_invocations_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workflow_invocations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workflow_invocations_client_stub.call_count - end - end - end - - def test_get_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workflow_invocation_client_stub.call_count - end - end - end - - def test_create_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_invocation = {} - - create_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workflow_invocation_client_stub.call_count - end - end - end - - def test_delete_workflow_invocation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workflow_invocation_client_stub.call_count - end - end - end - - def test_cancel_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_cancel_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, cancel_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.cancel_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.cancel_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.cancel_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, cancel_workflow_invocation_client_stub.call_count - end - end - end - - def test_query_workflow_invocation_actions - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - query_workflow_invocation_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_workflow_invocation_actions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_workflow_invocation_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_workflow_invocation_actions_client_stub.call_count - end - end - end - - def test_get_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Config.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_config_client_stub.call_count - end - end - end - - def test_update_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Config.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - config = {} - update_mask = {} - - update_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_config({ config: config, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_config config: config, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_config({ config: config, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_config_client_stub.call_count - end - end - end - - def test_get_iam_policy - # Create test objects. - client_result = ::Google::Iam::V1::Policy.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_iam_policy_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_count - end - end - end - - def test_set_iam_policy - # Create test objects. - client_result = ::Google::Iam::V1::Policy.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_set_iam_policy_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_count - end - end - end - - def test_test_iam_permissions - # Create test objects. - client_result = ::Google::Iam::V1::TestIamPermissionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_test_iam_permissions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb deleted file mode 100644 index 83dcd399b121..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb +++ /dev/null @@ -1,4668 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetTeamFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_team_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_team_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_team_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_team_folder_client_stub.call_rpc_count - end - end - - def test_create_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - team_folder = {} - - create_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_team_folder({ parent: parent, team_folder: team_folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_team_folder parent: parent, team_folder: team_folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_team_folder({ parent: parent, team_folder: team_folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_team_folder_client_stub.call_rpc_count - end - end - - def test_update_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - team_folder = {} - - update_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_team_folder update_mask: update_mask, team_folder: team_folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_team_folder_client_stub.call_rpc_count - end - end - - def test_delete_team_folder - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_team_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_team_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_team_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_team_folder_client_stub.call_rpc_count - end - end - - def test_delete_team_folder_tree - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_team_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_team_folder_tree, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_team_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_team_folder_tree({ name: name, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_team_folder_tree name: name, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_team_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_team_folder_tree_client_stub.call_rpc_count - end - end - - def test_query_team_folder_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - team_folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_team_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_team_folder_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, request - assert_equal "hello world", request["team_folder"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_team_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_team_folder_contents_client_stub.call_rpc_count - end - end - - def test_search_team_folders - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - search_team_folders_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :search_team_folders, name - assert_kind_of ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, request - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, search_team_folders_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, search_team_folders_client_stub.call_rpc_count - end - end - - def test_get_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_folder_client_stub.call_rpc_count - end - end - - def test_create_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - folder = {} - - create_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateFolderRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_folder({ parent: parent, folder: folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_folder parent: parent, folder: folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_folder({ parent: parent, folder: folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_folder_client_stub.call_rpc_count - end - end - - def test_update_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - folder = {} - - update_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateFolderRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_folder({ update_mask: update_mask, folder: folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_folder update_mask: update_mask, folder: folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_folder({ update_mask: update_mask, folder: folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_folder_client_stub.call_rpc_count - end - end - - def test_delete_folder - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_folder_client_stub.call_rpc_count - end - end - - def test_delete_folder_tree - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_folder_tree, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_folder_tree({ name: name, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_folder_tree name: name, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_folder_tree_client_stub.call_rpc_count - end - end - - def test_query_folder_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_folder_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, request - assert_equal "hello world", request["folder"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_folder_contents_client_stub.call_rpc_count - end - end - - def test_query_user_root_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_user_root_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_user_root_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, request - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_user_root_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_user_root_contents_client_stub.call_rpc_count - end - end - - def test_move_folder - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveFolderRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["destination_containing_folder"] - assert request.has_destination_containing_folder? - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_folder name: name, destination_containing_folder: destination_containing_folder do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_folder_client_stub.call_rpc_count - end - end - - def test_list_repositories - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_repositories_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_repositories, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListRepositoriesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_repositories_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_repositories_client_stub.call_rpc_count - end - end - - def test_get_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetRepositoryRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_repository({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_repository name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_repository({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_repository_client_stub.call_rpc_count - end - end - - def test_create_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - repository = {} - repository_id = "hello world" - - create_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateRepositoryRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] - assert_equal "hello world", request["repository_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_repository parent: parent, repository: repository, repository_id: repository_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_repository_client_stub.call_rpc_count - end - end - - def test_update_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - repository = {} - - update_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_repository({ update_mask: update_mask, repository: repository }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_repository update_mask: update_mask, repository: repository do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_repository({ update_mask: update_mask, repository: repository }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_repository_client_stub.call_rpc_count - end - end - - def test_delete_repository - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_repository({ name: name, force: force }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_repository name: name, force: force do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_repository({ name: name, force: force }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_repository_client_stub.call_rpc_count - end - end - - def test_move_repository - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveRepositoryRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["destination_containing_folder"] - assert request.has_destination_containing_folder? - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_repository name: name, destination_containing_folder: destination_containing_folder do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_repository_client_stub.call_rpc_count - end - end - - def test_commit_repository_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_metadata = {} - required_head_commit_sha = "hello world" - file_operations = {} - - commit_repository_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :commit_repository_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitMetadata), request["commit_metadata"] - assert_equal "hello world", request["required_head_commit_sha"] - assert_equal({}, request["file_operations"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, commit_repository_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, commit_repository_changes_client_stub.call_rpc_count - end - end - - def test_read_repository_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - - read_repository_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :read_repository_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["commit_sha"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, read_repository_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.read_repository_file name: name, commit_sha: commit_sha, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, read_repository_file_client_stub.call_rpc_count - end - end - - def test_query_repository_directory_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - - query_repository_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_repository_directory_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["commit_sha"] - assert_equal "hello world", request["path"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_repository_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_repository_directory_contents_client_stub.call_rpc_count - end - end - - def test_fetch_repository_history - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - fetch_repository_history_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_repository_history, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_repository_history_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_repository_history_client_stub.call_rpc_count - end - end - - def test_compute_repository_access_token_status - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - compute_repository_access_token_status_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :compute_repository_access_token_status, name - assert_kind_of ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, compute_repository_access_token_status_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.compute_repository_access_token_status({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.compute_repository_access_token_status name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.compute_repository_access_token_status({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, compute_repository_access_token_status_client_stub.call_rpc_count - end - end - - def test_fetch_remote_branches - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_remote_branches_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_remote_branches, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_remote_branches_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_remote_branches({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_remote_branches name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_remote_branches({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_remote_branches_client_stub.call_rpc_count - end - end - - def test_list_workspaces - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workspaces_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workspaces, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkspacesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workspaces_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workspaces_client_stub.call_rpc_count - end - end - - def test_get_workspace - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkspaceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workspace({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workspace name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workspace({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workspace_client_stub.call_rpc_count - end - end - - def test_create_workspace - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workspace = {} - workspace_id = "hello world" - - create_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Workspace), request["workspace"] - assert_equal "hello world", request["workspace_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workspace_client_stub.call_rpc_count - end - end - - def test_delete_workspace - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workspace({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workspace name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workspace({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workspace_client_stub.call_rpc_count - end - end - - def test_install_npm_packages - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - - install_npm_packages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :install_npm_packages, name - assert_kind_of ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, request - assert_equal "hello world", request["workspace"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, install_npm_packages_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.install_npm_packages({ workspace: workspace }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.install_npm_packages workspace: workspace do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.install_npm_packages({ workspace: workspace }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, install_npm_packages_client_stub.call_rpc_count - end - end - - def test_pull_git_commits - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - author = {} - - pull_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :pull_git_commits, name - assert_kind_of ::Google::Cloud::Dataform::V1::PullGitCommitsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, pull_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, pull_git_commits_client_stub.call_rpc_count - end - end - - def test_push_git_commits - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - push_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :push_git_commits, name - assert_kind_of ::Google::Cloud::Dataform::V1::PushGitCommitsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, push_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.push_git_commits({ name: name, remote_branch: remote_branch }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.push_git_commits name: name, remote_branch: remote_branch do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.push_git_commits({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, push_git_commits_client_stub.call_rpc_count - end - end - - def test_fetch_file_git_statuses - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_file_git_statuses_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_file_git_statuses, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_file_git_statuses_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_file_git_statuses({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_file_git_statuses name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_file_git_statuses({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_file_git_statuses_client_stub.call_rpc_count - end - end - - def test_fetch_git_ahead_behind - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - fetch_git_ahead_behind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_git_ahead_behind, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_git_ahead_behind_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_git_ahead_behind_client_stub.call_rpc_count - end - end - - def test_commit_workspace_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - author = {} - commit_message = "hello world" - paths = ["hello world"] - - commit_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :commit_workspace_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] - assert_equal "hello world", request["commit_message"] - assert_equal ["hello world"], request["paths"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, commit_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, commit_workspace_changes_client_stub.call_rpc_count - end - end - - def test_reset_workspace_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - paths = ["hello world"] - clean = true - - reset_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :reset_workspace_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal ["hello world"], request["paths"] - assert_equal true, request["clean"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, reset_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.reset_workspace_changes name: name, paths: paths, clean: clean do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, reset_workspace_changes_client_stub.call_rpc_count - end - end - - def test_fetch_file_diff - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - fetch_file_diff_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_file_diff, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileDiffRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_file_diff_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_file_diff({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_file_diff workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_file_diff({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_file_diff_client_stub.call_rpc_count - end - end - - def test_query_directory_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED - - query_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_directory_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_directory_contents_client_stub.call_rpc_count - end - end - - def test_search_files - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - search_files_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :search_files, name - assert_kind_of ::Google::Cloud::Dataform::V1::SearchFilesRequest, request - assert_equal "hello world", request["workspace"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, search_files_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, search_files_client_stub.call_rpc_count - end - end - - def test_make_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - make_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :make_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::MakeDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, make_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.make_directory({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.make_directory workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.make_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, make_directory_client_stub.call_rpc_count - end - end - - def test_remove_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :remove_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, remove_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.remove_directory({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.remove_directory workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.remove_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, remove_directory_client_stub.call_rpc_count - end - end - - def test_move_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["new_path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_directory workspace: workspace, path: path, new_path: new_path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_directory({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_directory_client_stub.call_rpc_count - end - end - - def test_read_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReadFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - revision = "hello world" - - read_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :read_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::ReadFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["revision"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, read_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.read_file({ workspace: workspace, path: path, revision: revision }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.read_file workspace: workspace, path: path, revision: revision do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.read_file({ workspace: workspace, path: path, revision: revision }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, read_file_client_stub.call_rpc_count - end - end - - def test_remove_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :remove_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::RemoveFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, remove_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.remove_file({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.remove_file workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.remove_file({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, remove_file_client_stub.call_rpc_count - end - end - - def test_move_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MoveFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["new_path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_file workspace: workspace, path: path, new_path: new_path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_file({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_file_client_stub.call_rpc_count - end - end - - def test_write_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WriteFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - contents = "hello world" - - write_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :write_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::WriteFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["contents"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, write_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.write_file({ workspace: workspace, path: path, contents: contents }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.write_file workspace: workspace, path: path, contents: contents do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.write_file({ workspace: workspace, path: path, contents: contents }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, write_file_client_stub.call_rpc_count - end - end - - def test_list_release_configs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_release_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_release_configs, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_release_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_release_configs_client_stub.call_rpc_count - end - end - - def test_get_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_release_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_release_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_release_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_release_config_client_stub.call_rpc_count - end - end - - def test_create_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_config = {} - release_config_id = "hello world" - - create_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] - assert_equal "hello world", request["release_config_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_release_config_client_stub.call_rpc_count - end - end - - def test_update_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - release_config = {} - - update_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_release_config update_mask: update_mask, release_config: release_config do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_release_config({ update_mask: update_mask, release_config: release_config }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_release_config_client_stub.call_rpc_count - end - end - - def test_delete_release_config - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_release_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_release_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_release_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_release_config_client_stub.call_rpc_count - end - end - - def test_list_compilation_results - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_compilation_results_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_compilation_results, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_compilation_results_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_compilation_results_client_stub.call_rpc_count - end - end - - def test_get_compilation_result - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_compilation_result, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetCompilationResultRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_compilation_result({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_compilation_result name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_compilation_result({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_compilation_result_client_stub.call_rpc_count - end - end - - def test_create_compilation_result - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - compilation_result = {} - - create_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_compilation_result, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CompilationResult), request["compilation_result"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_compilation_result parent: parent, compilation_result: compilation_result do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_compilation_result_client_stub.call_rpc_count - end - end - - def test_query_compilation_result_actions - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - query_compilation_result_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_compilation_result_actions, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_compilation_result_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_compilation_result_actions_client_stub.call_rpc_count - end - end - - def test_list_workflow_configs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_workflow_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workflow_configs, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workflow_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workflow_configs_client_stub.call_rpc_count - end - end - - def test_get_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workflow_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workflow_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workflow_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workflow_config_client_stub.call_rpc_count - end - end - - def test_create_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_config = {} - workflow_config_id = "hello world" - - create_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] - assert_equal "hello world", request["workflow_config_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workflow_config_client_stub.call_rpc_count - end - end - - def test_update_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - workflow_config = {} - - update_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_workflow_config_client_stub.call_rpc_count - end - end - - def test_delete_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workflow_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workflow_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workflow_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workflow_config_client_stub.call_rpc_count - end - end - - def test_list_workflow_invocations - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workflow_invocations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workflow_invocations, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workflow_invocations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workflow_invocations_client_stub.call_rpc_count - end - end - - def test_get_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_create_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_invocation = {} - - create_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowInvocation), request["workflow_invocation"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_delete_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_cancel_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_query_workflow_invocation_actions - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - query_workflow_invocation_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_workflow_invocation_actions, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_workflow_invocation_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_workflow_invocation_actions_client_stub.call_rpc_count - end - end - - def test_get_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Config.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_config_client_stub.call_rpc_count - end - end - - def test_update_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Config.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - config = {} - update_mask = {} - - update_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Config), request["config"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_config({ config: config, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_config config: config, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_config({ config: config, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_config_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" From 1d6ceb43b3f5b7c950b7f630633b0a1ae93cbf4f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Mar 2026 21:06:56 +0000 Subject: [PATCH 3/6] feat: publish client batch config schema feat: publish new error reasons docs: fix documentation formatting docs: update various comments docs: update license year PiperOrigin-RevId: 889289393 Source-Link: https://github.com/googleapis/googleapis/commit/94bc991b3f1df58bc841801631715894a7ac5e28 Source-Link: https://github.com/googleapis/googleapis-gen/commit/db7143a338a7c75839b4698cb3ea6f1013b4c3c7 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxLy5Pd2xCb3QueWFtbCIsImgiOiJkYjcxNDNhMzM4YTdjNzU4MzliNDY5OGNiM2VhNmYxMDEzYjRjM2M3In0= --- .../google-cloud-dataform-v1/.gitignore | 22 + .../.repo-metadata.json | 17 + .../google-cloud-dataform-v1/.rubocop.yml | 33 + .../google-cloud-dataform-v1/.toys.rb | 28 + .../google-cloud-dataform-v1/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../google-cloud-dataform-v1/CHANGELOG.md | 2 + .../google-cloud-dataform-v1/Gemfile | 14 + .../google-cloud-dataform-v1/LICENSE.md | 201 + .../google-cloud-dataform-v1/README.md | 154 + .../google-cloud-dataform-v1/Rakefile | 169 + .../gapic_metadata.json | 383 + .../google-cloud-dataform-v1.gemspec | 30 + .../lib/google-cloud-dataform-v1.rb | 22 + .../lib/google/cloud/dataform/v1.rb | 45 + .../cloud/dataform/v1/bindings_override.rb | 75 + .../lib/google/cloud/dataform/v1/dataform.rb | 57 + .../cloud/dataform/v1/dataform/client.rb | 7794 +++++++++++++++++ .../cloud/dataform/v1/dataform/credentials.rb | 48 + .../cloud/dataform/v1/dataform/operations.rb | 841 ++ .../cloud/dataform/v1/dataform/paths.rb | 311 + .../google/cloud/dataform/v1/dataform/rest.rb | 55 + .../cloud/dataform/v1/dataform/rest/client.rb | 7248 +++++++++++++++ .../dataform/v1/dataform/rest/operations.rb | 925 ++ .../dataform/v1/dataform/rest/service_stub.rb | 4636 ++++++++++ .../google/cloud/dataform/v1/dataform_pb.rb | 216 + .../cloud/dataform/v1/dataform_services_pb.rb | 234 + .../lib/google/cloud/dataform/v1/rest.rb | 38 + .../lib/google/cloud/dataform/v1/version.rb | 28 + .../lib/google/longrunning.rb | 41 + .../google/longrunning/bindings_override.rb | 71 + .../lib/google/longrunning/operations.rb | 59 + .../google/longrunning/operations/client.rb | 952 ++ .../longrunning/operations/credentials.rb | 40 + .../longrunning/operations/operations.rb | 837 ++ .../lib/google/longrunning/operations/rest.rb | 57 + .../longrunning/operations/rest/client.rb | 776 ++ .../longrunning/operations/rest/operations.rb | 921 ++ .../operations/rest/service_stub.rb | 322 + .../lib/google/longrunning/rest.rb | 34 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 589 ++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../google/cloud/dataform/v1/dataform.rb | 3308 +++++++ .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/expr.rb | 75 + .../proto_docs/google/type/interval.rb | 45 + .../google-cloud-dataform-v1/snippets/Gemfile | 32 + .../dataform/cancel_workflow_invocation.rb | 47 + .../dataform/commit_repository_changes.rb | 47 + .../dataform/commit_workspace_changes.rb | 47 + .../compute_repository_access_token_status.rb | 47 + .../dataform/create_compilation_result.rb | 47 + .../snippets/dataform/create_folder.rb | 47 + .../dataform/create_release_config.rb | 47 + .../snippets/dataform/create_repository.rb | 47 + .../snippets/dataform/create_team_folder.rb | 47 + .../dataform/create_workflow_config.rb | 47 + .../dataform/create_workflow_invocation.rb | 47 + .../snippets/dataform/create_workspace.rb | 47 + .../snippets/dataform/delete_folder.rb | 47 + .../snippets/dataform/delete_folder_tree.rb | 54 + .../dataform/delete_release_config.rb | 47 + .../snippets/dataform/delete_repository.rb | 47 + .../snippets/dataform/delete_team_folder.rb | 47 + .../dataform/delete_team_folder_tree.rb | 54 + .../dataform/delete_workflow_config.rb | 47 + .../dataform/delete_workflow_invocation.rb | 47 + .../snippets/dataform/delete_workspace.rb | 47 + .../snippets/dataform/fetch_file_diff.rb | 47 + .../dataform/fetch_file_git_statuses.rb | 47 + .../dataform/fetch_git_ahead_behind.rb | 47 + .../dataform/fetch_remote_branches.rb | 47 + .../dataform/fetch_repository_history.rb | 51 + .../dataform/get_compilation_result.rb | 47 + .../snippets/dataform/get_config.rb | 47 + .../snippets/dataform/get_folder.rb | 47 + .../snippets/dataform/get_iam_policy.rb | 47 + .../snippets/dataform/get_release_config.rb | 47 + .../snippets/dataform/get_repository.rb | 47 + .../snippets/dataform/get_team_folder.rb | 47 + .../snippets/dataform/get_workflow_config.rb | 47 + .../dataform/get_workflow_invocation.rb | 47 + .../snippets/dataform/get_workspace.rb | 47 + .../snippets/dataform/install_npm_packages.rb | 47 + .../dataform/list_compilation_results.rb | 51 + .../snippets/dataform/list_release_configs.rb | 51 + .../snippets/dataform/list_repositories.rb | 51 + .../dataform/list_workflow_configs.rb | 51 + .../dataform/list_workflow_invocations.rb | 51 + .../snippets/dataform/list_workspaces.rb | 51 + .../snippets/dataform/make_directory.rb | 47 + .../snippets/dataform/move_directory.rb | 47 + .../snippets/dataform/move_file.rb | 47 + .../snippets/dataform/move_folder.rb | 54 + .../snippets/dataform/move_repository.rb | 54 + .../snippets/dataform/pull_git_commits.rb | 47 + .../snippets/dataform/push_git_commits.rb | 47 + .../query_compilation_result_actions.rb | 51 + .../dataform/query_directory_contents.rb | 51 + .../dataform/query_folder_contents.rb | 51 + .../query_repository_directory_contents.rb | 51 + .../dataform/query_team_folder_contents.rb | 51 + .../dataform/query_user_root_contents.rb | 51 + .../query_workflow_invocation_actions.rb | 51 + .../snippets/dataform/read_file.rb | 47 + .../snippets/dataform/read_repository_file.rb | 47 + .../snippets/dataform/remove_directory.rb | 47 + .../snippets/dataform/remove_file.rb | 47 + .../dataform/reset_workspace_changes.rb | 47 + .../snippets/dataform/search_files.rb | 51 + .../snippets/dataform/search_team_folders.rb | 51 + .../snippets/dataform/set_iam_policy.rb | 47 + .../snippets/dataform/test_iam_permissions.rb | 47 + .../snippets/dataform/update_config.rb | 47 + .../snippets/dataform/update_folder.rb | 47 + .../dataform/update_release_config.rb | 47 + .../snippets/dataform/update_repository.rb | 47 + .../snippets/dataform/update_team_folder.rb | 47 + .../dataform/update_workflow_config.rb | 47 + .../snippets/dataform/write_file.rb | 47 + .../snippets/operations/cancel_operation.rb | 47 + .../snippets/operations/delete_operation.rb | 47 + .../snippets/operations/get_operation.rb | 54 + .../snippets/operations/list_operations.rb | 51 + .../snippets/operations/wait_operation.rb | 54 + ...pet_metadata_google.cloud.dataform.v1.json | 2935 +++++++ .../snippet_metadata_google.longrunning.json | 215 + .../dataform/v1/dataform_operations_test.rb | 400 + .../cloud/dataform/v1/dataform_paths_test.rb | 211 + .../cloud/dataform/v1/dataform_rest_test.rb | 4148 +++++++++ .../google/cloud/dataform/v1/dataform_test.rb | 4668 ++++++++++ .../longrunning/operations_operations_test.rb | 400 + .../longrunning/operations_rest_test.rb | 319 + .../google/longrunning/operations_test.rb | 433 + .../google-cloud-dataform-v1/test/helper.rb | 26 + 144 files changed, 50709 insertions(+) create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.gitignore create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.toys.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.yardopts create mode 100644 owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/README.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/Rakefile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/version.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/helper.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/.gitignore b/owl-bot-staging/google-cloud-dataform-v1/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json new file mode 100644 index 000000000000..637d61a979b2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_id": "dataform.googleapis.com", + "api_shortname": "dataform", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest", + "distribution_name": "google-cloud-dataform-v1", + "is_cloud": true, + "language": "ruby", + "name": "dataform", + "name_pretty": "Dataform V1 API", + "product_documentation": "https://cloud.google.com/dataform/docs/overview", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details.", + "ruby-cloud-product-url": "https://cloud.google.com/dataform/docs/overview", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml new file mode 100644 index 000000000000..6f84a6d0a78b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-dataform-v1.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-dataform-v1.rb" diff --git a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/.yardopts b/owl-bot-staging/google-cloud-dataform-v1/.yardopts new file mode 100644 index 000000000000..f98df5dcdd6e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Dataform V1 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md new file mode 100644 index 000000000000..91f83b42e5fa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-dataform-v1 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-dataform-v1 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/dataform/v1" + +client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/dataform/v1" + +::Google::Longrunning::Operations::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Longrunning::Operations::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-dataform-v1 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/dataform/v1" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Longrunning::Operations::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-dataform-v1/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataform-v1/README.md b/owl-bot-staging/google-cloud-dataform-v1/README.md new file mode 100644 index 000000000000..bd989cf181ba --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Dataform V1 API + +Service to develop, version control, and operationalize SQL pipelines in BigQuery. + +Service to develop, version control, and operationalize SQL pipelines in BigQuery. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Dataform V1 API. Most users should consider using +the main client gem, +[google-cloud-dataform](https://rubygems.org/gems/google-cloud-dataform). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-dataform-v1 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/dataform.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/dataform/v1" + +client = ::Google::Longrunning::Operations::Client.new +request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...) +response = client.list_operations request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/dataform/docs/overview) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/dataform/v1" +require "logger" + +client = ::Google::Longrunning::Operations::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-dataform`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-dataform-v1`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-dataform`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-dataform-v1`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataform-v1/Rakefile b/owl-bot-staging/google-cloud-dataform-v1/Rakefile new file mode 100644 index 000000000000..5a65a0a061e8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-dataform-v1 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["GOOGLE_CLOUD_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/longrunning/operations/credentials" + ::Google::Longrunning::Operations::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["GOOGLE_CLOUD_PROJECT"] = project + ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project + ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-dataform-v1 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataform-v1 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataform-v1 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-dataform-v1 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-dataform-v1" + header "google-cloud-dataform-v1 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-dataform-v1 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-dataform-v1 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-dataform-v1 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-dataform-v1 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json new file mode 100644 index 000000000000..da5082c37f30 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json @@ -0,0 +1,383 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.cloud.dataform.v1", + "libraryPackage": "::Google::Cloud::Dataform::V1", + "services": { + "Dataform": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataform::V1::Dataform::Client", + "rpcs": { + "GetTeamFolder": { + "methods": [ + "get_team_folder" + ] + }, + "CreateTeamFolder": { + "methods": [ + "create_team_folder" + ] + }, + "UpdateTeamFolder": { + "methods": [ + "update_team_folder" + ] + }, + "DeleteTeamFolder": { + "methods": [ + "delete_team_folder" + ] + }, + "DeleteTeamFolderTree": { + "methods": [ + "delete_team_folder_tree" + ] + }, + "QueryTeamFolderContents": { + "methods": [ + "query_team_folder_contents" + ] + }, + "SearchTeamFolders": { + "methods": [ + "search_team_folders" + ] + }, + "GetFolder": { + "methods": [ + "get_folder" + ] + }, + "CreateFolder": { + "methods": [ + "create_folder" + ] + }, + "UpdateFolder": { + "methods": [ + "update_folder" + ] + }, + "DeleteFolder": { + "methods": [ + "delete_folder" + ] + }, + "DeleteFolderTree": { + "methods": [ + "delete_folder_tree" + ] + }, + "QueryFolderContents": { + "methods": [ + "query_folder_contents" + ] + }, + "QueryUserRootContents": { + "methods": [ + "query_user_root_contents" + ] + }, + "MoveFolder": { + "methods": [ + "move_folder" + ] + }, + "ListRepositories": { + "methods": [ + "list_repositories" + ] + }, + "GetRepository": { + "methods": [ + "get_repository" + ] + }, + "CreateRepository": { + "methods": [ + "create_repository" + ] + }, + "UpdateRepository": { + "methods": [ + "update_repository" + ] + }, + "DeleteRepository": { + "methods": [ + "delete_repository" + ] + }, + "MoveRepository": { + "methods": [ + "move_repository" + ] + }, + "CommitRepositoryChanges": { + "methods": [ + "commit_repository_changes" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "read_repository_file" + ] + }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "query_repository_directory_contents" + ] + }, + "FetchRepositoryHistory": { + "methods": [ + "fetch_repository_history" + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "methods": [ + "compute_repository_access_token_status" + ] + }, + "FetchRemoteBranches": { + "methods": [ + "fetch_remote_branches" + ] + }, + "ListWorkspaces": { + "methods": [ + "list_workspaces" + ] + }, + "GetWorkspace": { + "methods": [ + "get_workspace" + ] + }, + "CreateWorkspace": { + "methods": [ + "create_workspace" + ] + }, + "DeleteWorkspace": { + "methods": [ + "delete_workspace" + ] + }, + "InstallNpmPackages": { + "methods": [ + "install_npm_packages" + ] + }, + "PullGitCommits": { + "methods": [ + "pull_git_commits" + ] + }, + "PushGitCommits": { + "methods": [ + "push_git_commits" + ] + }, + "FetchFileGitStatuses": { + "methods": [ + "fetch_file_git_statuses" + ] + }, + "FetchGitAheadBehind": { + "methods": [ + "fetch_git_ahead_behind" + ] + }, + "CommitWorkspaceChanges": { + "methods": [ + "commit_workspace_changes" + ] + }, + "ResetWorkspaceChanges": { + "methods": [ + "reset_workspace_changes" + ] + }, + "FetchFileDiff": { + "methods": [ + "fetch_file_diff" + ] + }, + "QueryDirectoryContents": { + "methods": [ + "query_directory_contents" + ] + }, + "SearchFiles": { + "methods": [ + "search_files" + ] + }, + "MakeDirectory": { + "methods": [ + "make_directory" + ] + }, + "RemoveDirectory": { + "methods": [ + "remove_directory" + ] + }, + "MoveDirectory": { + "methods": [ + "move_directory" + ] + }, + "ReadFile": { + "methods": [ + "read_file" + ] + }, + "RemoveFile": { + "methods": [ + "remove_file" + ] + }, + "MoveFile": { + "methods": [ + "move_file" + ] + }, + "WriteFile": { + "methods": [ + "write_file" + ] + }, + "ListReleaseConfigs": { + "methods": [ + "list_release_configs" + ] + }, + "GetReleaseConfig": { + "methods": [ + "get_release_config" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "create_release_config" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "update_release_config" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "delete_release_config" + ] + }, + "ListCompilationResults": { + "methods": [ + "list_compilation_results" + ] + }, + "GetCompilationResult": { + "methods": [ + "get_compilation_result" + ] + }, + "CreateCompilationResult": { + "methods": [ + "create_compilation_result" + ] + }, + "QueryCompilationResultActions": { + "methods": [ + "query_compilation_result_actions" + ] + }, + "ListWorkflowConfigs": { + "methods": [ + "list_workflow_configs" + ] + }, + "GetWorkflowConfig": { + "methods": [ + "get_workflow_config" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "create_workflow_config" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "update_workflow_config" + ] + }, + "DeleteWorkflowConfig": { + "methods": [ + "delete_workflow_config" + ] + }, + "ListWorkflowInvocations": { + "methods": [ + "list_workflow_invocations" + ] + }, + "GetWorkflowInvocation": { + "methods": [ + "get_workflow_invocation" + ] + }, + "CreateWorkflowInvocation": { + "methods": [ + "create_workflow_invocation" + ] + }, + "DeleteWorkflowInvocation": { + "methods": [ + "delete_workflow_invocation" + ] + }, + "CancelWorkflowInvocation": { + "methods": [ + "cancel_workflow_invocation" + ] + }, + "QueryWorkflowInvocationActions": { + "methods": [ + "query_workflow_invocation_actions" + ] + }, + "GetConfig": { + "methods": [ + "get_config" + ] + }, + "UpdateConfig": { + "methods": [ + "update_config" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec new file mode 100644 index 000000000000..76010660b167 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec @@ -0,0 +1,30 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/dataform/v1/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-dataform-v1" + gem.version = Google::Cloud::Dataform::V1::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details." + gem.summary = "Service to develop, version control, and operationalize SQL pipelines in BigQuery." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "google-cloud-location", "~> 1.0" + gem.add_dependency "google-iam-v1", "~> 1.3" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb new file mode 100644 index 000000000000..015820e39535 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/dataform/v1" +# require "google/longrunning" diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb new file mode 100644 index 000000000000..7a6071098191 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataform/v1/dataform" +require "google/cloud/dataform/v1/version" + +module Google + module Cloud + module Dataform + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/dataform/v1" + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/dataform/v1" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module V1 + end + end + end +end + +helper_path = ::File.join __dir__, "v1", "_helpers.rb" +require "google/cloud/dataform/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb new file mode 100644 index 000000000000..655e4a1eab49 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" + +module Google + module Cloud + module Dataform + ## + # @example Loading just the REST part of this package, including all its services, and instantiating a REST client + # + # require "google/cloud/dataform/v1/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module V1 + ## + # @private + # Initialize the mixin bindings configuration + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + + default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config + default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ + + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}/locations", + matches: [ + ["name", %r{^projects/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config + end + yield @configure if block_given? + @configure + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb new file mode 100644 index 000000000000..ac1adbd0da42 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" + +require "google/cloud/dataform/v1/dataform/credentials" +require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/operations" +require "google/cloud/dataform/v1/dataform/client" +require "google/cloud/dataform/v1/dataform/rest" + +module Google + module Cloud + module Dataform + module V1 + ## + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataform/v1/dataform" + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataform/v1/dataform/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module Dataform + end + end + end + end +end + +helper_path = ::File.join __dir__, "dataform", "helpers.rb" +require "google/cloud/dataform/v1/dataform/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb new file mode 100644 index 000000000000..632bdd44803f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb @@ -0,0 +1,7794 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/location" +require "google/iam/v1" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + ## + # Client for the Dataform service. + # + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dataform_stub + + ## + # Configure the Dataform Client class. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Dataform clients + # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dataform_stub.universe_domain + end + + ## + # Create a new Dataform client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Dataform client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/cloud/dataform/v1/dataform_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @dataform_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataform::V1::Dataform::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @dataform_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder&.name + header_params["team_folder.name"] = request.team_folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder + header_params["team_folder"] = request.team_folder + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.folder&.name + header_params["folder.name"] = request.folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.folder + header_params["folder"] = request.folder + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. + # + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Folder to a new Folder, TeamFolder, or the root location. + # + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Repositories in a given project and location. + # + # **Note:** *This method can return repositories not shown in the [Dataform + # UI](https://console.cloud.google.com/bigquery/dataform)*. + # + # @overload list_repositories(request, options = nil) + # Pass arguments to `list_repositories` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_repositories` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + # + # # Call the list_repositories method. + # result = client.list_repositories request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + # p item + # end + # + def list_repositories request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_repositories.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_repositories.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Repository. + # + # @overload get_repository(request, options = nil) + # Pass arguments to `get_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_repository(name: nil) + # Pass arguments to `get_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + # + # # Call the get_repository method. + # result = client.get_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def get_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Repository in a given project and location. + # + # @overload create_repository(request, options = nil) + # Pass arguments to `create_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_repository(parent: nil, repository: nil, repository_id: nil) + # Pass arguments to `create_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to create. + # @param repository_id [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + # + # # Call the create_repository method. + # result = client.create_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def create_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Repository. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_repository(request, options = nil) + # Pass arguments to `update_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_repository(update_mask: nil, repository: nil) + # Pass arguments to `update_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + # + # # Call the update_repository method. + # result = client.update_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def update_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.repository&.name + header_params["repository.name"] = request.repository.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Repository. + # + # @overload delete_repository(request, options = nil) + # Pass arguments to `delete_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_repository(name: nil, force: nil) + # Pass arguments to `delete_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param force [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + # + # # Call the delete_repository method. + # result = client.delete_repository request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit to a Repository. The Repository must not have a value + # for `git_remote_settings.url`. + # + # @overload commit_repository_changes(request, options = nil) + # Pass arguments to `commit_repository_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) + # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] + # Required. The changes to commit to the repository. + # @param required_head_commit_sha [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + # + # # Call the commit_repository_changes method. + # result = client.commit_repository_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + # p result + # + def commit_repository_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.commit_repository_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.commit_repository_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Repository). The Repository + # must not have a value for `git_remote_settings.url`. + # + # @overload read_repository_file(request, options = nil) + # Pass arguments to `read_repository_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) + # Pass arguments to `read_repository_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @param path [::String] + # Required. Full file path to read including filename, from repository root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + # + # # Call the read_repository_file method. + # result = client.read_repository_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + # p result + # + def read_repository_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.read_repository_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.read_repository_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Repository directory. The Repository must + # not have a value for `git_remote_settings.url`. + # + # @overload query_repository_directory_contents(request, options = nil) + # Pass arguments to `query_repository_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + # + # # Call the query_repository_directory_contents method. + # result = client.query_repository_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_repository_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's history of commits. The Repository must not have a + # value for `git_remote_settings.url`. + # + # @overload fetch_repository_history(request, options = nil) + # Pass arguments to `fetch_repository_history` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param page_size [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + # + # # Call the fetch_repository_history method. + # result = client.fetch_repository_history request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + # p item + # end + # + def fetch_repository_history request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_repository_history.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_repository_history.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Computes a Repository's Git access token status. + # + # @overload compute_repository_access_token_status(request, options = nil) + # Pass arguments to `compute_repository_access_token_status` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload compute_repository_access_token_status(name: nil) + # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + # + # # Call the compute_repository_access_token_status method. + # result = client.compute_repository_access_token_status request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + # p result + # + def compute_repository_access_token_status request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, + metadata: metadata, + retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's remote branches. + # + # @overload fetch_remote_branches(request, options = nil) + # Pass arguments to `fetch_remote_branches` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_remote_branches(name: nil) + # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + # + # # Call the fetch_remote_branches method. + # result = client.fetch_remote_branches request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + # p result + # + def fetch_remote_branches request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_remote_branches.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_remote_branches.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Workspaces in a given Repository. + # + # @overload list_workspaces(request, options = nil) + # Pass arguments to `list_workspaces` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workspaces` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + # + # # Call the list_workspaces method. + # result = client.list_workspaces request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + # p item + # end + # + def list_workspaces request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workspaces.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workspaces.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Workspace. + # + # @overload get_workspace(request, options = nil) + # Pass arguments to `get_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workspace(name: nil) + # Pass arguments to `get_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + # + # # Call the get_workspace method. + # result = client.get_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def get_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Workspace in a given Repository. + # + # @overload create_workspace(request, options = nil) + # Pass arguments to `create_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) + # Pass arguments to `create_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] + # Required. The workspace to create. + # @param workspace_id [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + # + # # Call the create_workspace method. + # result = client.create_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def create_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Workspace. + # + # @overload delete_workspace(request, options = nil) + # Pass arguments to `delete_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workspace(name: nil) + # Pass arguments to `delete_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + # + # # Call the delete_workspace method. + # result = client.delete_workspace request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Installs dependency NPM packages (inside a Workspace). + # + # @overload install_npm_packages(request, options = nil) + # Pass arguments to `install_npm_packages` via a request object, either of type + # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload install_npm_packages(workspace: nil) + # Pass arguments to `install_npm_packages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + # + # # Call the install_npm_packages method. + # result = client.install_npm_packages request + # + # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + # p result + # + def install_npm_packages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.install_npm_packages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, + metadata: metadata, + retry_policy: @config.rpcs.install_npm_packages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pulls Git commits from the Repository's remote into a Workspace. + # + # @overload pull_git_commits(request, options = nil) + # Pass arguments to `pull_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) + # Pass arguments to `pull_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + # + # # Call the pull_git_commits method. + # result = client.pull_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + # p result + # + def pull_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.pull_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, + metadata: metadata, + retry_policy: @config.rpcs.pull_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pushes Git commits from a Workspace to the Repository's remote. + # + # @overload push_git_commits(request, options = nil) + # Pass arguments to `push_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload push_git_commits(name: nil, remote_branch: nil) + # Pass arguments to `push_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + # + # # Call the push_git_commits method. + # result = client.push_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + # p result + # + def push_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.push_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, + metadata: metadata, + retry_policy: @config.rpcs.push_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git statuses for the files in a Workspace. + # + # @overload fetch_file_git_statuses(request, options = nil) + # Pass arguments to `fetch_file_git_statuses` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_file_git_statuses(name: nil) + # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + # + # # Call the fetch_file_git_statuses method. + # result = client.fetch_file_git_statuses request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + # p result + # + def fetch_file_git_statuses request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git ahead/behind against a remote branch. + # + # @overload fetch_git_ahead_behind(request, options = nil) + # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) + # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + # + # # Call the fetch_git_ahead_behind method. + # result = client.fetch_git_ahead_behind request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + # p result + # + def fetch_git_ahead_behind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit for uncommitted files in a Workspace. + # + # @overload commit_workspace_changes(request, options = nil) + # Pass arguments to `commit_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) + # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The commit's author. + # @param commit_message [::String] + # Optional. The commit's message. + # @param paths [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + # + # # Call the commit_workspace_changes method. + # result = client.commit_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + # p result + # + def commit_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.commit_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.commit_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a Git reset for uncommitted files in a Workspace. + # + # @overload reset_workspace_changes(request, options = nil) + # Pass arguments to `reset_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) + # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param paths [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @param clean [::Boolean] + # Optional. If set to true, untracked files will be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + # + # # Call the reset_workspace_changes method. + # result = client.reset_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + # p result + # + def reset_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.reset_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.reset_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git diff for an uncommitted file in a Workspace. + # + # @overload fetch_file_diff(request, options = nil) + # Pass arguments to `fetch_file_diff` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_file_diff(workspace: nil, path: nil) + # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + # + # # Call the fetch_file_diff method. + # result = client.fetch_file_diff request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + # p result + # + def fetch_file_diff request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_file_diff.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_file_diff.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Workspace directory. + # + # @overload query_directory_contents(request, options = nil) + # Pass arguments to `query_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `query_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + # + # # Call the query_directory_contents method. + # result = client.query_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Finds the contents of a given Workspace directory by filter. + # + # @overload search_files(request, options = nil) + # Pass arguments to `search_files` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `search_files` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param page_size [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param filter [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + # + # # Call the search_files method. + # result = client.search_files request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + # p item + # end + # + def search_files request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_files.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_files.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_files.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :search_files, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_files, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a directory inside a Workspace. + # + # @overload make_directory(request, options = nil) + # Pass arguments to `make_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload make_directory(workspace: nil, path: nil) + # Pass arguments to `make_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + # + # # Call the make_directory method. + # result = client.make_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + # p result + # + def make_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.make_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.make_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.make_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a directory (inside a Workspace) and all of its contents. + # + # @overload remove_directory(request, options = nil) + # Pass arguments to `remove_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_directory(workspace: nil, path: nil) + # Pass arguments to `remove_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + # + # # Call the remove_directory method. + # result = client.remove_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + # p result + # + def remove_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a directory (inside a Workspace), and all of its contents, to a new + # location. + # + # @overload move_directory(request, options = nil) + # Pass arguments to `move_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_directory(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @param new_path [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + # + # # Call the move_directory method. + # result = client.move_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + # p result + # + def move_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Workspace). + # + # @overload read_file(request, options = nil) + # Pass arguments to `read_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload read_file(workspace: nil, path: nil, revision: nil) + # Pass arguments to `read_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param revision [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadFileRequest.new + # + # # Call the read_file method. + # result = client.read_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + # p result + # + def read_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.read_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.read_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.read_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :read_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a file (inside a Workspace). + # + # @overload remove_file(request, options = nil) + # Pass arguments to `remove_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_file(workspace: nil, path: nil) + # Pass arguments to `remove_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + # + # # Call the remove_file method. + # result = client.remove_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + # p result + # + def remove_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a file (inside a Workspace) to a new location. + # + # @overload move_file(request, options = nil) + # Pass arguments to `move_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_file(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param new_path [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFileRequest.new + # + # # Call the move_file method. + # result = client.move_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + # p result + # + def move_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Writes to a file (inside a Workspace). + # + # @overload write_file(request, options = nil) + # Pass arguments to `write_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload write_file(workspace: nil, path: nil, contents: nil) + # Pass arguments to `write_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file. + # @param contents [::String] + # Required. The file's contents. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::WriteFileRequest.new + # + # # Call the write_file method. + # result = client.write_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + # p result + # + def write_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.write_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.write_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.write_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :write_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ReleaseConfigs in a given Repository. + # + # @overload list_release_configs(request, options = nil) + # Pass arguments to `list_release_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_release_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + # + # # Call the list_release_configs method. + # result = client.list_release_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + # p item + # end + # + def list_release_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_release_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_release_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single ReleaseConfig. + # + # @overload get_release_config(request, options = nil) + # Pass arguments to `get_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_release_config(name: nil) + # Pass arguments to `get_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + # + # # Call the get_release_config method. + # result = client.get_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def get_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ReleaseConfig in a given Repository. + # + # @overload create_release_config(request, options = nil) + # Pass arguments to `create_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) + # Pass arguments to `create_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to create. + # @param release_config_id [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + # + # # Call the create_release_config method. + # result = client.create_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def create_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single ReleaseConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_release_config(request, options = nil) + # Pass arguments to `update_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_release_config(update_mask: nil, release_config: nil) + # Pass arguments to `update_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + # + # # Call the update_release_config method. + # result = client.update_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def update_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.release_config&.name + header_params["release_config.name"] = request.release_config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ReleaseConfig. + # + # @overload delete_release_config(request, options = nil) + # Pass arguments to `delete_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_release_config(name: nil) + # Pass arguments to `delete_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + # + # # Call the delete_release_config method. + # result = client.delete_release_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CompilationResults in a given Repository. + # + # @overload list_compilation_results(request, options = nil) + # Pass arguments to `list_compilation_results` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_compilation_results` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + # + # # Call the list_compilation_results method. + # result = client.list_compilation_results request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + # p item + # end + # + def list_compilation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_compilation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_compilation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single CompilationResult. + # + # @overload get_compilation_result(request, options = nil) + # Pass arguments to `get_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_compilation_result(name: nil) + # Pass arguments to `get_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + # + # # Call the get_compilation_result method. + # result = client.get_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def get_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new CompilationResult in a given project and location. + # + # @overload create_compilation_result(request, options = nil) + # Pass arguments to `create_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_compilation_result(parent: nil, compilation_result: nil) + # Pass arguments to `create_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] + # Required. The compilation result to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + # + # # Call the create_compilation_result method. + # result = client.create_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def create_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns CompilationResultActions in a given CompilationResult. + # + # @overload query_compilation_result_actions(request, options = nil) + # Pass arguments to `query_compilation_result_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param filter [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + # + # # Call the query_compilation_result_actions method. + # result = client.query_compilation_result_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + # p item + # end + # + def query_compilation_result_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowConfigs in a given Repository. + # + # @overload list_workflow_configs(request, options = nil) + # Pass arguments to `list_workflow_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + # + # # Call the list_workflow_configs method. + # result = client.list_workflow_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + # p item + # end + # + def list_workflow_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workflow_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workflow_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowConfig. + # + # @overload get_workflow_config(request, options = nil) + # Pass arguments to `get_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workflow_config(name: nil) + # Pass arguments to `get_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + # + # # Call the get_workflow_config method. + # result = client.get_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def get_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowConfig in a given Repository. + # + # @overload create_workflow_config(request, options = nil) + # Pass arguments to `create_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) + # Pass arguments to `create_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to create. + # @param workflow_config_id [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + # + # # Call the create_workflow_config method. + # result = client.create_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def create_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single WorkflowConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_workflow_config(request, options = nil) + # Pass arguments to `update_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_workflow_config(update_mask: nil, workflow_config: nil) + # Pass arguments to `update_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + # + # # Call the update_workflow_config method. + # result = client.update_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def update_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workflow_config&.name + header_params["workflow_config.name"] = request.workflow_config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowConfig. + # + # @overload delete_workflow_config(request, options = nil) + # Pass arguments to `delete_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workflow_config(name: nil) + # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + # + # # Call the delete_workflow_config method. + # result = client.delete_workflow_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowInvocations in a given Repository. + # + # @overload list_workflow_invocations(request, options = nil) + # Pass arguments to `list_workflow_invocations` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + # + # # Call the list_workflow_invocations method. + # result = client.list_workflow_invocations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + # p item + # end + # + def list_workflow_invocations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workflow_invocations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workflow_invocations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowInvocation. + # + # @overload get_workflow_invocation(request, options = nil) + # Pass arguments to `get_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workflow_invocation(name: nil) + # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + # + # # Call the get_workflow_invocation method. + # result = client.get_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def get_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowInvocation in a given Repository. + # + # @overload create_workflow_invocation(request, options = nil) + # Pass arguments to `create_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) + # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] + # Required. The workflow invocation resource to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + # + # # Call the create_workflow_invocation method. + # result = client.create_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def create_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowInvocation. + # + # @overload delete_workflow_invocation(request, options = nil) + # Pass arguments to `delete_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workflow_invocation(name: nil) + # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + # + # # Call the delete_workflow_invocation method. + # result = client.delete_workflow_invocation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests cancellation of a running WorkflowInvocation. + # + # @overload cancel_workflow_invocation(request, options = nil) + # Pass arguments to `cancel_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_workflow_invocation(name: nil) + # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + # + # # Call the cancel_workflow_invocation method. + # result = client.cancel_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + # p result + # + def cancel_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns WorkflowInvocationActions in a given WorkflowInvocation. + # + # @overload query_workflow_invocation_actions(request, options = nil) + # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation's name. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + # + # # Call the query_workflow_invocation_actions method. + # result = client.query_workflow_invocation_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + # p item + # end + # + def query_workflow_invocation_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get default config for a given project and location. + # + # @overload get_config(request, options = nil) + # Pass arguments to `get_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_config(name: nil) + # Pass arguments to `get_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The config name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetConfigRequest.new + # + # # Call the get_config method. + # result = client.get_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def get_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update default config for a given project and location. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_config(request, options = nil) + # Pass arguments to `update_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_config(config: nil, update_mask: nil) + # Pass arguments to `update_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] + # Required. The config to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the config. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + # + # # Call the update_config method. + # result = client.update_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def update_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.config&.name + header_params["config.name"] = request.config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Dataform API. + # + # This class represents the configuration for Dataform, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_team_folder to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Dataform API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder + ## + # RPC-specific configuration for `list_repositories` + # @return [::Gapic::Config::Method] + # + attr_reader :list_repositories + ## + # RPC-specific configuration for `get_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :get_repository + ## + # RPC-specific configuration for `create_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :create_repository + ## + # RPC-specific configuration for `update_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :update_repository + ## + # RPC-specific configuration for `delete_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_repository + ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## + # RPC-specific configuration for `commit_repository_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_repository_changes + ## + # RPC-specific configuration for `read_repository_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_repository_file + ## + # RPC-specific configuration for `query_repository_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_repository_directory_contents + ## + # RPC-specific configuration for `fetch_repository_history` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_repository_history + ## + # RPC-specific configuration for `compute_repository_access_token_status` + # @return [::Gapic::Config::Method] + # + attr_reader :compute_repository_access_token_status + ## + # RPC-specific configuration for `fetch_remote_branches` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_remote_branches + ## + # RPC-specific configuration for `list_workspaces` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workspaces + ## + # RPC-specific configuration for `get_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workspace + ## + # RPC-specific configuration for `create_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workspace + ## + # RPC-specific configuration for `delete_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workspace + ## + # RPC-specific configuration for `install_npm_packages` + # @return [::Gapic::Config::Method] + # + attr_reader :install_npm_packages + ## + # RPC-specific configuration for `pull_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :pull_git_commits + ## + # RPC-specific configuration for `push_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :push_git_commits + ## + # RPC-specific configuration for `fetch_file_git_statuses` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_git_statuses + ## + # RPC-specific configuration for `fetch_git_ahead_behind` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_git_ahead_behind + ## + # RPC-specific configuration for `commit_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_workspace_changes + ## + # RPC-specific configuration for `reset_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :reset_workspace_changes + ## + # RPC-specific configuration for `fetch_file_diff` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_diff + ## + # RPC-specific configuration for `query_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_directory_contents + ## + # RPC-specific configuration for `search_files` + # @return [::Gapic::Config::Method] + # + attr_reader :search_files + ## + # RPC-specific configuration for `make_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :make_directory + ## + # RPC-specific configuration for `remove_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_directory + ## + # RPC-specific configuration for `move_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :move_directory + ## + # RPC-specific configuration for `read_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_file + ## + # RPC-specific configuration for `remove_file` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_file + ## + # RPC-specific configuration for `move_file` + # @return [::Gapic::Config::Method] + # + attr_reader :move_file + ## + # RPC-specific configuration for `write_file` + # @return [::Gapic::Config::Method] + # + attr_reader :write_file + ## + # RPC-specific configuration for `list_release_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_release_configs + ## + # RPC-specific configuration for `get_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release_config + ## + # RPC-specific configuration for `create_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release_config + ## + # RPC-specific configuration for `update_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release_config + ## + # RPC-specific configuration for `delete_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release_config + ## + # RPC-specific configuration for `list_compilation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :list_compilation_results + ## + # RPC-specific configuration for `get_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :get_compilation_result + ## + # RPC-specific configuration for `create_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :create_compilation_result + ## + # RPC-specific configuration for `query_compilation_result_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_compilation_result_actions + ## + # RPC-specific configuration for `list_workflow_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_configs + ## + # RPC-specific configuration for `get_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_config + ## + # RPC-specific configuration for `create_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_config + ## + # RPC-specific configuration for `update_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_workflow_config + ## + # RPC-specific configuration for `delete_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_config + ## + # RPC-specific configuration for `list_workflow_invocations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_invocations + ## + # RPC-specific configuration for `get_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_invocation + ## + # RPC-specific configuration for `create_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_invocation + ## + # RPC-specific configuration for `delete_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_invocation + ## + # RPC-specific configuration for `cancel_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_workflow_invocation + ## + # RPC-specific configuration for `query_workflow_invocation_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_workflow_invocation_actions + ## + # RPC-specific configuration for `get_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_config + ## + # RPC-specific configuration for `update_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + + # @private + def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config + list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories + @list_repositories = ::Gapic::Config::Method.new list_repositories_config + get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository + @get_repository = ::Gapic::Config::Method.new get_repository_config + create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository + @create_repository = ::Gapic::Config::Method.new create_repository_config + update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository + @update_repository = ::Gapic::Config::Method.new update_repository_config + delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository + @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config + commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes + @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config + read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file + @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config + query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents + @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config + fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history + @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config + compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status + @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config + fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches + @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config + list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces + @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config + get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace + @get_workspace = ::Gapic::Config::Method.new get_workspace_config + create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace + @create_workspace = ::Gapic::Config::Method.new create_workspace_config + delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace + @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config + install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages + @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config + pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits + @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config + push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits + @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config + fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses + @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config + fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind + @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config + commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes + @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config + reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes + @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config + fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff + @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config + query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents + @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config + search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files + @search_files = ::Gapic::Config::Method.new search_files_config + make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory + @make_directory = ::Gapic::Config::Method.new make_directory_config + remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory + @remove_directory = ::Gapic::Config::Method.new remove_directory_config + move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory + @move_directory = ::Gapic::Config::Method.new move_directory_config + read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file + @read_file = ::Gapic::Config::Method.new read_file_config + remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file + @remove_file = ::Gapic::Config::Method.new remove_file_config + move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file + @move_file = ::Gapic::Config::Method.new move_file_config + write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file + @write_file = ::Gapic::Config::Method.new write_file_config + list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs + @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config + get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config + @get_release_config = ::Gapic::Config::Method.new get_release_config_config + create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config + @create_release_config = ::Gapic::Config::Method.new create_release_config_config + update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config + @update_release_config = ::Gapic::Config::Method.new update_release_config_config + delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config + @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config + list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results + @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config + get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result + @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config + create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result + @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config + query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions + @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config + list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs + @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config + get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config + @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config + create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config + @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config + update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config + @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config + delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config + @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config + list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations + @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config + get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation + @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config + create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation + @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config + delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation + @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config + cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation + @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config + query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions + @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config + get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config + @get_config = ::Gapic::Config::Method.new get_config_config + update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config + @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb new file mode 100644 index 000000000000..a1cc0ba6afef --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Credentials for the Dataform API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb new file mode 100644 index 000000000000..8944966e5175 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb @@ -0,0 +1,841 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Dataform Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb new file mode 100644 index 000000000000..591bf0ee5afa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb @@ -0,0 +1,311 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Path helper methods for the Dataform API. + module Paths + ## + # Create a fully-qualified CompilationResult resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param compilation_result [String] + # + # @return [::String] + def compilation_result_path project:, location:, repository:, compilation_result: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}" + end + + ## + # Create a fully-qualified Config resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/config` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def config_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}/config" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified CryptoKeyVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # @param crypto_key_version [String] + # + # @return [::String] + def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" + end + + ## + # Create a fully-qualified Folder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/folders/{folder}` + # + # @param project [String] + # @param location [String] + # @param folder [String] + # + # @return [::String] + def folder_path project:, location:, folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/folders/#{folder}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified NotebookRuntimeTemplate resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + # + # @param project [String] + # @param location [String] + # @param notebook_runtime_template [String] + # + # @return [::String] + def notebook_runtime_template_path project:, location:, notebook_runtime_template: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}" + end + + ## + # Create a fully-qualified ReleaseConfig resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param release_config [String] + # + # @return [::String] + def release_config_path project:, location:, repository:, release_config: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}" + end + + ## + # Create a fully-qualified Repository resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # + # @return [::String] + def repository_path project:, location:, repository: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}" + end + + ## + # Create a fully-qualified SecretVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/secrets/{secret}/versions/{version}` + # + # @param project [String] + # @param secret [String] + # @param version [String] + # + # @return [::String] + def secret_version_path project:, secret:, version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" + + "projects/#{project}/secrets/#{secret}/versions/#{version}" + end + + ## + # Create a fully-qualified TeamFolder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/teamFolders/{team_folder}` + # + # @param project [String] + # @param location [String] + # @param team_folder [String] + # + # @return [::String] + def team_folder_path project:, location:, team_folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/teamFolders/#{team_folder}" + end + + ## + # Create a fully-qualified WorkflowConfig resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workflow_config [String] + # + # @return [::String] + def workflow_config_path project:, location:, repository:, workflow_config: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}" + end + + ## + # Create a fully-qualified WorkflowInvocation resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workflow_invocation [String] + # + # @return [::String] + def workflow_invocation_path project:, location:, repository:, workflow_invocation: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}" + end + + ## + # Create a fully-qualified Workspace resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workspace [String] + # + # @return [::String] + def workspace_path project:, location:, repository:, workspace: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}" + end + + extend self + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb new file mode 100644 index 000000000000..01b9b9f1cbed --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" +require "google/cloud/dataform/v1/bindings_override" + +require "google/cloud/dataform/v1/dataform/credentials" +require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/rest/operations" +require "google/cloud/dataform/v1/dataform/rest/client" + +module Google + module Cloud + module Dataform + module V1 + ## + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataform/v1/dataform/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module Dataform + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataform/v1/dataform/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb new file mode 100644 index 000000000000..b3bb6824d285 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb @@ -0,0 +1,7248 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform/rest/service_stub" +require "google/cloud/location/rest" +require "google/iam/v1/rest" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + ## + # REST client for the Dataform service. + # + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dataform_stub + + ## + # Configure the Dataform Client class. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Dataform clients + # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dataform_stub.universe_domain + end + + ## + # Create a new Dataform REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Dataform client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @dataform_stub = ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @dataform_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_team_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.search_team_folders request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. + # + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_user_root_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Folder to a new Folder, TeamFolder, or the root location. + # + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_folder request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Repositories in a given project and location. + # + # **Note:** *This method can return repositories not shown in the [Dataform + # UI](https://console.cloud.google.com/bigquery/dataform)*. + # + # @overload list_repositories(request, options = nil) + # Pass arguments to `list_repositories` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_repositories` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + # + # # Call the list_repositories method. + # result = client.list_repositories request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + # p item + # end + # + def list_repositories request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_repositories.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_repositories.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_repositories request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_repositories, "repositories", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Repository. + # + # @overload get_repository(request, options = nil) + # Pass arguments to `get_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_repository(name: nil) + # Pass arguments to `get_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + # + # # Call the get_repository method. + # result = client.get_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def get_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Repository in a given project and location. + # + # @overload create_repository(request, options = nil) + # Pass arguments to `create_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_repository(parent: nil, repository: nil, repository_id: nil) + # Pass arguments to `create_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to create. + # @param repository_id [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + # + # # Call the create_repository method. + # result = client.create_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def create_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Repository. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_repository(request, options = nil) + # Pass arguments to `update_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_repository(update_mask: nil, repository: nil) + # Pass arguments to `update_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + # + # # Call the update_repository method. + # result = client.update_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def update_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Repository. + # + # @overload delete_repository(request, options = nil) + # Pass arguments to `delete_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_repository(name: nil, force: nil) + # Pass arguments to `delete_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param force [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + # + # # Call the delete_repository method. + # result = client.delete_repository request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_repository request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit to a Repository. The Repository must not have a value + # for `git_remote_settings.url`. + # + # @overload commit_repository_changes(request, options = nil) + # Pass arguments to `commit_repository_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) + # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] + # Required. The changes to commit to the repository. + # @param required_head_commit_sha [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + # + # # Call the commit_repository_changes method. + # result = client.commit_repository_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + # p result + # + def commit_repository_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.commit_repository_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.commit_repository_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Repository). The Repository + # must not have a value for `git_remote_settings.url`. + # + # @overload read_repository_file(request, options = nil) + # Pass arguments to `read_repository_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) + # Pass arguments to `read_repository_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @param path [::String] + # Required. Full file path to read including filename, from repository root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + # + # # Call the read_repository_file method. + # result = client.read_repository_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + # p result + # + def read_repository_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.read_repository_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.read_repository_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.read_repository_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Repository directory. The Repository must + # not have a value for `git_remote_settings.url`. + # + # @overload query_repository_directory_contents(request, options = nil) + # Pass arguments to `query_repository_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + # + # # Call the query_repository_directory_contents method. + # result = client.query_repository_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_repository_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_repository_directory_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's history of commits. The Repository must not have a + # value for `git_remote_settings.url`. + # + # @overload fetch_repository_history(request, options = nil) + # Pass arguments to `fetch_repository_history` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param page_size [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + # + # # Call the fetch_repository_history method. + # result = client.fetch_repository_history request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + # p item + # end + # + def fetch_repository_history request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_repository_history.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_repository_history request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Computes a Repository's Git access token status. + # + # @overload compute_repository_access_token_status(request, options = nil) + # Pass arguments to `compute_repository_access_token_status` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload compute_repository_access_token_status(name: nil) + # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + # + # # Call the compute_repository_access_token_status method. + # result = client.compute_repository_access_token_status request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + # p result + # + def compute_repository_access_token_status request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.compute_repository_access_token_status request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's remote branches. + # + # @overload fetch_remote_branches(request, options = nil) + # Pass arguments to `fetch_remote_branches` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_remote_branches(name: nil) + # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + # + # # Call the fetch_remote_branches method. + # result = client.fetch_remote_branches request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + # p result + # + def fetch_remote_branches request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_remote_branches.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_remote_branches request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Workspaces in a given Repository. + # + # @overload list_workspaces(request, options = nil) + # Pass arguments to `list_workspaces` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workspaces` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + # + # # Call the list_workspaces method. + # result = client.list_workspaces request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + # p item + # end + # + def list_workspaces request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workspaces.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workspaces.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workspaces request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workspaces, "workspaces", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Workspace. + # + # @overload get_workspace(request, options = nil) + # Pass arguments to `get_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workspace(name: nil) + # Pass arguments to `get_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + # + # # Call the get_workspace method. + # result = client.get_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def get_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Workspace in a given Repository. + # + # @overload create_workspace(request, options = nil) + # Pass arguments to `create_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) + # Pass arguments to `create_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] + # Required. The workspace to create. + # @param workspace_id [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + # + # # Call the create_workspace method. + # result = client.create_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def create_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Workspace. + # + # @overload delete_workspace(request, options = nil) + # Pass arguments to `delete_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workspace(name: nil) + # Pass arguments to `delete_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + # + # # Call the delete_workspace method. + # result = client.delete_workspace request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Installs dependency NPM packages (inside a Workspace). + # + # @overload install_npm_packages(request, options = nil) + # Pass arguments to `install_npm_packages` via a request object, either of type + # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload install_npm_packages(workspace: nil) + # Pass arguments to `install_npm_packages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + # + # # Call the install_npm_packages method. + # result = client.install_npm_packages request + # + # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + # p result + # + def install_npm_packages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.install_npm_packages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.install_npm_packages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.install_npm_packages request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pulls Git commits from the Repository's remote into a Workspace. + # + # @overload pull_git_commits(request, options = nil) + # Pass arguments to `pull_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) + # Pass arguments to `pull_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + # + # # Call the pull_git_commits method. + # result = client.pull_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + # p result + # + def pull_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.pull_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.pull_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.pull_git_commits request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pushes Git commits from a Workspace to the Repository's remote. + # + # @overload push_git_commits(request, options = nil) + # Pass arguments to `push_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload push_git_commits(name: nil, remote_branch: nil) + # Pass arguments to `push_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + # + # # Call the push_git_commits method. + # result = client.push_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + # p result + # + def push_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.push_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.push_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.push_git_commits request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git statuses for the files in a Workspace. + # + # @overload fetch_file_git_statuses(request, options = nil) + # Pass arguments to `fetch_file_git_statuses` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_file_git_statuses(name: nil) + # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + # + # # Call the fetch_file_git_statuses method. + # result = client.fetch_file_git_statuses request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + # p result + # + def fetch_file_git_statuses request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_file_git_statuses request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git ahead/behind against a remote branch. + # + # @overload fetch_git_ahead_behind(request, options = nil) + # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) + # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + # + # # Call the fetch_git_ahead_behind method. + # result = client.fetch_git_ahead_behind request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + # p result + # + def fetch_git_ahead_behind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_git_ahead_behind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit for uncommitted files in a Workspace. + # + # @overload commit_workspace_changes(request, options = nil) + # Pass arguments to `commit_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) + # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The commit's author. + # @param commit_message [::String] + # Optional. The commit's message. + # @param paths [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + # + # # Call the commit_workspace_changes method. + # result = client.commit_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + # p result + # + def commit_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.commit_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.commit_workspace_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a Git reset for uncommitted files in a Workspace. + # + # @overload reset_workspace_changes(request, options = nil) + # Pass arguments to `reset_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) + # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param paths [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @param clean [::Boolean] + # Optional. If set to true, untracked files will be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + # + # # Call the reset_workspace_changes method. + # result = client.reset_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + # p result + # + def reset_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.reset_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.reset_workspace_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git diff for an uncommitted file in a Workspace. + # + # @overload fetch_file_diff(request, options = nil) + # Pass arguments to `fetch_file_diff` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_file_diff(workspace: nil, path: nil) + # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + # + # # Call the fetch_file_diff method. + # result = client.fetch_file_diff request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + # p result + # + def fetch_file_diff request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_file_diff.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_file_diff request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Workspace directory. + # + # @overload query_directory_contents(request, options = nil) + # Pass arguments to `query_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `query_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + # + # # Call the query_directory_contents method. + # result = client.query_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_directory_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Finds the contents of a given Workspace directory by filter. + # + # @overload search_files(request, options = nil) + # Pass arguments to `search_files` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `search_files` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param page_size [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param filter [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + # + # # Call the search_files method. + # result = client.search_files request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + # p item + # end + # + def search_files request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_files.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_files.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_files.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.search_files request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_files, "search_results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a directory inside a Workspace. + # + # @overload make_directory(request, options = nil) + # Pass arguments to `make_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload make_directory(workspace: nil, path: nil) + # Pass arguments to `make_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + # + # # Call the make_directory method. + # result = client.make_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + # p result + # + def make_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.make_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.make_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.make_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.make_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a directory (inside a Workspace) and all of its contents. + # + # @overload remove_directory(request, options = nil) + # Pass arguments to `remove_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload remove_directory(workspace: nil, path: nil) + # Pass arguments to `remove_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + # + # # Call the remove_directory method. + # result = client.remove_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + # p result + # + def remove_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.remove_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.remove_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.remove_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a directory (inside a Workspace), and all of its contents, to a new + # location. + # + # @overload move_directory(request, options = nil) + # Pass arguments to `move_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_directory(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @param new_path [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + # + # # Call the move_directory method. + # result = client.move_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + # p result + # + def move_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Workspace). + # + # @overload read_file(request, options = nil) + # Pass arguments to `read_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload read_file(workspace: nil, path: nil, revision: nil) + # Pass arguments to `read_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param revision [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadFileRequest.new + # + # # Call the read_file method. + # result = client.read_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + # p result + # + def read_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.read_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.read_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.read_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.read_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a file (inside a Workspace). + # + # @overload remove_file(request, options = nil) + # Pass arguments to `remove_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload remove_file(workspace: nil, path: nil) + # Pass arguments to `remove_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + # + # # Call the remove_file method. + # result = client.remove_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + # p result + # + def remove_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.remove_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.remove_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.remove_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.remove_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a file (inside a Workspace) to a new location. + # + # @overload move_file(request, options = nil) + # Pass arguments to `move_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_file(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param new_path [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFileRequest.new + # + # # Call the move_file method. + # result = client.move_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + # p result + # + def move_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Writes to a file (inside a Workspace). + # + # @overload write_file(request, options = nil) + # Pass arguments to `write_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload write_file(workspace: nil, path: nil, contents: nil) + # Pass arguments to `write_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file. + # @param contents [::String] + # Required. The file's contents. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::WriteFileRequest.new + # + # # Call the write_file method. + # result = client.write_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + # p result + # + def write_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.write_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.write_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.write_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.write_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ReleaseConfigs in a given Repository. + # + # @overload list_release_configs(request, options = nil) + # Pass arguments to `list_release_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_release_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + # + # # Call the list_release_configs method. + # result = client.list_release_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + # p item + # end + # + def list_release_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_release_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_release_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_release_configs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_release_configs, "release_configs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single ReleaseConfig. + # + # @overload get_release_config(request, options = nil) + # Pass arguments to `get_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_release_config(name: nil) + # Pass arguments to `get_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + # + # # Call the get_release_config method. + # result = client.get_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def get_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ReleaseConfig in a given Repository. + # + # @overload create_release_config(request, options = nil) + # Pass arguments to `create_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) + # Pass arguments to `create_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to create. + # @param release_config_id [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + # + # # Call the create_release_config method. + # result = client.create_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def create_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single ReleaseConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_release_config(request, options = nil) + # Pass arguments to `update_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_release_config(update_mask: nil, release_config: nil) + # Pass arguments to `update_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + # + # # Call the update_release_config method. + # result = client.update_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def update_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ReleaseConfig. + # + # @overload delete_release_config(request, options = nil) + # Pass arguments to `delete_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_release_config(name: nil) + # Pass arguments to `delete_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + # + # # Call the delete_release_config method. + # result = client.delete_release_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CompilationResults in a given Repository. + # + # @overload list_compilation_results(request, options = nil) + # Pass arguments to `list_compilation_results` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_compilation_results` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + # + # # Call the list_compilation_results method. + # result = client.list_compilation_results request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + # p item + # end + # + def list_compilation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_compilation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_compilation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_compilation_results request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_compilation_results, "compilation_results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single CompilationResult. + # + # @overload get_compilation_result(request, options = nil) + # Pass arguments to `get_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_compilation_result(name: nil) + # Pass arguments to `get_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + # + # # Call the get_compilation_result method. + # result = client.get_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def get_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_compilation_result request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new CompilationResult in a given project and location. + # + # @overload create_compilation_result(request, options = nil) + # Pass arguments to `create_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_compilation_result(parent: nil, compilation_result: nil) + # Pass arguments to `create_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] + # Required. The compilation result to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + # + # # Call the create_compilation_result method. + # result = client.create_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def create_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_compilation_result request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns CompilationResultActions in a given CompilationResult. + # + # @overload query_compilation_result_actions(request, options = nil) + # Pass arguments to `query_compilation_result_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param filter [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + # + # # Call the query_compilation_result_actions method. + # result = client.query_compilation_result_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + # p item + # end + # + def query_compilation_result_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_compilation_result_actions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowConfigs in a given Repository. + # + # @overload list_workflow_configs(request, options = nil) + # Pass arguments to `list_workflow_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + # + # # Call the list_workflow_configs method. + # result = client.list_workflow_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + # p item + # end + # + def list_workflow_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workflow_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workflow_configs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_configs, "workflow_configs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowConfig. + # + # @overload get_workflow_config(request, options = nil) + # Pass arguments to `get_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workflow_config(name: nil) + # Pass arguments to `get_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + # + # # Call the get_workflow_config method. + # result = client.get_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def get_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowConfig in a given Repository. + # + # @overload create_workflow_config(request, options = nil) + # Pass arguments to `create_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) + # Pass arguments to `create_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to create. + # @param workflow_config_id [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + # + # # Call the create_workflow_config method. + # result = client.create_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def create_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single WorkflowConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_workflow_config(request, options = nil) + # Pass arguments to `update_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_workflow_config(update_mask: nil, workflow_config: nil) + # Pass arguments to `update_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + # + # # Call the update_workflow_config method. + # result = client.update_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def update_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowConfig. + # + # @overload delete_workflow_config(request, options = nil) + # Pass arguments to `delete_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workflow_config(name: nil) + # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + # + # # Call the delete_workflow_config method. + # result = client.delete_workflow_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowInvocations in a given Repository. + # + # @overload list_workflow_invocations(request, options = nil) + # Pass arguments to `list_workflow_invocations` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + # + # # Call the list_workflow_invocations method. + # result = client.list_workflow_invocations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + # p item + # end + # + def list_workflow_invocations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workflow_invocations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workflow_invocations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, "workflow_invocations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowInvocation. + # + # @overload get_workflow_invocation(request, options = nil) + # Pass arguments to `get_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workflow_invocation(name: nil) + # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + # + # # Call the get_workflow_invocation method. + # result = client.get_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def get_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowInvocation in a given Repository. + # + # @overload create_workflow_invocation(request, options = nil) + # Pass arguments to `create_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) + # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] + # Required. The workflow invocation resource to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + # + # # Call the create_workflow_invocation method. + # result = client.create_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def create_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowInvocation. + # + # @overload delete_workflow_invocation(request, options = nil) + # Pass arguments to `delete_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workflow_invocation(name: nil) + # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + # + # # Call the delete_workflow_invocation method. + # result = client.delete_workflow_invocation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests cancellation of a running WorkflowInvocation. + # + # @overload cancel_workflow_invocation(request, options = nil) + # Pass arguments to `cancel_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_workflow_invocation(name: nil) + # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + # + # # Call the cancel_workflow_invocation method. + # result = client.cancel_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + # p result + # + def cancel_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.cancel_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns WorkflowInvocationActions in a given WorkflowInvocation. + # + # @overload query_workflow_invocation_actions(request, options = nil) + # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation's name. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + # + # # Call the query_workflow_invocation_actions method. + # result = client.query_workflow_invocation_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + # p item + # end + # + def query_workflow_invocation_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_workflow_invocation_actions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get default config for a given project and location. + # + # @overload get_config(request, options = nil) + # Pass arguments to `get_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_config(name: nil) + # Pass arguments to `get_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The config name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetConfigRequest.new + # + # # Call the get_config method. + # result = client.get_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def get_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update default config for a given project and location. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_config(request, options = nil) + # Pass arguments to `update_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_config(config: nil, update_mask: nil) + # Pass arguments to `update_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] + # Required. The config to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the config. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + # + # # Call the update_config method. + # result = client.update_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def update_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.set_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.test_iam_permissions request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Dataform REST API. + # + # This class represents the configuration for Dataform REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_team_folder to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + # Overrides for http bindings for the RPCs of this service + # are only used when this service is used as mixin, and only + # by the host service. + # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] + config_attr :bindings_override, {}, ::Hash, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Dataform API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder + ## + # RPC-specific configuration for `list_repositories` + # @return [::Gapic::Config::Method] + # + attr_reader :list_repositories + ## + # RPC-specific configuration for `get_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :get_repository + ## + # RPC-specific configuration for `create_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :create_repository + ## + # RPC-specific configuration for `update_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :update_repository + ## + # RPC-specific configuration for `delete_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_repository + ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## + # RPC-specific configuration for `commit_repository_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_repository_changes + ## + # RPC-specific configuration for `read_repository_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_repository_file + ## + # RPC-specific configuration for `query_repository_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_repository_directory_contents + ## + # RPC-specific configuration for `fetch_repository_history` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_repository_history + ## + # RPC-specific configuration for `compute_repository_access_token_status` + # @return [::Gapic::Config::Method] + # + attr_reader :compute_repository_access_token_status + ## + # RPC-specific configuration for `fetch_remote_branches` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_remote_branches + ## + # RPC-specific configuration for `list_workspaces` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workspaces + ## + # RPC-specific configuration for `get_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workspace + ## + # RPC-specific configuration for `create_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workspace + ## + # RPC-specific configuration for `delete_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workspace + ## + # RPC-specific configuration for `install_npm_packages` + # @return [::Gapic::Config::Method] + # + attr_reader :install_npm_packages + ## + # RPC-specific configuration for `pull_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :pull_git_commits + ## + # RPC-specific configuration for `push_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :push_git_commits + ## + # RPC-specific configuration for `fetch_file_git_statuses` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_git_statuses + ## + # RPC-specific configuration for `fetch_git_ahead_behind` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_git_ahead_behind + ## + # RPC-specific configuration for `commit_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_workspace_changes + ## + # RPC-specific configuration for `reset_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :reset_workspace_changes + ## + # RPC-specific configuration for `fetch_file_diff` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_diff + ## + # RPC-specific configuration for `query_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_directory_contents + ## + # RPC-specific configuration for `search_files` + # @return [::Gapic::Config::Method] + # + attr_reader :search_files + ## + # RPC-specific configuration for `make_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :make_directory + ## + # RPC-specific configuration for `remove_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_directory + ## + # RPC-specific configuration for `move_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :move_directory + ## + # RPC-specific configuration for `read_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_file + ## + # RPC-specific configuration for `remove_file` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_file + ## + # RPC-specific configuration for `move_file` + # @return [::Gapic::Config::Method] + # + attr_reader :move_file + ## + # RPC-specific configuration for `write_file` + # @return [::Gapic::Config::Method] + # + attr_reader :write_file + ## + # RPC-specific configuration for `list_release_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_release_configs + ## + # RPC-specific configuration for `get_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release_config + ## + # RPC-specific configuration for `create_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release_config + ## + # RPC-specific configuration for `update_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release_config + ## + # RPC-specific configuration for `delete_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release_config + ## + # RPC-specific configuration for `list_compilation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :list_compilation_results + ## + # RPC-specific configuration for `get_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :get_compilation_result + ## + # RPC-specific configuration for `create_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :create_compilation_result + ## + # RPC-specific configuration for `query_compilation_result_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_compilation_result_actions + ## + # RPC-specific configuration for `list_workflow_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_configs + ## + # RPC-specific configuration for `get_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_config + ## + # RPC-specific configuration for `create_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_config + ## + # RPC-specific configuration for `update_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_workflow_config + ## + # RPC-specific configuration for `delete_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_config + ## + # RPC-specific configuration for `list_workflow_invocations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_invocations + ## + # RPC-specific configuration for `get_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_invocation + ## + # RPC-specific configuration for `create_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_invocation + ## + # RPC-specific configuration for `delete_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_invocation + ## + # RPC-specific configuration for `cancel_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_workflow_invocation + ## + # RPC-specific configuration for `query_workflow_invocation_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_workflow_invocation_actions + ## + # RPC-specific configuration for `get_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_config + ## + # RPC-specific configuration for `update_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + + # @private + def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config + list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories + @list_repositories = ::Gapic::Config::Method.new list_repositories_config + get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository + @get_repository = ::Gapic::Config::Method.new get_repository_config + create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository + @create_repository = ::Gapic::Config::Method.new create_repository_config + update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository + @update_repository = ::Gapic::Config::Method.new update_repository_config + delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository + @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config + commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes + @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config + read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file + @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config + query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents + @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config + fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history + @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config + compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status + @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config + fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches + @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config + list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces + @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config + get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace + @get_workspace = ::Gapic::Config::Method.new get_workspace_config + create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace + @create_workspace = ::Gapic::Config::Method.new create_workspace_config + delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace + @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config + install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages + @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config + pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits + @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config + push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits + @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config + fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses + @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config + fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind + @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config + commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes + @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config + reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes + @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config + fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff + @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config + query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents + @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config + search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files + @search_files = ::Gapic::Config::Method.new search_files_config + make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory + @make_directory = ::Gapic::Config::Method.new make_directory_config + remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory + @remove_directory = ::Gapic::Config::Method.new remove_directory_config + move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory + @move_directory = ::Gapic::Config::Method.new move_directory_config + read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file + @read_file = ::Gapic::Config::Method.new read_file_config + remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file + @remove_file = ::Gapic::Config::Method.new remove_file_config + move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file + @move_file = ::Gapic::Config::Method.new move_file_config + write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file + @write_file = ::Gapic::Config::Method.new write_file_config + list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs + @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config + get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config + @get_release_config = ::Gapic::Config::Method.new get_release_config_config + create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config + @create_release_config = ::Gapic::Config::Method.new create_release_config_config + update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config + @update_release_config = ::Gapic::Config::Method.new update_release_config_config + delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config + @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config + list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results + @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config + get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result + @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config + create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result + @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config + query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions + @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config + list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs + @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config + get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config + @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config + create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config + @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config + update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config + @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config + delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config + @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config + list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations + @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config + get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation + @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config + create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation + @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config + delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation + @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config + cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation + @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config + query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions + @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config + get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config + @get_config = ::Gapic::Config::Method.new get_config_config + update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config + @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb new file mode 100644 index 000000000000..1576b6fb66dd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb @@ -0,0 +1,925 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Dataform Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = OperationsServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + + ## + # @private + # REST service stub for the Longrunning Operations API. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + class OperationsServiceStub + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb new file mode 100644 index 000000000000..1f799e9394cc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb @@ -0,0 +1,4636 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataform/v1/dataform_pb" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + ## + # REST service stub for the Dataform service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def get_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def create_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def update_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_team_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_team_folder_tree request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_team_folder_tree", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_team_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] + # A result object deserialized from the server's reply + def query_team_folder_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_team_folder_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_team_folder_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the search_team_folders REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] + # A result object deserialized from the server's reply + def search_team_folders request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_search_team_folders_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "search_team_folders", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def get_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def create_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def update_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_folder_tree request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_folder_tree", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] + # A result object deserialized from the server's reply + def query_folder_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_folder_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_folder_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_user_root_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] + # A result object deserialized from the server's reply + def query_user_root_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_user_root_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_user_root_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def move_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_repositories REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # A result object deserialized from the server's reply + def list_repositories request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_repositories", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def get_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def create_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def update_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def move_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the commit_repository_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # A result object deserialized from the server's reply + def commit_repository_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "commit_repository_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the read_repository_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # A result object deserialized from the server's reply + def read_repository_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "read_repository_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_repository_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # A result object deserialized from the server's reply + def query_repository_directory_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_repository_directory_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_repository_history REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # A result object deserialized from the server's reply + def fetch_repository_history request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_repository_history", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the compute_repository_access_token_status REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # A result object deserialized from the server's reply + def compute_repository_access_token_status request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "compute_repository_access_token_status", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_remote_branches REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # A result object deserialized from the server's reply + def fetch_remote_branches request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_remote_branches", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workspaces REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # A result object deserialized from the server's reply + def list_workspaces request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workspaces", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # A result object deserialized from the server's reply + def get_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # A result object deserialized from the server's reply + def create_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the install_npm_packages REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # A result object deserialized from the server's reply + def install_npm_packages request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "install_npm_packages", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the pull_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # A result object deserialized from the server's reply + def pull_git_commits request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "pull_git_commits", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the push_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # A result object deserialized from the server's reply + def push_git_commits request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "push_git_commits", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_file_git_statuses REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # A result object deserialized from the server's reply + def fetch_file_git_statuses request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_file_git_statuses", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_git_ahead_behind REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # A result object deserialized from the server's reply + def fetch_git_ahead_behind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_git_ahead_behind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the commit_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # A result object deserialized from the server's reply + def commit_workspace_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "commit_workspace_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the reset_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # A result object deserialized from the server's reply + def reset_workspace_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "reset_workspace_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_file_diff REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # A result object deserialized from the server's reply + def fetch_file_diff request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_file_diff", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # A result object deserialized from the server's reply + def query_directory_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_directory_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the search_files REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # A result object deserialized from the server's reply + def search_files request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "search_files", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the make_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # A result object deserialized from the server's reply + def make_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "make_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the remove_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # A result object deserialized from the server's reply + def remove_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "remove_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # A result object deserialized from the server's reply + def move_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the read_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # A result object deserialized from the server's reply + def read_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "read_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the remove_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # A result object deserialized from the server's reply + def remove_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "remove_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # A result object deserialized from the server's reply + def move_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the write_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # A result object deserialized from the server's reply + def write_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "write_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_release_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # A result object deserialized from the server's reply + def list_release_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_release_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def get_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def create_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def update_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_compilation_results REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # A result object deserialized from the server's reply + def list_compilation_results request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_compilation_results", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def get_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def create_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_compilation_result_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # A result object deserialized from the server's reply + def query_compilation_result_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_compilation_result_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # A result object deserialized from the server's reply + def list_workflow_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def get_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def create_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def update_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_invocations REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # A result object deserialized from the server's reply + def list_workflow_invocations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_invocations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def get_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def create_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # A result object deserialized from the server's reply + def cancel_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_workflow_invocation_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # A result object deserialized from the server's reply + def query_workflow_invocation_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_workflow_invocation_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def get_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def update_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def get_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def set_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "set_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # A result object deserialized from the server's reply + def test_iam_permissions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "test_iam_permissions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/teamFolders", + body: "team_folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{team_folder.name}", + body: "team_folder", + matches: [ + ["team_folder.name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_team_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_team_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{team_folder}:queryContents", + matches: [ + ["team_folder", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_team_folders REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_team_folders_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}/teamFolders:search", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/folders", + body: "folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{folder.name}", + body: "folder", + matches: [ + ["folder.name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{folder}:queryFolderContents", + matches: [ + ["folder", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_user_root_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_user_root_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}:queryUserRootContents", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_repositories REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_repositories_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/repositories", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/repositories", + body: "repository", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{repository.name}", + body: "repository", + matches: [ + ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the commit_repository_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_commit_repository_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:commit", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the read_repository_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_read_repository_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:readFile", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_repository_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_repository_directory_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:queryDirectoryContents", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_repository_history REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_repository_history_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchHistory", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the compute_repository_access_token_status REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_compute_repository_access_token_status_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:computeAccessTokenStatus", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_remote_branches REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_remote_branches_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchRemoteBranches", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workspaces REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workspaces_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workspaces", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workspaces", + body: "workspace", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the install_npm_packages REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_install_npm_packages_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:installNpmPackages", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the pull_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_pull_git_commits_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:pull", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the push_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_push_git_commits_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:push", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_file_git_statuses REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_file_git_statuses_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchFileGitStatuses", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_git_ahead_behind REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_git_ahead_behind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchGitAheadBehind", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the commit_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_commit_workspace_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:commit", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the reset_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_reset_workspace_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:reset", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_file_diff REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_file_diff_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:fetchFileDiff", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_directory_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:queryDirectoryContents", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_files REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_files_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:searchFiles", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the make_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_make_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:makeDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the remove_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_remove_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:removeDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:moveDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the read_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_read_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:readFile", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the remove_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_remove_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:removeFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:moveFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the write_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_write_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:writeFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_release_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_release_configs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/releaseConfigs", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/releaseConfigs", + body: "release_config", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{release_config.name}", + body: "release_config", + matches: [ + ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_compilation_results REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_compilation_results_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/compilationResults", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_compilation_result_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_compilation_result_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/compilationResults", + body: "compilation_result", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_compilation_result_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_compilation_result_actions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:query", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workflow_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workflow_configs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workflowConfigs", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workflowConfigs", + body: "workflow_config", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{workflow_config.name}", + body: "workflow_config", + matches: [ + ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workflow_invocations REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workflow_invocations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workflowInvocations", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workflowInvocations", + body: "workflow_invocation", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_workflow_invocation_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_workflow_invocation_actions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:query", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{config.name}", + body: "config", + matches: [ + ["config.name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_set_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_test_iam_permissions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb new file mode 100644 index 000000000000..d0223b594bff --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb @@ -0,0 +1,216 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/dataform/v1/dataform.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' +require 'google/rpc/status_pb' +require 'google/type/interval_pb' + + +descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0e\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12#\n\x11\x63ontaining_folder\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\"\n\x10team_folder_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_containing_folderB\x13\n\x11_team_folder_nameB\x14\n\x12_internal_metadata\"3\n\x17PrivateResourceMetadata\x12\x18\n\x0buser_scoped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa4\x01\n\x15MoveRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xff\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\x8b\x04\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rdisable_moves\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x08 \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadataB\x10\n\x0e_disable_moves\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xe5\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x05 \x01(\x0e\x32/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x12\x43\n\x08metadata\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\n\x05\x65ntry\"h\n\x17\x46ilesystemEntryMetadata\x12\x17\n\nsize_bytes\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xca\x08\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x0c \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa3\x1e\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xae\x0b\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\n\nconnection\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x0ctable_format\x18\x10 \x01(\x0e\x32\x46.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xe0\x41\x01\x12_\n\x0b\x66ile_format\x18\x11 \x01(\x0e\x32\x45.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xe0\x41\x01\x12\x18\n\x0bstorage_uri\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\"8\n\x0bTableFormat\x12\x1c\n\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07ICEBERG\x10\x01\"6\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xdc\x03\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x0equery_priority\x18\t \x01(\x0e\x32\x38.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xe0\x41\x01H\x00\x88\x01\x01\"K\n\rQueryPriority\x12\x1e\n\x1aQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINTERACTIVE\x10\x01\x12\t\n\x05\x42\x41TCH\x10\x02\x42\x11\n\x0f_query_priority\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\x94\x08\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\n \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x02\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfigB\x14\n\x12_internal_metadata\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcf\x03\n\x06\x46older\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x63ontaining_folder\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10team_folder_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:n\xea\x41k\n\x1e\x64\x61taform.googleapis.com/Folder\x12\x38projects/{project}/locations/{location}/folders/{folder}*\x07\x66olders2\x06\x66olderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x87\x01\n\x13\x43reateFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"\x9c\x01\n\x11MoveFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"H\n\x10GetFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"\x82\x01\n\x13UpdateFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"K\n\x13\x44\x65leteFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"c\n\x17\x44\x65leteFolderTreeRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x1b\x44\x65leteTeamFolderTreeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe2\x02\n\x18\x44\x65leteFolderTreeMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\"[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xb1\x01\n\x1aQueryFolderContentsRequest\x12\x36\n\x06\x66older\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1bQueryFolderContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8e\x01\n\x13\x46olderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb8\x01\n\x1cQueryUserRootContentsRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1dQueryUserRootContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8c\x01\n\x11RootContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xab\x03\n\nTeamFolder\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n\"dataform.googleapis.com/TeamFolder\x12\x41projects/{project}/locations/{location}/teamFolders/{team_folder}*\x0bteamFolders2\nteamFolderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x94\x01\n\x17\x43reateTeamFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"P\n\x14GetTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\x8f\x01\n\x17UpdateTeamFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"S\n\x17\x44\x65leteTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\xbe\x01\n\x1eQueryTeamFolderContentsRequest\x12?\n\x0bteam_folder\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb3\x02\n\x1fQueryTeamFolderContentsResponse\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x92\x01\n\x17TeamFolderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb4\x01\n\x18SearchTeamFoldersRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xf1\x01\n\x19SearchTeamFoldersResponse\x12[\n\x07results\x18\x01 \x03(\x0b\x32J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a^\n\x16TeamFolderSearchResult\x12;\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderH\x00\x42\x07\n\x05\x65ntry\"\xca\x02\n\x12MoveFolderMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xd2\x02\n\x16MoveRepositoryMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04*\x89\x01\n\x15\x44irectoryContentsView\x12\'\n#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1d\x44IRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12$\n DIRECTORY_CONTENTS_VIEW_METADATA\x10\x02\x32\xe3}\n\x08\x44\x61taform\x12\xa5\x01\n\rGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xc6\x01\n\x10\x43reateTeamFolder\x12\x31.google.cloud.dataform.v1.CreateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"Y\xda\x41\x12parent,team_folder\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0bteam_folder\x12\xd7\x01\n\x10UpdateTeamFolder\x12\x31.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"j\xda\x41\x17team_folder,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0bteam_folder\x12\x9d\x01\n\x10\x44\x65leteTeamFolder\x12\x31.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xf5\x01\n\x14\x44\x65leteTeamFolderTree\x12\x35.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xea\x01\n\x17QueryTeamFolderContents\x12\x38.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1a\x39.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xda\x41\x0bteam_folder\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xbe\x01\n\x11SearchTeamFolders\x12\x32.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1a\x33.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\n\tGetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1a .google.cloud.dataform.v1.Folder\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xac\x01\n\x0c\x43reateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"K\xda\x41\rparent,folder\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/folders:\x06\x66older\x12\xb8\x01\n\x0cUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"W\xda\x41\x12\x66older,update_mask\x82\xd3\xe4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06\x66older\x12\x91\x01\n\x0c\x44\x65leteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xe9\x01\n\x10\x44\x65leteFolderTree\x12\x31.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xd6\x01\n\x13QueryFolderContents\x12\x34.google.cloud.dataform.v1.QueryFolderContentsRequest\x1a\x35.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xda\x41\x06\x66older\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xd8\x01\n\x15QueryUserRootContents\x12\x36.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1a\x37.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xda\x41\x08location\x82\xd3\xe4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xe9\x01\n\nMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41+\n\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02\x35\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xfa\x01\n\x0eMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x12\xf7\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xab\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x99\x02\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb new file mode 100644 index 000000000000..7076d1962dc3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Longrunning + module Operations + # Credentials for the Operations API. + class Credentials < ::Google::Auth::Credentials + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb new file mode 100644 index 000000000000..6b2d5f7cecff --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb @@ -0,0 +1,837 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Longrunning + module Operations + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Operations Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb new file mode 100644 index 000000000000..ff6597693b4e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" +require "google/longrunning/bindings_override" + +require "google/longrunning/operations/credentials" +require "google/longrunning/operations/rest/operations" +require "google/longrunning/operations/rest/client" + +module Google + module Longrunning + ## + # Manages long-running operations with an API service. + # + # When an API method normally takes long time to complete, it can be designed + # to return {::Google::Longrunning::Operation Operation} to the client, and the + # client can use this interface to receive the real response asynchronously by + # polling the operation resource, or pass the operation resource to another API + # (such as Pub/Sub API) to receive the response. Any API service that returns + # long-running operations should implement the `Operations` interface so + # developers can have a consistent client experience. + # + # To load this service and instantiate a REST client: + # + # require "google/longrunning/operations/rest" + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + module Operations + # Client for the REST transport + module Rest + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/longrunning/operations/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb new file mode 100644 index 000000000000..088db9bb5d0c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb @@ -0,0 +1,776 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/longrunning/operations_pb" +require "google/longrunning/operations/rest/service_stub" +require "google/cloud/location/rest" +require "google/iam/v1/rest" + +module Google + module Longrunning + module Operations + module Rest + ## + # REST client for the Operations service. + # + # Manages long-running operations with an API service. + # + # When an API method normally takes long time to complete, it can be designed + # to return {::Google::Longrunning::Operation Operation} to the client, and the + # client can use this interface to receive the real response asynchronously by + # polling the operation resource, or pass the operation resource to another API + # (such as Pub/Sub API) to receive the response. Any API service that returns + # long-running operations should implement the `Operations` interface so + # developers can have a consistent client experience. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configure the Operations Client class. + # + # See {::Google::Longrunning::Operations::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Operations clients + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Longrunning"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Longrunning::Operations::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = ::Google::Longrunning::Operations::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @operations_stub = ::Google::Longrunning::Operations::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @operations_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @operations_stub.endpoint + config.universe_domain = @operations_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @operations_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @operations_stub.endpoint + config.universe_domain = @operations_stub.universe_domain + config.logger = @operations_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Longrunning::Operations::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @operations_stub.logger + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb new file mode 100644 index 000000000000..f5539db81ab3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb @@ -0,0 +1,921 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" + +module Google + module Longrunning + module Operations + module Rest + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Operations Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = OperationsServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + + ## + # @private + # REST service stub for the Longrunning Operations API. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + class OperationsServiceStub + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb new file mode 100644 index 000000000000..0a616d856150 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb @@ -0,0 +1,322 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/longrunning/operations_pb" + +module Google + module Longrunning + module Operations + module Rest + ## + # REST service stub for the Operations service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb new file mode 100644 index 000000000000..1abb8352800b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/longrunning/operations/rest" +require "google/longrunning/bindings_override" +require "google/cloud/dataform/v1/version" + +module Google + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/longrunning/rest" + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + module Longrunning + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md new file mode 100644 index 000000000000..a128eb6cf57a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md @@ -0,0 +1,4 @@ +# Dataform V1 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..5089551e9ea4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb @@ -0,0 +1,589 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb new file mode 100644 index 000000000000..71e821d33ab7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb @@ -0,0 +1,3308 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataform + module V1 + # Describes encryption state of a resource. + # @!attribute [rw] kms_key_version_name + # @return [::String] + # Required. The KMS key version name with which data of a resource is + # encrypted. + class DataEncryptionState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git repository. + # @!attribute [rw] name + # @return [::String] + # Identifier. The repository's name. + # @!attribute [rw] containing_folder + # @return [::String] + # Optional. The name of the containing folder of the repository. + # The field is immutable and it can be modified via a MoveRepository + # operation. + # Format: `projects/*/locations/*/folders/*`. or + # `projects/*/locations/*/teamFolders/*`. + # @!attribute [r] team_folder_name + # @return [::String] + # Output only. The resource name of the TeamFolder that this Repository is + # associated with. This should take the format: + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this + # is not set, the Repository is not associated with a TeamFolder. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the repository was created. + # @!attribute [rw] display_name + # @return [::String] + # Optional. The repository's user-friendly name. + # @!attribute [rw] git_remote_settings + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings] + # Optional. If set, configures this repository to be linked to a Git remote. + # @!attribute [rw] npmrc_environment_variables_secret_version + # @return [::String] + # Optional. The name of the Secret Manager secret version to be used to + # interpolate variables into the .npmrc file for package installation + # operations. Must be in the format `projects/*/secrets/*/versions/*`. The + # file itself must be in a JSON format. + # @!attribute [rw] workspace_compilation_overrides + # @return [::Google::Cloud::Dataform::V1::Repository::WorkspaceCompilationOverrides] + # Optional. If set, fields of `workspace_compilation_overrides` override the + # default compilation settings that are specified in dataform.json when + # creating workspace-scoped compilation results. See documentation for + # `WorkspaceCompilationOverrides` for more information. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Repository user labels. + # @!attribute [rw] set_authenticated_user_admin + # @return [::Boolean] + # Optional. Input only. If set to true, the authenticated user will be + # granted the roles/dataform.admin role on the created repository. + # @!attribute [rw] service_account + # @return [::String] + # Optional. The service account to run workflow invocations under. + # @!attribute [rw] kms_key_name + # @return [::String] + # Optional. The reference to a KMS encryption key. If provided, it will be + # used to encrypt user data in the repository and all child resources. It is + # not possible to add or update the encryption key after the repository is + # created. Example: + # `projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}` + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. A data encryption state of a Git repository if this Repository + # is protected by a KMS key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class Repository + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Controls Git remote configuration for a repository. + # @!attribute [rw] url + # @return [::String] + # Required. The Git remote's URL. + # @!attribute [rw] default_branch + # @return [::String] + # Required. The Git remote's default branch name. + # @!attribute [rw] authentication_token_secret_version + # @return [::String] + # Optional. The name of the Secret Manager secret version to use as an + # authentication token for Git operations. Must be in the format + # `projects/*/secrets/*/versions/*`. + # @!attribute [rw] ssh_authentication_config + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::SshAuthenticationConfig] + # Optional. Authentication fields for remote uris using SSH protocol. + # @!attribute [r] token_status + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::TokenStatus] + # Output only. Deprecated: The field does not contain any token status + # information. + class GitRemoteSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Configures fields for performing SSH authentication. + # @!attribute [rw] user_private_key_secret_version + # @return [::String] + # Required. The name of the Secret Manager secret version to use as a + # ssh private key for Git operations. + # Must be in the format `projects/*/secrets/*/versions/*`. + # @!attribute [rw] host_public_key + # @return [::String] + # Required. Content of a public SSH key to verify an identity of a remote + # Git host. + class SshAuthenticationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The status of the authentication token. + module TokenStatus + # Default value. This value is unused. + TOKEN_STATUS_UNSPECIFIED = 0 + + # The token could not be found in Secret Manager (or the Dataform + # Service Account did not have permission to access it). + NOT_FOUND = 1 + + # The token could not be used to authenticate against the Git remote. + INVALID = 2 + + # The token was used successfully to authenticate against the Git remote. + VALID = 3 + end + end + + # Configures workspace compilation overrides for a repository. + # @!attribute [rw] default_database + # @return [::String] + # Optional. The default database (Google Cloud project ID). + # @!attribute [rw] schema_suffix + # @return [::String] + # Optional. The suffix that should be appended to all schema (BigQuery + # dataset ID) names. + # @!attribute [rw] table_prefix + # @return [::String] + # Optional. The prefix that should be prepended to all table names. + class WorkspaceCompilationOverrides + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Metadata used to identify if a resource is user scoped. + # @!attribute [r] user_scoped + # @return [::Boolean] + # Output only. If true, this resource is user-scoped, meaning it is either a + # workspace or sourced from a workspace. + class PrivateResourceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListRepositories` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListRepositoriesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListRepositories` response message. + # @!attribute [rw] repositories + # @return [::Array<::Google::Cloud::Dataform::V1::Repository>] + # List of repositories. + # @!attribute [rw] next_page_token + # @return [::String] + # A token which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListRepositoriesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The full resource name of the repository to move. + # @!attribute [rw] destination_containing_folder + # @return [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + class MoveRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class GetRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateRepository` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # Required. The repository to create. + # @!attribute [rw] repository_id + # @return [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + class CreateRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateRepository` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # Required. The repository to update. + class UpdateRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + class DeleteRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitRepositoryChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_metadata + # @return [::Google::Cloud::Dataform::V1::CommitMetadata] + # Required. The changes to commit to the repository. + # @!attribute [rw] required_head_commit_sha + # @return [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @!attribute [rw] file_operations + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + class CommitRepositoryChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single file operation to the repository. + # @!attribute [rw] write_file + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::WriteFile] + # Represents the write operation. + # + # Note: The following fields are mutually exclusive: `write_file`, `delete_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delete_file + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::DeleteFile] + # Represents the delete operation. + # + # Note: The following fields are mutually exclusive: `delete_file`, `write_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class FileOperation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the write file operation (for files added or modified). + # @!attribute [rw] contents + # @return [::String] + # The file's contents. + class WriteFile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the delete file operation. + class DeleteFile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation] + class FileOperationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `CommitRepositoryChanges` response message. + # @!attribute [rw] commit_sha + # @return [::String] + # The commit SHA of the current commit. + class CommitRepositoryChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadRepositoryFile` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_sha + # @return [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @!attribute [rw] path + # @return [::String] + # Required. Full file path to read including filename, from repository root. + class ReadRepositoryFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadRepositoryFile` response message. + # @!attribute [rw] contents + # @return [::String] + # The file's contents. + class ReadRepositoryFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryRepositoryDirectoryContents` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_sha + # @return [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @!attribute [rw] path + # @return [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + class QueryRepositoryDirectoryContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryRepositoryDirectoryContents` response message. + # @!attribute [rw] directory_entries + # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # List of entries in the directory. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryRepositoryDirectoryContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRepositoryHistory` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class FetchRepositoryHistoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRepositoryHistory` response message. + # @!attribute [rw] commits + # @return [::Array<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # A list of commit logs, ordered by 'git log' default order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class FetchRepositoryHistoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single commit log. + # @!attribute [rw] commit_time + # @return [::Google::Protobuf::Timestamp] + # Commit timestamp. + # @!attribute [rw] commit_sha + # @return [::String] + # The commit SHA for this commit log entry. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # The commit author for this commit log entry. + # @!attribute [rw] commit_message + # @return [::String] + # The commit message for this commit log entry. + class CommitLogEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git commit. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The commit's author. + # @!attribute [rw] commit_message + # @return [::String] + # Optional. The commit's message. + class CommitMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ComputeRepositoryAccessTokenStatus` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class ComputeRepositoryAccessTokenStatusRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ComputeRepositoryAccessTokenStatus` response message. + # @!attribute [rw] token_status + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse::TokenStatus] + # Indicates the status of the Git access token. + class ComputeRepositoryAccessTokenStatusResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the status of a Git authentication token. + module TokenStatus + # Default value. This value is unused. + TOKEN_STATUS_UNSPECIFIED = 0 + + # The token could not be found in Secret Manager (or the Dataform + # Service Account did not have permission to access it). + NOT_FOUND = 1 + + # The token could not be used to authenticate against the Git remote. + INVALID = 2 + + # The token was used successfully to authenticate against the Git remote. + VALID = 3 + + # The token is not accessible due to permission issues. + PERMISSION_DENIED = 4 + end + end + + # `FetchRemoteBranches` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class FetchRemoteBranchesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRemoteBranches` response message. + # @!attribute [rw] branches + # @return [::Array<::String>] + # The remote repository's branch names. + class FetchRemoteBranchesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git workspace. + # @!attribute [rw] name + # @return [::String] + # Identifier. The workspace's name. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the workspace was created. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. A data encryption state of a Git repository if this Workspace + # is protected by a KMS key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [rw] disable_moves + # @return [::Boolean] + # Optional. If set to true, workspaces will not be moved if its linked + # Repository is moved. Instead, it will be deleted. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # Output only. Metadata indicating whether this resource is user-scoped. For + # `Workspace` resources, the `user_scoped` field is always `true`. + class Workspace + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkspaces` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListWorkspacesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkspaces` response message. + # @!attribute [rw] workspaces + # @return [::Array<::Google::Cloud::Dataform::V1::Workspace>] + # List of workspaces. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkspacesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkspace` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + class GetWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkspace` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workspace + # @return [::Google::Cloud::Dataform::V1::Workspace] + # Required. The workspace to create. + # @!attribute [rw] workspace_id + # @return [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + class CreateWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkspace` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace resource's name. + class DeleteWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the author of a Git commit. + # @!attribute [rw] name + # @return [::String] + # Required. The commit author's name. + # @!attribute [rw] email_address + # @return [::String] + # Required. The commit author's email address. + class CommitAuthor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PullGitCommits` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + class PullGitCommitsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PullGitCommits` response message. + class PullGitCommitsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PushGitCommits` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + class PushGitCommitsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PushGitCommits` response message. + class PushGitCommitsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileGitStatuses` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + class FetchFileGitStatusesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileGitStatuses` response message. + # @!attribute [rw] uncommitted_file_changes + # @return [::Array<::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange>] + # A list of all files which have uncommitted Git changes. There will only be + # a single entry for any given file. + class FetchFileGitStatusesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the Git state of a file with uncommitted changes. + # @!attribute [rw] path + # @return [::String] + # The file's full path including filename, relative to the workspace root. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange::State] + # Output only. Indicates the status of the file. + class UncommittedFileChange + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the status of an uncommitted file change. + module State + # Default value. This value is unused. + STATE_UNSPECIFIED = 0 + + # The file has been newly added. + ADDED = 1 + + # The file has been deleted. + DELETED = 2 + + # The file has been modified. + MODIFIED = 3 + + # The file contains merge conflicts. + HAS_CONFLICTS = 4 + end + end + end + + # `FetchGitAheadBehind` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + class FetchGitAheadBehindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchGitAheadBehind` response message. + # @!attribute [rw] commits_ahead + # @return [::Integer] + # The number of commits in the remote branch that are not in the workspace. + # @!attribute [rw] commits_behind + # @return [::Integer] + # The number of commits in the workspace that are not in the remote branch. + class FetchGitAheadBehindResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitWorkspaceChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The commit's author. + # @!attribute [rw] commit_message + # @return [::String] + # Optional. The commit's message. + # @!attribute [rw] paths + # @return [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + class CommitWorkspaceChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitWorkspaceChanges` response message. + class CommitWorkspaceChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ResetWorkspaceChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] paths + # @return [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @!attribute [rw] clean + # @return [::Boolean] + # Optional. If set to true, untracked files will be deleted. + class ResetWorkspaceChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ResetWorkspaceChanges` response message. + class ResetWorkspaceChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileDiff` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + class FetchFileDiffRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileDiff` response message. + # @!attribute [rw] formatted_diff + # @return [::String] + # The raw formatted Git diff for the file. + class FetchFileDiffResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryDirectoryContents` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + class QueryDirectoryContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryDirectoryContents` response message. + # @!attribute [rw] directory_entries + # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # List of entries in the directory. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryDirectoryContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single entry in a directory. + # @!attribute [rw] file + # @return [::String] + # A file in the directory. + # + # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] directory + # @return [::String] + # A child directory in the directory. + # + # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] metadata + # @return [::Google::Cloud::Dataform::V1::FilesystemEntryMetadata] + # Entry with metadata. + class DirectoryEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents metadata for a single entry in a filesystem. + # @!attribute [r] size_bytes + # @return [::Integer] + # Output only. Provides the size of the entry in bytes. For directories, this + # will be 0. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Represents the time of the last modification of the entry. + class FilesystemEntryMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration containing file search request parameters. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + class SearchFilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a file search response. + # @!attribute [rw] search_results + # @return [::Array<::Google::Cloud::Dataform::V1::SearchResult>] + # List of matched results. + # @!attribute [rw] next_page_token + # @return [::String] + # Optional. A token, which can be sent as `page_token` to retrieve the next + # page. If this field is omitted, there are no subsequent pages. + class SearchFilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a search result entry. + # @!attribute [rw] file + # @return [::Google::Cloud::Dataform::V1::FileSearchResult] + # Details when search result is a file. + # + # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] directory + # @return [::Google::Cloud::Dataform::V1::DirectorySearchResult] + # Details when search result is a directory. + # + # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class SearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a file entry in search results. + # @!attribute [rw] path + # @return [::String] + # File system path relative to the workspace root. + class FileSearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a directory entry in search results. + # @!attribute [rw] path + # @return [::String] + # File system path relative to the workspace root. + class DirectorySearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MakeDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + class MakeDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MakeDirectory` response message. + class MakeDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + class RemoveDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveDirectory` response message. + class RemoveDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @!attribute [rw] new_path + # @return [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + class MoveDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveDirectory` response message. + class MoveDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @!attribute [rw] revision + # @return [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + class ReadFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadFile` response message. + # @!attribute [rw] file_contents + # @return [::String] + # The file's contents. + class ReadFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + class RemoveFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveFile` response message. + class RemoveFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @!attribute [rw] new_path + # @return [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + class MoveFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFile` response message. + class MoveFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `WriteFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file. + # @!attribute [rw] contents + # @return [::String] + # Required. The file's contents. + class WriteFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `WriteFile` response message. + class WriteFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `InstallNpmPackages` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + class InstallNpmPackagesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `InstallNpmPackages` response message. + class InstallNpmPackagesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform release configuration. + # @!attribute [rw] name + # @return [::String] + # Identifier. The release config's name. + # @!attribute [rw] git_commitish + # @return [::String] + # Required. 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` + # @!attribute [rw] code_compilation_config + # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] + # Optional. If set, fields of `code_compilation_config` override the default + # compilation settings that are specified in dataform.json. + # @!attribute [rw] cron_schedule + # @return [::String] + # Optional. Optional schedule (in cron format) for automatic creation of + # compilation results. + # @!attribute [rw] time_zone + # @return [::String] + # 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. + # @!attribute [r] recent_scheduled_release_records + # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig::ScheduledReleaseRecord>] + # Output only. Records of the 10 most recent scheduled release attempts, + # ordered in descending order of `release_time`. Updated whenever automatic + # creation of a compilation result is triggered by cron_schedule. + # @!attribute [rw] release_compilation_result + # @return [::String] + # Optional. The name of the currently released compilation result for this + # release config. This value is updated when a compilation result is + # automatically created from this release config (using cron_schedule), or + # when this resource is updated by API call (perhaps to roll back to an + # earlier release). The compilation result must have been created using this + # release config. Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # @!attribute [rw] disabled + # @return [::Boolean] + # Optional. Disables automatic creation of compilation results. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class ReleaseConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A record of an attempt to create a compilation result for this release + # config. + # @!attribute [rw] compilation_result + # @return [::String] + # The name of the created compilation result, if one was successfully + # created. Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # + # Note: The following fields are mutually exclusive: `compilation_result`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] error_status + # @return [::Google::Rpc::Status] + # The error status encountered upon this attempt to create the + # compilation result, if the attempt was unsuccessful. + # + # Note: The following fields are mutually exclusive: `error_status`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] release_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of this release attempt. + class ScheduledReleaseRecord + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `ListReleaseConfigs` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class ListReleaseConfigsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListReleaseConfigs` response message. + # @!attribute [rw] release_configs + # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # List of release configs. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListReleaseConfigsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetReleaseConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The release config's name. + class GetReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateReleaseConfig` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] release_config + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # Required. The release config to create. + # @!attribute [rw] release_config_id + # @return [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + class CreateReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateReleaseConfig` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @!attribute [rw] release_config + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # Required. The release config to update. + class UpdateReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteReleaseConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The release config's name. + class DeleteReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the result of compiling a Dataform project. + # @!attribute [rw] git_commitish + # @return [::String] + # 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` + # + # Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] workspace + # @return [::String] + # Immutable. The name of the workspace to compile. Must be in the format + # `projects/*/locations/*/repositories/*/workspaces/*`. + # + # Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] release_config + # @return [::String] + # Immutable. The name of the release config to compile. Must be in the + # format `projects/*/locations/*/repositories/*/releaseConfigs/*`. + # + # Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] name + # @return [::String] + # Output only. The compilation result's name. + # @!attribute [rw] code_compilation_config + # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] + # Immutable. If set, fields of `code_compilation_config` override the default + # compilation settings that are specified in dataform.json. + # @!attribute [r] resolved_git_commit_sha + # @return [::String] + # Output only. The fully resolved Git commit SHA of the code that was + # compiled. Not set for compilation results whose source is a workspace. + # @!attribute [r] dataform_core_version + # @return [::String] + # Output only. The version of `@dataform/core` that was used for compilation. + # @!attribute [r] compilation_errors + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult::CompilationError>] + # Output only. Errors encountered during project compilation. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. Only set if the repository has a KMS Key. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the compilation result was created. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # Output only. Metadata indicating whether this resource is user-scoped. + # `CompilationResult` resource is `user_scoped` only if it is sourced + # from a workspace. + class CompilationResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # An error encountered when attempting to compile a Dataform project. + # @!attribute [r] message + # @return [::String] + # Output only. The error's top level message. + # @!attribute [r] stack + # @return [::String] + # Output only. The error's full stack trace. + # @!attribute [r] path + # @return [::String] + # Output only. The path of the file where this error occurred, if + # available, relative to the project root. + # @!attribute [r] action_target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. The identifier of the action where this error occurred, if + # available. + class CompilationError + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configures various aspects of Dataform code compilation. + # @!attribute [rw] default_database + # @return [::String] + # Optional. The default database (Google Cloud project ID). + # @!attribute [rw] default_schema + # @return [::String] + # Optional. The default schema (BigQuery dataset ID). + # @!attribute [rw] default_location + # @return [::String] + # Optional. The default BigQuery location to use. Defaults to "US". + # See the BigQuery docs for a full list of locations: + # https://cloud.google.com/bigquery/docs/locations. + # @!attribute [rw] assertion_schema + # @return [::String] + # Optional. The default schema (BigQuery dataset ID) for assertions. + # @!attribute [rw] vars + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. User-defined variables that are made available to project code + # during compilation. + # @!attribute [rw] database_suffix + # @return [::String] + # Optional. The suffix that should be appended to all database (Google Cloud + # project ID) names. + # @!attribute [rw] schema_suffix + # @return [::String] + # Optional. The suffix that should be appended to all schema (BigQuery + # dataset ID) names. + # @!attribute [rw] table_prefix + # @return [::String] + # Optional. The prefix that should be prepended to all table names. + # @!attribute [rw] builtin_assertion_name_prefix + # @return [::String] + # Optional. The prefix to prepend to built-in assertion names. + # @!attribute [rw] default_notebook_runtime_options + # @return [::Google::Cloud::Dataform::V1::NotebookRuntimeOptions] + # Optional. The default notebook runtime options. + class CodeCompilationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class VarsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configures various aspects of Dataform notebook runtime. + # @!attribute [rw] gcs_output_bucket + # @return [::String] + # Optional. The Google Cloud Storage location to upload the result to. + # Format: `gs://bucket-name`. + # @!attribute [rw] ai_platform_notebook_runtime_template + # @return [::String] + # Optional. The resource name of the [Colab runtime template] + # (https://cloud.google.com/colab/docs/runtimes), from which a runtime is + # created for notebook executions. If not specified, a runtime is created + # with Colab's default specifications. + class NotebookRuntimeOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListCompilationResults` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListCompilationResultsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListCompilationResults` response message. + # @!attribute [rw] compilation_results + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult>] + # List of compilation results. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListCompilationResultsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetCompilationResult` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The compilation result's name. + class GetCompilationResultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateCompilationResult` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] compilation_result + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # Required. The compilation result to create. + class CreateCompilationResultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents an action identifier. If the action writes output, the output + # will be written to the referenced database object. + # @!attribute [rw] database + # @return [::String] + # Optional. The action's database (Google Cloud project ID) . + # @!attribute [rw] schema + # @return [::String] + # Optional. The action's schema (BigQuery dataset ID), within `database`. + # @!attribute [rw] name + # @return [::String] + # Optional. The action's name, within `database` and `schema`. + class Target + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes a relation and its columns. + # @!attribute [rw] description + # @return [::String] + # A text description of the relation. + # @!attribute [rw] columns + # @return [::Array<::Google::Cloud::Dataform::V1::RelationDescriptor::ColumnDescriptor>] + # A list of descriptions of columns within the relation. + # @!attribute [rw] bigquery_labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # A set of BigQuery labels that should be applied to the relation. + class RelationDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes a column. + # @!attribute [rw] path + # @return [::Array<::String>] + # The identifier for the column. Each entry in `path` represents one level + # of nesting. + # @!attribute [rw] description + # @return [::String] + # A textual description of the column. + # @!attribute [rw] bigquery_policy_tags + # @return [::Array<::String>] + # A list of BigQuery policy tags that will be applied to the column. + class ColumnDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class BigqueryLabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents a single Dataform action in a compilation result. + # @!attribute [rw] relation + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation] + # The database relation created/updated by this action. + # + # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] operations + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Operations] + # The database operations executed by this action. + # + # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] assertion + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Assertion] + # The assertion executed by this action. + # + # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] declaration + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Declaration] + # The declaration declared by this action. + # + # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] notebook + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Notebook] + # The notebook executed by this action. + # + # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_preparation + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation] + # The data preparation executed by this action. + # + # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # This action's identifier. Unique within the compilation result. + # @!attribute [rw] canonical_target + # @return [::Google::Cloud::Dataform::V1::Target] + # The action's identifier if the project had been compiled without any + # overrides configured. Unique within the compilation result. + # @!attribute [rw] file_path + # @return [::String] + # The full path including filename in which this action is located, relative + # to the workspace root. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class CompilationResultAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a database relation. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the relation and its columns. + # @!attribute [rw] relation_type + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::RelationType] + # The type of this relation. + # @!attribute [rw] select_query + # @return [::String] + # The SELECT query which returns rows which this relation should contain. + # @!attribute [rw] pre_operations + # @return [::Array<::String>] + # SQL statements to be executed before creating the relation. + # @!attribute [rw] post_operations + # @return [::Array<::String>] + # SQL statements to be executed after creating the relation. + # @!attribute [rw] incremental_table_config + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::IncrementalTableConfig] + # Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + # `relation_type` is `INCREMENTAL_TABLE`. + # @!attribute [rw] partition_expression + # @return [::String] + # The SQL expression used to partition the relation. + # @!attribute [rw] cluster_expressions + # @return [::Array<::String>] + # A list of columns or SQL expressions used to cluster the table. + # @!attribute [rw] partition_expiration_days + # @return [::Integer] + # Sets the partition expiration in days. + # @!attribute [rw] require_partition_filter + # @return [::Boolean] + # Specifies whether queries on this table must include a predicate filter + # that filters on the partitioning column. + # @!attribute [rw] additional_options + # @return [::Google::Protobuf::Map{::String => ::String}] + # Additional options that will be provided as key/value pairs into the + # options clause of a create table/view statement. See + # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language + # for more information on which options are supported. + # @!attribute [rw] connection + # @return [::String] + # Optional. The connection specifying the credentials to be used to read + # and write to external storage, such as Cloud Storage. The connection can + # have the form `{project}.{location}.{connection_id}` or + # `projects/{project}/locations/{location}/connections/{connection_id}`, + # or be set to DEFAULT. + # @!attribute [rw] table_format + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::TableFormat] + # Optional. The table format for the BigQuery table. + # @!attribute [rw] file_format + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::FileFormat] + # Optional. The file format for the BigQuery table. + # @!attribute [rw] storage_uri + # @return [::String] + # Optional. The fully qualified location prefix of the external folder + # where table data is stored. The URI should be in the format + # `gs://bucket/path_to_table/`. + class Relation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Contains settings for relations of type `INCREMENTAL_TABLE`. + # @!attribute [rw] incremental_select_query + # @return [::String] + # The SELECT query which returns rows which should be inserted into the + # relation if it already exists and is not being refreshed. + # @!attribute [rw] refresh_disabled + # @return [::Boolean] + # Whether this table should be protected from being refreshed. + # @!attribute [rw] unique_key_parts + # @return [::Array<::String>] + # A set of columns or SQL expressions used to define row uniqueness. + # If any duplicates are discovered (as defined by `unique_key_parts`), + # only the newly selected rows (as defined by `incremental_select_query`) + # will be included in the relation. + # @!attribute [rw] update_partition_filter + # @return [::String] + # A SQL expression conditional used to limit the set of existing rows + # considered for a merge operation (see `unique_key_parts` for more + # information). + # @!attribute [rw] incremental_pre_operations + # @return [::Array<::String>] + # SQL statements to be executed before inserting new rows into the + # relation. + # @!attribute [rw] incremental_post_operations + # @return [::Array<::String>] + # SQL statements to be executed after inserting new rows into the + # relation. + class IncrementalTableConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AdditionalOptionsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the type of this relation. + module RelationType + # Default value. This value is unused. + RELATION_TYPE_UNSPECIFIED = 0 + + # The relation is a table. + TABLE = 1 + + # The relation is a view. + VIEW = 2 + + # The relation is an incrementalized table. + INCREMENTAL_TABLE = 3 + + # The relation is a materialized view. + MATERIALIZED_VIEW = 4 + end + + # Supported table formats for BigQuery tables. + module TableFormat + # Default value. + TABLE_FORMAT_UNSPECIFIED = 0 + + # Apache Iceberg format. + ICEBERG = 1 + end + + # Supported file formats for BigQuery tables. + module FileFormat + # Default value. + FILE_FORMAT_UNSPECIFIED = 0 + + # Apache Parquet format. + PARQUET = 1 + end + end + + # Represents a list of arbitrary database operations. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for any output relation and its columns. Only set if + # `has_output` is true. + # @!attribute [rw] queries + # @return [::Array<::String>] + # A list of arbitrary SQL statements that will be executed without + # alteration. + # @!attribute [rw] has_output + # @return [::Boolean] + # Whether these operations produce an output relation. + class Operations + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents an assertion upon a SQL query which is required return zero + # rows. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] parent_action + # @return [::Google::Cloud::Dataform::V1::Target] + # The parent action of this assertion. Only set if this assertion was + # automatically generated. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] select_query + # @return [::String] + # The SELECT query which must return zero rows in order for this assertion + # to succeed. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the assertion's automatically-generated view and its + # columns. + class Assertion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a relation which is not managed by Dataform but which may be + # referenced by Dataform actions. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the relation and its columns. Used as documentation only, + # i.e. values here will result in no changes to the relation's metadata. + class Declaration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a notebook. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] contents + # @return [::String] + # The contents of the notebook. + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + class Notebook + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a compiled Data Preparation entity + # @!attribute [rw] contents_yaml + # @return [::String] + # The data preparation definition, stored as a YAML string. + # + # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] contents_sql + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::SqlDefinition] + # SQL definition for a Data Preparation. Contains a SQL query and + # additional context information. + # + # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + class DataPreparation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Definition of a SQL Data Preparation + # @!attribute [rw] query + # @return [::String] + # The SQL query representing the data preparation steps. Formatted as a + # Pipe SQL query statement. + # @!attribute [rw] error_table + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::ErrorTable] + # Error table configuration, + # @!attribute [rw] load + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::LoadConfig] + # Load configuration. + class SqlDefinition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Error table information, used to write error data into a BigQuery + # table. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Error Table target. + # @!attribute [rw] retention_days + # @return [::Integer] + # Error table partition expiration in days. Only positive values are + # allowed. + class ErrorTable + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Simplified load configuration for actions + # @!attribute [rw] replace + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] + # Replace destination table + # + # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] append + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] + # Append into destination table + # + # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] maximum + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] + # Insert records where the value exceeds the previous maximum value for a + # column in the destination table + # + # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] unique + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] + # Insert records where the value of a column is not already present in + # the destination table + # + # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class LoadConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simple load definition + class SimpleLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Load definition for incremental load modes + # @!attribute [rw] column + # @return [::String] + # Column name for incremental load modes + class IncrementalLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `QueryCompilationResultActions` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The compilation result's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + class QueryCompilationResultActionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryCompilationResultActions` response message. + # @!attribute [rw] compilation_result_actions + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # List of compilation result actions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryCompilationResultActionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform workflow configuration. + # @!attribute [rw] name + # @return [::String] + # Identifier. The workflow config's name. + # @!attribute [rw] release_config + # @return [::String] + # Required. The name of the release config whose release_compilation_result + # should be executed. Must be in the format + # `projects/*/locations/*/repositories/*/releaseConfigs/*`. + # @!attribute [rw] invocation_config + # @return [::Google::Cloud::Dataform::V1::InvocationConfig] + # Optional. If left unset, a default InvocationConfig will be used. + # @!attribute [rw] cron_schedule + # @return [::String] + # Optional. Optional schedule (in cron format) for automatic execution of + # this workflow config. + # @!attribute [rw] time_zone + # @return [::String] + # 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. + # @!attribute [r] recent_scheduled_execution_records + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig::ScheduledExecutionRecord>] + # Output only. Records of the 10 most recent scheduled execution attempts, + # ordered in descending order of `execution_time`. Updated whenever automatic + # creation of a workflow invocation is triggered by cron_schedule. + # @!attribute [rw] disabled + # @return [::Boolean] + # Optional. Disables automatic creation of workflow invocations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the WorkflowConfig was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the WorkflowConfig was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class WorkflowConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A record of an attempt to create a workflow invocation for this workflow + # config. + # @!attribute [rw] workflow_invocation + # @return [::String] + # The name of the created workflow invocation, if one was successfully + # created. Must be in the format + # `projects/*/locations/*/repositories/*/workflowInvocations/*`. + # + # Note: The following fields are mutually exclusive: `workflow_invocation`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] error_status + # @return [::Google::Rpc::Status] + # The error status encountered upon this attempt to create the + # workflow invocation, if the attempt was unsuccessful. + # + # Note: The following fields are mutually exclusive: `error_status`, `workflow_invocation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] execution_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of this execution attempt. + class ScheduledExecutionRecord + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Includes various configuration options for a workflow invocation. + # If both `included_targets` and `included_tags` are unset, all actions + # will be included. + # @!attribute [rw] included_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # Optional. The set of action identifiers to include. + # @!attribute [rw] included_tags + # @return [::Array<::String>] + # Optional. The set of tags to include. + # @!attribute [rw] transitive_dependencies_included + # @return [::Boolean] + # Optional. When set to true, transitive dependencies of included actions + # will be executed. + # @!attribute [rw] transitive_dependents_included + # @return [::Boolean] + # Optional. When set to true, transitive dependents of included actions will + # be executed. + # @!attribute [rw] fully_refresh_incremental_tables_enabled + # @return [::Boolean] + # Optional. When set to true, any incremental tables will be fully refreshed. + # @!attribute [rw] service_account + # @return [::String] + # Optional. The service account to run workflow invocations under. + # @!attribute [rw] query_priority + # @return [::Google::Cloud::Dataform::V1::InvocationConfig::QueryPriority] + # Optional. Specifies the priority for query execution in BigQuery. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#queries. + class InvocationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Types of priority for query execution in BigQuery. + module QueryPriority + # Default value. This value is unused. + QUERY_PRIORITY_UNSPECIFIED = 0 + + # Query will be executed in BigQuery with interactive priority. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#queries. + INTERACTIVE = 1 + + # Query will be executed in BigQuery with batch priority. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#batchqueries. + BATCH = 2 + end + end + + # `ListWorkflowConfigs` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class ListWorkflowConfigsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkflowConfigs` response message. + # @!attribute [rw] workflow_configs + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # List of workflow configs. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkflowConfigsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkflowConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow config's name. + class GetWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkflowConfig` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workflow_config + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # Required. The workflow config to create. + # @!attribute [rw] workflow_config_id + # @return [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + class CreateWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateWorkflowConfig` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @!attribute [rw] workflow_config + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # Required. The workflow config to update. + class UpdateWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkflowConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow config's name. + class DeleteWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single invocation of a compilation result. + # @!attribute [rw] compilation_result + # @return [::String] + # Immutable. The name of the compilation result to use for this invocation. + # Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # + # Note: The following fields are mutually exclusive: `compilation_result`, `workflow_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] workflow_config + # @return [::String] + # Immutable. The name of the workflow config to invoke. Must be in the + # format `projects/*/locations/*/repositories/*/workflowConfigs/*`. + # + # Note: The following fields are mutually exclusive: `workflow_config`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] name + # @return [::String] + # Output only. The workflow invocation's name. + # @!attribute [rw] invocation_config + # @return [::Google::Cloud::Dataform::V1::InvocationConfig] + # Immutable. If left unset, a default InvocationConfig will be used. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation::State] + # Output only. This workflow invocation's current state. + # @!attribute [r] invocation_timing + # @return [::Google::Type::Interval] + # Output only. This workflow invocation's timing details. + # @!attribute [r] resolved_compilation_result + # @return [::String] + # Output only. The resolved compilation result that was used to create this + # invocation. Will be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. Only set if the repository has a KMS Key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # 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. + class WorkflowInvocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the current state of a workflow invocation. + module State + # Default value. This value is unused. + STATE_UNSPECIFIED = 0 + + # The workflow invocation is currently running. + RUNNING = 1 + + # The workflow invocation succeeded. A terminal state. + SUCCEEDED = 2 + + # The workflow invocation was cancelled. A terminal state. + CANCELLED = 3 + + # The workflow invocation failed. A terminal state. + FAILED = 4 + + # The workflow invocation is being cancelled, but some actions are still + # running. + CANCELING = 5 + end + end + + # `ListWorkflowInvocations` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListWorkflowInvocationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkflowInvocations` response message. + # @!attribute [rw] workflow_invocations + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # List of workflow invocations. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkflowInvocationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class GetWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkflowInvocation` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workflow_invocation + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # Required. The workflow invocation resource to create. + class CreateWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class DeleteWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CancelWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class CancelWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CancelWorkflowInvocation` response message. + class CancelWorkflowInvocationResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single action in a workflow invocation. + # @!attribute [r] bigquery_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::BigQueryAction] + # Output only. The workflow action's bigquery action details. + # + # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] notebook_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::NotebookAction] + # Output only. The workflow action's notebook action details. + # + # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] data_preparation_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction] + # Output only. The workflow action's data preparation action details. + # + # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. This action's identifier. Unique within the workflow + # invocation. + # @!attribute [r] canonical_target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. The action's identifier if the project had been compiled + # without any overrides configured. Unique within the compilation result. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::State] + # Output only. This action's current state. + # @!attribute [r] failure_reason + # @return [::String] + # Output only. If and only if action's state is FAILED a failure reason is + # set. + # @!attribute [r] invocation_timing + # @return [::Google::Type::Interval] + # Output only. This action's timing details. + # `start_time` will be set if the action is in [RUNNING, SUCCEEDED, + # CANCELLED, FAILED] state. + # `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] + # state. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class WorkflowInvocationAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a workflow action that will run against BigQuery. + # @!attribute [r] sql_script + # @return [::String] + # Output only. The generated BigQuery SQL script that will be executed. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the BigQuery job that executed the SQL in + # sql_script. Only set once the job has started to run. + class BigQueryAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a workflow action that will run against a Notebook runtime. + # @!attribute [r] contents + # @return [::String] + # Output only. The code contents of a Notebook to be run. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the Vertex 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. + class NotebookAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a workflow action that will run a Data Preparation. + # @!attribute [r] contents_yaml + # @return [::String] + # Output only. YAML representing the contents of the data preparation. + # Can be used to show the customer what the input was to their workflow. + # + # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] contents_sql + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition] + # SQL definition for a Data Preparation. Contains a SQL query and + # additional context information. + # + # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] generated_sql + # @return [::String] + # Output only. The generated BigQuery SQL script that will be executed. For + # reference only. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the BigQuery job that executed the SQL in + # sql_script. Only set once the job has started to run. + class DataPreparationAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Definition of a SQL Data Preparation + # @!attribute [rw] query + # @return [::String] + # The SQL query representing the data preparation steps. Formatted as a + # Pipe SQL query statement. + # @!attribute [rw] error_table + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionErrorTable] + # Error table configuration, + # @!attribute [rw] load_config + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionLoadConfig] + # Load configuration. + class ActionSqlDefinition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Error table information, used to write error data into a BigQuery + # table. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Error Table target. + # @!attribute [rw] retention_days + # @return [::Integer] + # Error table partition expiration in days. Only positive values are + # allowed. + class ActionErrorTable + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simplified load configuration for actions + # @!attribute [rw] replace + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] + # Replace destination table + # + # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] append + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] + # Append into destination table + # + # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] maximum + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] + # Insert records where the value exceeds the previous maximum value for + # a column in the destination table + # + # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] unique + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] + # Insert records where the value of a column is not already present in + # the destination table + # + # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class ActionLoadConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simple load definition + class ActionSimpleLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Load definition for incremental load modes + # @!attribute [rw] column + # @return [::String] + # Column name for incremental load modes + class ActionIncrementalLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents the current state of a workflow invocation action. + module State + # The action has not yet been considered for invocation. + PENDING = 0 + + # The action is currently running. + RUNNING = 1 + + # Execution of the action was skipped because upstream dependencies did not + # all complete successfully. A terminal state. + SKIPPED = 2 + + # Execution of the action was disabled as per the configuration of the + # corresponding compilation result action. A terminal state. + DISABLED = 3 + + # The action succeeded. A terminal state. + SUCCEEDED = 4 + + # The action was cancelled. A terminal state. + CANCELLED = 5 + + # The action failed. A terminal state. + FAILED = 6 + end + end + + # `QueryWorkflowInvocationActions` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + class QueryWorkflowInvocationActionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryWorkflowInvocationActions` response message. + # @!attribute [rw] workflow_invocation_actions + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # List of workflow invocation actions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryWorkflowInvocationActionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Config for all repositories in a given project and location. + # @!attribute [rw] name + # @return [::String] + # Identifier. The config name. + # @!attribute [rw] default_kms_key_name + # @return [::String] + # Optional. The default KMS key that is used if no encryption key is provided + # when a repository is created. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class Config + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The config name. + class GetConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateConfig` request message. + # @!attribute [rw] config + # @return [::Google::Cloud::Dataform::V1::Config] + # Required. The config to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the config. + class UpdateConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Folder. This is a resource that is used to organize + # Files and other Folders and provide hierarchical access controls. + # @!attribute [rw] name + # @return [::String] + # Identifier. The Folder's name. + # @!attribute [rw] display_name + # @return [::String] + # Required. The Folder's user-friendly name. + # @!attribute [rw] containing_folder + # @return [::String] + # Optional. The containing Folder resource name. This should take + # the format: projects/\\{project}/locations/\\{location}/folders/\\{folder}, + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}, or just + # projects/\\{project}/locations/\\{location} if this is a root Folder. This + # field can only be updated through MoveFolder. + # @!attribute [r] team_folder_name + # @return [::String] + # Output only. The resource name of the TeamFolder that this Folder is + # associated with. This should take the format: + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this + # is not set, the Folder is not associated with a TeamFolder and is a + # UserFolder. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the Folder was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the Folder was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] creator_iam_principal + # @return [::String] + # Output only. The IAM principal identifier of the creator of the Folder. + class Folder + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateFolder` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # Required. The Folder to create. + class CreateFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The full resource name of the Folder to move. + # @!attribute [rw] destination_containing_folder + # @return [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + class MoveFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + class GetFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateFolder` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # Required. The updated Folder. + class UpdateFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + class DeleteFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteFolderTree` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + class DeleteFolderTreeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteTeamFolderTree` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + class DeleteTeamFolderTreeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Contains metadata about the progress of the DeleteFolderTree Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Resource name of the target of the operation. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} or + # projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::DeleteFolderTreeMetadata::State] + # Output only. The state of the operation. + # @!attribute [r] percent_complete + # @return [::Integer] + # Output only. Percent complete of the operation [0, 100]. + class DeleteFolderTreeMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the DeleteFolderTree operation. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The operation was initialized and recorded by the server, but not yet + # started. + INITIALIZED = 1 + + # The operation is in progress. + IN_PROGRESS = 2 + + # The operation has completed successfully. + SUCCEEDED = 3 + + # The operation has failed. + FAILED = 4 + end + end + + # `QueryFolderContents` request message. + # @!attribute [rw] folder + # @return [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryFolderContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryFolderContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class FolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `QueryUserRootContents` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryUserRootContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryUserRootContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryUserRootContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class RootContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents a Dataform TeamFolder. This is a resource that sits at the project + # level and is used to organize Repositories and Folders with hierarchical + # access controls. They provide a team context and stricter access controls. + # @!attribute [rw] name + # @return [::String] + # Identifier. The TeamFolder's name. + # @!attribute [rw] display_name + # @return [::String] + # Required. The TeamFolder's user-friendly name. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] creator_iam_principal + # @return [::String] + # Output only. The IAM principal identifier of the creator of the TeamFolder. + class TeamFolder + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateTeamFolder` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The TeamFolder to create. + class CreateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class GetTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateTeamFolder` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The updated TeamFolder. + class UpdateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class DeleteTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` request message. + # @!attribute [rw] team_folder + # @return [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryTeamFolderContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # List of entries in the TeamFolder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryTeamFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class TeamFolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `SearchTeamFolders` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class SearchTeamFoldersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `SearchTeamFolders` response message. + # @!attribute [rw] results + # @return [::Array<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # List of TeamFolders that match the search query. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class SearchTeamFoldersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A TeamFolder resource that is in the project / location. + class TeamFolderSearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Contains metadata about the progress of the MoveFolder Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveFolderMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveFolderMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Contains metadata about the progress of the MoveRepository Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveRepositoryMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveRepositoryMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Represents the level of detail to return for directory contents. + module DirectoryContentsView + # The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0 + + # Includes only the file or directory name. This is the default behavior. + DIRECTORY_CONTENTS_VIEW_BASIC = 1 + + # Includes all metadata for each file or directory. Currently not supported + # by CMEK-protected workspaces. + DIRECTORY_CONTENTS_VIEW_METADATA = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb new file mode 100644 index 000000000000..53e7733b6592 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # + # Example (Comparison): + # + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # + # Example (Equality): + # + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # + # Example (Logic): + # + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # + # Example (Data Manipulation): + # + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # @!attribute [rw] expression + # @return [::String] + # Textual representation of an expression in Common Expression Language + # syntax. + # @!attribute [rw] title + # @return [::String] + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # @!attribute [rw] description + # @return [::String] + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # @!attribute [rw] location + # @return [::String] + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + class Expr + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb new file mode 100644 index 000000000000..9350ca479005 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a time interval, encoded as a Timestamp start (inclusive) and a + # Timestamp end (exclusive). + # + # The start must be less than or equal to the end. + # When the start equals the end, the interval is empty (matches no time). + # When both start and end are unspecified, the interval matches any time. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Inclusive start of the interval. + # + # If specified, a Timestamp matching this interval will have to be the same + # or after the start. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Exclusive end of the interval. + # + # If specified, a Timestamp matching this interval will have to be before the + # end. + class Interval + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile new file mode 100644 index 000000000000..89707fd03706 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-dataform-v1", path: "../" +else + gem "google-cloud-dataform-v1" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb new file mode 100644 index 000000000000..c4a4e55aa460 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the cancel_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation. +# +def cancel_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + + # Call the cancel_workflow_invocation method. + result = client.cancel_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + p result +end +# [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb new file mode 100644 index 000000000000..b31e885c5837 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the commit_repository_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes. +# +def commit_repository_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + + # Call the commit_repository_changes method. + result = client.commit_repository_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb new file mode 100644 index 000000000000..de4ddc10f8e4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the commit_workspace_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes. +# +def commit_workspace_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + + # Call the commit_workspace_changes method. + result = client.commit_workspace_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb new file mode 100644 index 000000000000..4aaf8f3d74f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the compute_repository_access_token_status call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status. +# +def compute_repository_access_token_status + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + + # Call the compute_repository_access_token_status method. + result = client.compute_repository_access_token_status request + + # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + p result +end +# [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb new file mode 100644 index 000000000000..2a34f5cac7f6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateCompilationResult_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_compilation_result call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result. +# +def create_compilation_result + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + + # Call the create_compilation_result method. + result = client.create_compilation_result request + + # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + p result +end +# [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb new file mode 100644 index 000000000000..3c2f8f0e4f94 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_folder. +# +def create_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + + # Call the create_folder method. + result = client.create_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb new file mode 100644 index 000000000000..46e5de64b5d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_release_config. +# +def create_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + + # Call the create_release_config method. + result = client.create_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb new file mode 100644 index 000000000000..186c81061421 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_repository. +# +def create_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + + # Call the create_repository method. + result = client.create_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb new file mode 100644 index 000000000000..4cb79ef5ac63 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder. +# +def create_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + + # Call the create_team_folder method. + result = client.create_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb new file mode 100644 index 000000000000..446e1c2e93bb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config. +# +def create_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + + # Call the create_workflow_config method. + result = client.create_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb new file mode 100644 index 000000000000..ad915149df4d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation. +# +def create_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + + # Call the create_workflow_invocation method. + result = client.create_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb new file mode 100644 index 000000000000..89e20592d4f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workspace. +# +def create_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + + # Call the create_workspace method. + result = client.create_workspace request + + # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb new file mode 100644 index 000000000000..b77ee48d1380 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder. +# +def delete_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + + # Call the delete_folder method. + result = client.delete_folder request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb new file mode 100644 index 000000000000..b2e3907a8605 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteFolderTree_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_folder_tree call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree. +# +def delete_folder_tree + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + + # Call the delete_folder_tree method. + result = client.delete_folder_tree request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb new file mode 100644 index 000000000000..b21bc0f0a3fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config. +# +def delete_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + + # Call the delete_release_config method. + result = client.delete_release_config request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb new file mode 100644 index 000000000000..c7267ab8814d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_repository. +# +def delete_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + + # Call the delete_repository method. + result = client.delete_repository request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb new file mode 100644 index 000000000000..45cfe3a54207 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder. +# +def delete_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + + # Call the delete_team_folder method. + result = client.delete_team_folder request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb new file mode 100644 index 000000000000..9ef55af12135 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_team_folder_tree call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree. +# +def delete_team_folder_tree + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + + # Call the delete_team_folder_tree method. + result = client.delete_team_folder_tree request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb new file mode 100644 index 000000000000..68073c51b458 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config. +# +def delete_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + + # Call the delete_workflow_config method. + result = client.delete_workflow_config request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb new file mode 100644 index 000000000000..656f44075001 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation. +# +def delete_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + + # Call the delete_workflow_invocation method. + result = client.delete_workflow_invocation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb new file mode 100644 index 000000000000..56e820984467 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace. +# +def delete_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + + # Call the delete_workspace method. + result = client.delete_workspace request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb new file mode 100644 index 000000000000..8730eefe3970 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchFileDiff_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_file_diff call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff. +# +def fetch_file_diff + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + + # Call the fetch_file_diff method. + result = client.fetch_file_diff request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb new file mode 100644 index 000000000000..4715c81828c0 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_file_git_statuses call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses. +# +def fetch_file_git_statuses + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + + # Call the fetch_file_git_statuses method. + result = client.fetch_file_git_statuses request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb new file mode 100644 index 000000000000..0fc4c454effd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_git_ahead_behind call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind. +# +def fetch_git_ahead_behind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + + # Call the fetch_git_ahead_behind method. + result = client.fetch_git_ahead_behind request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb new file mode 100644 index 000000000000..3c55465ceb19 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchRemoteBranches_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_remote_branches call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches. +# +def fetch_remote_branches + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + + # Call the fetch_remote_branches method. + result = client.fetch_remote_branches request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb new file mode 100644 index 000000000000..da57dd87c79e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_repository_history call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history. +# +def fetch_repository_history + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + + # Call the fetch_repository_history method. + result = client.fetch_repository_history request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb new file mode 100644 index 000000000000..999fd435d184 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetCompilationResult_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_compilation_result call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result. +# +def get_compilation_result + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + + # Call the get_compilation_result method. + result = client.get_compilation_result request + + # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + p result +end +# [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb new file mode 100644 index 000000000000..e783c6e72d27 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_config. +# +def get_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetConfigRequest.new + + # Call the get_config method. + result = client.get_config request + + # The returned object is of type Google::Cloud::Dataform::V1::Config. + p result +end +# [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb new file mode 100644 index 000000000000..689877e96673 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_folder. +# +def get_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetFolderRequest.new + + # Call the get_folder method. + result = client.get_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb new file mode 100644 index 000000000000..df48c36f2d16 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetIamPolicy_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_iam_policy call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END dataform_v1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb new file mode 100644 index 000000000000..a84831df98d5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_release_config. +# +def get_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + + # Call the get_release_config method. + result = client.get_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb new file mode 100644 index 000000000000..c5072fb2408f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_repository. +# +def get_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + + # Call the get_repository method. + result = client.get_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb new file mode 100644 index 000000000000..287238e52743 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder. +# +def get_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + + # Call the get_team_folder method. + result = client.get_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb new file mode 100644 index 000000000000..f381745b38fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config. +# +def get_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + + # Call the get_workflow_config method. + result = client.get_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb new file mode 100644 index 000000000000..7a4356138297 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation. +# +def get_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + + # Call the get_workflow_invocation method. + result = client.get_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb new file mode 100644 index 000000000000..06b3bd6fe5eb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workspace. +# +def get_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + + # Call the get_workspace method. + result = client.get_workspace request + + # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb new file mode 100644 index 000000000000..921bd63946d7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_InstallNpmPackages_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the install_npm_packages call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages. +# +def install_npm_packages + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + + # Call the install_npm_packages method. + result = client.install_npm_packages request + + # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + p result +end +# [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb new file mode 100644 index 000000000000..593c43c2b30e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListCompilationResults_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_compilation_results call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results. +# +def list_compilation_results + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + + # Call the list_compilation_results method. + result = client.list_compilation_results request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + p item + end +end +# [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb new file mode 100644 index 000000000000..8ea574eff2a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListReleaseConfigs_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_release_configs call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs. +# +def list_release_configs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + + # Call the list_release_configs method. + result = client.list_release_configs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + p item + end +end +# [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb new file mode 100644 index 000000000000..321b0cf9c512 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListRepositories_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_repositories call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_repositories. +# +def list_repositories + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + + # Call the list_repositories method. + result = client.list_repositories request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + p item + end +end +# [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb new file mode 100644 index 000000000000..cc9629d319fb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workflow_configs call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs. +# +def list_workflow_configs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + + # Call the list_workflow_configs method. + result = client.list_workflow_configs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb new file mode 100644 index 000000000000..13e62b798423 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workflow_invocations call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations. +# +def list_workflow_invocations + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + + # Call the list_workflow_invocations method. + result = client.list_workflow_invocations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb new file mode 100644 index 000000000000..8f9be608db55 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkspaces_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workspaces call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces. +# +def list_workspaces + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + + # Call the list_workspaces method. + result = client.list_workspaces request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb new file mode 100644 index 000000000000..47f391f846c6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MakeDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the make_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#make_directory. +# +def make_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + + # Call the make_directory method. + result = client.make_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb new file mode 100644 index 000000000000..fb67af9605e9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_directory. +# +def move_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + + # Call the move_directory method. + result = client.move_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb new file mode 100644 index 000000000000..4f22d16e6721 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_file. +# +def move_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveFileRequest.new + + # Call the move_file method. + result = client.move_file request + + # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb new file mode 100644 index 000000000000..eebe84d46640 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_folder. +# +def move_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + + # Call the move_folder method. + result = client.move_folder request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb new file mode 100644 index 000000000000..4eca8dd9c54f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_repository. +# +def move_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + + # Call the move_repository method. + result = client.move_repository request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb new file mode 100644 index 000000000000..d929a9ff389b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_PullGitCommits_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the pull_git_commits call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits. +# +def pull_git_commits + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + + # Call the pull_git_commits method. + result = client.pull_git_commits request + + # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + p result +end +# [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb new file mode 100644 index 000000000000..a68f07194b2b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_PushGitCommits_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the push_git_commits call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits. +# +def push_git_commits + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + + # Call the push_git_commits method. + result = client.push_git_commits request + + # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + p result +end +# [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb new file mode 100644 index 000000000000..5639fdf8046b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_compilation_result_actions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions. +# +def query_compilation_result_actions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + + # Call the query_compilation_result_actions method. + result = client.query_compilation_result_actions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb new file mode 100644 index 000000000000..b369a3508ead --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_directory_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents. +# +def query_directory_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + + # Call the query_directory_contents method. + result = client.query_directory_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb new file mode 100644 index 000000000000..ad16707edc04 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryFolderContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_folder_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents. +# +def query_folder_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + + # Call the query_folder_contents method. + result = client.query_folder_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb new file mode 100644 index 000000000000..60f03d3438fe --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_repository_directory_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents. +# +def query_repository_directory_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + + # Call the query_repository_directory_contents method. + result = client.query_repository_directory_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb new file mode 100644 index 000000000000..90a3760b3221 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_team_folder_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents. +# +def query_team_folder_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + + # Call the query_team_folder_contents method. + result = client.query_team_folder_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb new file mode 100644 index 000000000000..d070b3379fd4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryUserRootContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_user_root_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents. +# +def query_user_root_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + + # Call the query_user_root_contents method. + result = client.query_user_root_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb new file mode 100644 index 000000000000..d44f575db9f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_workflow_invocation_actions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions. +# +def query_workflow_invocation_actions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + + # Call the query_workflow_invocation_actions method. + result = client.query_workflow_invocation_actions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb new file mode 100644 index 000000000000..9d32a0e63b2e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ReadFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the read_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#read_file. +# +def read_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ReadFileRequest.new + + # Call the read_file method. + result = client.read_file request + + # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb new file mode 100644 index 000000000000..52f0945b9d40 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ReadRepositoryFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the read_repository_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file. +# +def read_repository_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + + # Call the read_repository_file method. + result = client.read_repository_file request + + # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb new file mode 100644 index 000000000000..797de4b0ddad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_RemoveDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the remove_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#remove_directory. +# +def remove_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + + # Call the remove_directory method. + result = client.remove_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb new file mode 100644 index 000000000000..7e1ae41d3621 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_RemoveFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the remove_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#remove_file. +# +def remove_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + + # Call the remove_file method. + result = client.remove_file request + + # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb new file mode 100644 index 000000000000..3e320ac0b35b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the reset_workspace_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes. +# +def reset_workspace_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + + # Call the reset_workspace_changes method. + result = client.reset_workspace_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb new file mode 100644 index 000000000000..d6359d3370f5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SearchFiles_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the search_files call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#search_files. +# +def search_files + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + + # Call the search_files method. + result = client.search_files request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + p item + end +end +# [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb new file mode 100644 index 000000000000..4a5fa15a73e6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SearchTeamFolders_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the search_team_folders call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders. +# +def search_team_folders + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + + # Call the search_team_folders method. + result = client.search_team_folders request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + p item + end +end +# [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb new file mode 100644 index 000000000000..335c8370204f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SetIamPolicy_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the set_iam_policy call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END dataform_v1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb new file mode 100644 index 000000000000..9c833d143ff9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_TestIamPermissions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the test_iam_permissions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END dataform_v1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb new file mode 100644 index 000000000000..cda3be7976e1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_config. +# +def update_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + + # Call the update_config method. + result = client.update_config request + + # The returned object is of type Google::Cloud::Dataform::V1::Config. + p result +end +# [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb new file mode 100644 index 000000000000..f2f0cfad66fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_folder. +# +def update_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + + # Call the update_folder method. + result = client.update_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb new file mode 100644 index 000000000000..67f11c154df8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_release_config. +# +def update_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + + # Call the update_release_config method. + result = client.update_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb new file mode 100644 index 000000000000..35f7462d0dac --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_repository. +# +def update_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + + # Call the update_repository method. + result = client.update_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb new file mode 100644 index 000000000000..b98113a24978 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder. +# +def update_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + + # Call the update_team_folder method. + result = client.update_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb new file mode 100644 index 000000000000..570ff222440b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config. +# +def update_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + + # Call the update_workflow_config method. + result = client.update_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb new file mode 100644 index 000000000000..75fabd872e56 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_WriteFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the write_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#write_file. +# +def write_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::WriteFileRequest.new + + # Call the write_file method. + result = client.write_file request + + # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb new file mode 100644 index 000000000000..ac17556a7c35 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_CancelOperation_sync] +require "google/longrunning" + +## +# Snippet for the cancel_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#cancel_operation. +# +def cancel_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::CancelOperationRequest.new + + # Call the cancel_operation method. + result = client.cancel_operation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Operations_CancelOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb new file mode 100644 index 000000000000..5a5ca99c1168 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_DeleteOperation_sync] +require "google/longrunning" + +## +# Snippet for the delete_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#delete_operation. +# +def delete_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::DeleteOperationRequest.new + + # Call the delete_operation method. + result = client.delete_operation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Operations_DeleteOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb new file mode 100644 index 000000000000..cd1170168513 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_GetOperation_sync] +require "google/longrunning" + +## +# Snippet for the get_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#get_operation. +# +def get_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::GetOperationRequest.new + + # Call the get_operation method. + result = client.get_operation request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Operations_GetOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb new file mode 100644 index 000000000000..f9b07ec66d86 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_ListOperations_sync] +require "google/longrunning" + +## +# Snippet for the list_operations call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#list_operations. +# +def list_operations + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::ListOperationsRequest.new + + # Call the list_operations method. + result = client.list_operations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Longrunning::Operation. + p item + end +end +# [END dataform_v1_generated_Operations_ListOperations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb new file mode 100644 index 000000000000..bbec9a28ddd7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_WaitOperation_sync] +require "google/longrunning" + +## +# Snippet for the wait_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#wait_operation. +# +def wait_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::WaitOperationRequest.new + + # Call the wait_operation method. + result = client.wait_operation request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Operations_WaitOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json new file mode 100644 index 000000000000..6ded7292abaa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json @@ -0,0 +1,2935 @@ +{ + "client_library": { + "name": "google-cloud-dataform-v1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.cloud.dataform.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "region_tag": "dataform_v1_generated_Dataform_GetTeamFolder_sync", + "title": "Snippet for the get_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder.", + "file": "dataform/get_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateTeamFolder_sync", + "title": "Snippet for the create_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder.", + "file": "dataform/create_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateTeamFolder_sync", + "title": "Snippet for the update_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder.", + "file": "dataform/update_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolder_sync", + "title": "Snippet for the delete_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder.", + "file": "dataform/delete_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync", + "title": "Snippet for the delete_team_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree.", + "file": "dataform/delete_team_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_sync", + "title": "Snippet for the query_team_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents.", + "file": "dataform/query_team_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_team_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryTeamFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SearchTeamFolders_sync", + "title": "Snippet for the search_team_folders call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders.", + "file": "dataform/search_team_folders.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_team_folders", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SearchTeamFolders", + "full_name": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetFolder_sync", + "title": "Snippet for the get_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_folder.", + "file": "dataform/get_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateFolder_sync", + "title": "Snippet for the create_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_folder.", + "file": "dataform/create_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateFolder_sync", + "title": "Snippet for the update_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_folder.", + "file": "dataform/update_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolder_sync", + "title": "Snippet for the delete_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder.", + "file": "dataform/delete_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolderTree_sync", + "title": "Snippet for the delete_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree.", + "file": "dataform/delete_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryFolderContents_sync", + "title": "Snippet for the query_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents.", + "file": "dataform/query_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryUserRootContents_sync", + "title": "Snippet for the query_user_root_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents.", + "file": "dataform/query_user_root_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_user_root_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryUserRootContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveFolder_sync", + "title": "Snippet for the move_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_folder.", + "file": "dataform/move_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveFolder", + "full_name": "google.cloud.dataform.v1.Dataform.MoveFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListRepositories_sync", + "title": "Snippet for the list_repositories call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_repositories.", + "file": "dataform/list_repositories.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_repositories", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_repositories", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListRepositoriesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListRepositoriesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListRepositories", + "full_name": "google.cloud.dataform.v1.Dataform.ListRepositories", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetRepository_sync", + "title": "Snippet for the get_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_repository.", + "file": "dataform/get_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetRepository", + "full_name": "google.cloud.dataform.v1.Dataform.GetRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateRepository_sync", + "title": "Snippet for the create_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_repository.", + "file": "dataform/create_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateRepository", + "full_name": "google.cloud.dataform.v1.Dataform.CreateRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateRepository_sync", + "title": "Snippet for the update_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_repository.", + "file": "dataform/update_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateRepository", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteRepository_sync", + "title": "Snippet for the delete_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_repository.", + "file": "dataform/delete_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteRepository", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveRepository_sync", + "title": "Snippet for the move_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_repository.", + "file": "dataform/move_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveRepository", + "full_name": "google.cloud.dataform.v1.Dataform.MoveRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_sync", + "title": "Snippet for the commit_repository_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes.", + "file": "dataform/commit_repository_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "commit_repository_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CommitRepositoryChanges", + "full_name": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ReadRepositoryFile_sync", + "title": "Snippet for the read_repository_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file.", + "file": "dataform/read_repository_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "read_repository_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ReadRepositoryFile", + "full_name": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync", + "title": "Snippet for the query_repository_directory_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents.", + "file": "dataform/query_repository_directory_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_repository_directory_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryRepositoryDirectoryContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchRepositoryHistory_sync", + "title": "Snippet for the fetch_repository_history call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history.", + "file": "dataform/fetch_repository_history.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_repository_history", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchRepositoryHistory", + "full_name": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync", + "title": "Snippet for the compute_repository_access_token_status call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status.", + "file": "dataform/compute_repository_access_token_status.rb", + "language": "RUBY", + "client_method": { + "short_name": "compute_repository_access_token_status", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ComputeRepositoryAccessTokenStatus", + "full_name": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchRemoteBranches_sync", + "title": "Snippet for the fetch_remote_branches call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches.", + "file": "dataform/fetch_remote_branches.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_remote_branches", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchRemoteBranches", + "full_name": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkspaces_sync", + "title": "Snippet for the list_workspaces call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces.", + "file": "dataform/list_workspaces.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workspaces", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkspacesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkspacesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkspaces", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkspaces", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkspace_sync", + "title": "Snippet for the get_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workspace.", + "file": "dataform/get_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Workspace", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkspace_sync", + "title": "Snippet for the create_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workspace.", + "file": "dataform/create_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Workspace", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkspace_sync", + "title": "Snippet for the delete_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace.", + "file": "dataform/delete_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_InstallNpmPackages_sync", + "title": "Snippet for the install_npm_packages call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages.", + "file": "dataform/install_npm_packages.rb", + "language": "RUBY", + "client_method": { + "short_name": "install_npm_packages", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "InstallNpmPackages", + "full_name": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_PullGitCommits_sync", + "title": "Snippet for the pull_git_commits call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits.", + "file": "dataform/pull_git_commits.rb", + "language": "RUBY", + "client_method": { + "short_name": "pull_git_commits", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::PullGitCommitsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::PullGitCommitsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "PullGitCommits", + "full_name": "google.cloud.dataform.v1.Dataform.PullGitCommits", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_PushGitCommits_sync", + "title": "Snippet for the push_git_commits call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits.", + "file": "dataform/push_git_commits.rb", + "language": "RUBY", + "client_method": { + "short_name": "push_git_commits", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::PushGitCommitsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::PushGitCommitsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "PushGitCommits", + "full_name": "google.cloud.dataform.v1.Dataform.PushGitCommits", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchFileGitStatuses_sync", + "title": "Snippet for the fetch_file_git_statuses call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses.", + "file": "dataform/fetch_file_git_statuses.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_file_git_statuses", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchFileGitStatuses", + "full_name": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchGitAheadBehind_sync", + "title": "Snippet for the fetch_git_ahead_behind call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind.", + "file": "dataform/fetch_git_ahead_behind.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_git_ahead_behind", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchGitAheadBehind", + "full_name": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync", + "title": "Snippet for the commit_workspace_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes.", + "file": "dataform/commit_workspace_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "commit_workspace_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CommitWorkspaceChanges", + "full_name": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync", + "title": "Snippet for the reset_workspace_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes.", + "file": "dataform/reset_workspace_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "reset_workspace_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ResetWorkspaceChanges", + "full_name": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchFileDiff_sync", + "title": "Snippet for the fetch_file_diff call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff.", + "file": "dataform/fetch_file_diff.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_file_diff", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchFileDiffRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchFileDiffResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchFileDiff", + "full_name": "google.cloud.dataform.v1.Dataform.FetchFileDiff", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryDirectoryContents_sync", + "title": "Snippet for the query_directory_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents.", + "file": "dataform/query_directory_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_directory_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryDirectoryContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SearchFiles_sync", + "title": "Snippet for the search_files call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_files.", + "file": "dataform/search_files.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_files", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_files", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::SearchFilesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::SearchFilesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SearchFiles", + "full_name": "google.cloud.dataform.v1.Dataform.SearchFiles", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MakeDirectory_sync", + "title": "Snippet for the make_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#make_directory.", + "file": "dataform/make_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "make_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#make_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MakeDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MakeDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MakeDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.MakeDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_RemoveDirectory_sync", + "title": "Snippet for the remove_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_directory.", + "file": "dataform/remove_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "remove_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::RemoveDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::RemoveDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "RemoveDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.RemoveDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveDirectory_sync", + "title": "Snippet for the move_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_directory.", + "file": "dataform/move_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MoveDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.MoveDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ReadFile_sync", + "title": "Snippet for the read_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_file.", + "file": "dataform/read_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "read_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ReadFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReadFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ReadFile", + "full_name": "google.cloud.dataform.v1.Dataform.ReadFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_RemoveFile_sync", + "title": "Snippet for the remove_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_file.", + "file": "dataform/remove_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "remove_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::RemoveFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::RemoveFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "RemoveFile", + "full_name": "google.cloud.dataform.v1.Dataform.RemoveFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveFile_sync", + "title": "Snippet for the move_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_file.", + "file": "dataform/move_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MoveFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveFile", + "full_name": "google.cloud.dataform.v1.Dataform.MoveFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_WriteFile_sync", + "title": "Snippet for the write_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#write_file.", + "file": "dataform/write_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "write_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#write_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::WriteFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WriteFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "WriteFile", + "full_name": "google.cloud.dataform.v1.Dataform.WriteFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListReleaseConfigs_sync", + "title": "Snippet for the list_release_configs call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs.", + "file": "dataform/list_release_configs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_release_configs", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListReleaseConfigs", + "full_name": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetReleaseConfig_sync", + "title": "Snippet for the get_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_release_config.", + "file": "dataform/get_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateReleaseConfig_sync", + "title": "Snippet for the create_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_release_config.", + "file": "dataform/create_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateReleaseConfig_sync", + "title": "Snippet for the update_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_release_config.", + "file": "dataform/update_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteReleaseConfig_sync", + "title": "Snippet for the delete_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config.", + "file": "dataform/delete_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListCompilationResults_sync", + "title": "Snippet for the list_compilation_results call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results.", + "file": "dataform/list_compilation_results.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_compilation_results", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListCompilationResultsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListCompilationResultsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListCompilationResults", + "full_name": "google.cloud.dataform.v1.Dataform.ListCompilationResults", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetCompilationResult_sync", + "title": "Snippet for the get_compilation_result call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result.", + "file": "dataform/get_compilation_result.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_compilation_result", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetCompilationResultRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetCompilationResult", + "full_name": "google.cloud.dataform.v1.Dataform.GetCompilationResult", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateCompilationResult_sync", + "title": "Snippet for the create_compilation_result call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result.", + "file": "dataform/create_compilation_result.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_compilation_result", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateCompilationResultRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateCompilationResult", + "full_name": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryCompilationResultActions_sync", + "title": "Snippet for the query_compilation_result_actions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions.", + "file": "dataform/query_compilation_result_actions.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_compilation_result_actions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryCompilationResultActions", + "full_name": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkflowConfigs_sync", + "title": "Snippet for the list_workflow_configs call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs.", + "file": "dataform/list_workflow_configs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workflow_configs", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkflowConfigs", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkflowConfig_sync", + "title": "Snippet for the get_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config.", + "file": "dataform/get_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowConfig_sync", + "title": "Snippet for the create_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config.", + "file": "dataform/create_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync", + "title": "Snippet for the update_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config.", + "file": "dataform/update_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync", + "title": "Snippet for the delete_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config.", + "file": "dataform/delete_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkflowInvocations_sync", + "title": "Snippet for the list_workflow_invocations call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations.", + "file": "dataform/list_workflow_invocations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workflow_invocations", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkflowInvocations", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkflowInvocation_sync", + "title": "Snippet for the get_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation.", + "file": "dataform/get_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync", + "title": "Snippet for the create_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation.", + "file": "dataform/create_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync", + "title": "Snippet for the delete_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation.", + "file": "dataform/delete_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync", + "title": "Snippet for the cancel_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation.", + "file": "dataform/cancel_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "cancel_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CancelWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync", + "title": "Snippet for the query_workflow_invocation_actions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions.", + "file": "dataform/query_workflow_invocation_actions.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_workflow_invocation_actions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryWorkflowInvocationActions", + "full_name": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetConfig_sync", + "title": "Snippet for the get_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_config.", + "file": "dataform/get_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Config", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateConfig_sync", + "title": "Snippet for the update_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_config.", + "file": "dataform/update_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Config", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy.", + "file": "dataform/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.GetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy.", + "file": "dataform/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.SetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions.", + "file": "dataform/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.cloud.dataform.v1.Dataform.TestIamPermissions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json new file mode 100644 index 000000000000..ae5311ef4402 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json @@ -0,0 +1,215 @@ +{ + "client_library": { + "name": "google-cloud-dataform-v1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.longrunning", + "version": "longrunning" + } + ] + }, + "snippets": [ + { + "region_tag": "dataform_v1_generated_Operations_ListOperations_sync", + "title": "Snippet for the list_operations call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#list_operations.", + "file": "operations/list_operations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_operations", + "full_name": "::Google::Longrunning::Operations::Client#list_operations", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::ListOperationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::ListOperationsResponse", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "ListOperations", + "full_name": "google.longrunning.Operations.ListOperations", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_GetOperation_sync", + "title": "Snippet for the get_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#get_operation.", + "file": "operations/get_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_operation", + "full_name": "::Google::Longrunning::Operations::Client#get_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::GetOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "GetOperation", + "full_name": "google.longrunning.Operations.GetOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_DeleteOperation_sync", + "title": "Snippet for the delete_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#delete_operation.", + "file": "operations/delete_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_operation", + "full_name": "::Google::Longrunning::Operations::Client#delete_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::DeleteOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "DeleteOperation", + "full_name": "google.longrunning.Operations.DeleteOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_CancelOperation_sync", + "title": "Snippet for the cancel_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#cancel_operation.", + "file": "operations/cancel_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "cancel_operation", + "full_name": "::Google::Longrunning::Operations::Client#cancel_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::CancelOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "CancelOperation", + "full_name": "google.longrunning.Operations.CancelOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_WaitOperation_sync", + "title": "Snippet for the wait_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#wait_operation.", + "file": "operations/wait_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "wait_operation", + "full_name": "::Google::Longrunning::Operations::Client#wait_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::WaitOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "WaitOperation", + "full_name": "google.longrunning.Operations.WaitOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb new file mode 100644 index 000000000000..98458c3d1dbd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform_services_pb" +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb new file mode 100644 index 000000000000..1843f1d3cb44 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb @@ -0,0 +1,211 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_compilation_result_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.compilation_result_path project: "value0", location: "value1", repository: "value2", compilation_result: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/compilationResults/value3", path + end + end + + def test_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.config_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1/config", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_crypto_key_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path + end + end + + def test_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.folder_path project: "value0", location: "value1", folder: "value2" + assert_equal "projects/value0/locations/value1/folders/value2", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_notebook_runtime_template_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.notebook_runtime_template_path project: "value0", location: "value1", notebook_runtime_template: "value2" + assert_equal "projects/value0/locations/value1/notebookRuntimeTemplates/value2", path + end + end + + def test_release_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.release_config_path project: "value0", location: "value1", repository: "value2", release_config: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/releaseConfigs/value3", path + end + end + + def test_repository_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.repository_path project: "value0", location: "value1", repository: "value2" + assert_equal "projects/value0/locations/value1/repositories/value2", path + end + end + + def test_secret_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.secret_version_path project: "value0", secret: "value1", version: "value2" + assert_equal "projects/value0/secrets/value1/versions/value2", path + end + end + + def test_team_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.team_folder_path project: "value0", location: "value1", team_folder: "value2" + assert_equal "projects/value0/locations/value1/teamFolders/value2", path + end + end + + def test_workflow_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workflow_config_path project: "value0", location: "value1", repository: "value2", workflow_config: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workflowConfigs/value3", path + end + end + + def test_workflow_invocation_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workflow_invocation_path project: "value0", location: "value1", repository: "value2", workflow_invocation: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workflowInvocations/value3", path + end + end + + def test_workspace_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workspace_path project: "value0", location: "value1", repository: "value2", workspace: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workspaces/value3", path + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb new file mode 100644 index 000000000000..07fde9553884 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb @@ -0,0 +1,4148 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform/rest" + + +class ::Google::Cloud::Dataform::V1::Dataform::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_count + end + end + end + + def test_create_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_count + end + end + end + + def test_update_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_count + end + end + end + + def test_query_team_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_team_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_count + end + end + end + + def test_search_team_folders + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_team_folders_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_count + end + end + end + + def test_get_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_count + end + end + end + + def test_create_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_count + end + end + end + + def test_update_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_count + end + end + end + + def test_delete_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_count + end + end + end + + def test_delete_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_count + end + end + end + + def test_query_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_count + end + end + end + + def test_query_user_root_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_user_root_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_count + end + end + end + + def test_move_folder + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_count + end + end + end + + def test_list_repositories + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_repositories_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_repositories_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_repositories_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_repositories_client_stub.call_count + end + end + end + + def test_get_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_repository({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_repository name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_repository({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_repository_client_stub.call_count + end + end + end + + def test_create_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + repository = {} + repository_id = "hello world" + + create_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_repository parent: parent, repository: repository, repository_id: repository_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_repository_client_stub.call_count + end + end + end + + def test_update_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + repository = {} + + update_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_repository({ update_mask: update_mask, repository: repository }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_repository update_mask: update_mask, repository: repository do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_repository({ update_mask: update_mask, repository: repository }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_repository_client_stub.call_count + end + end + end + + def test_delete_repository + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_repository({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_repository name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_repository({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_repository_client_stub.call_count + end + end + end + + def test_move_repository + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_count + end + end + end + + def test_commit_repository_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_metadata = {} + required_head_commit_sha = "hello world" + file_operations = {} + + commit_repository_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_repository_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, commit_repository_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, commit_repository_changes_client_stub.call_count + end + end + end + + def test_read_repository_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + + read_repository_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_repository_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, read_repository_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.read_repository_file name: name, commit_sha: commit_sha, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, read_repository_file_client_stub.call_count + end + end + end + + def test_query_repository_directory_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + + query_repository_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_repository_directory_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_repository_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_repository_directory_contents_client_stub.call_count + end + end + end + + def test_fetch_repository_history + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + fetch_repository_history_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_repository_history_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_repository_history_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_repository_history_client_stub.call_count + end + end + end + + def test_compute_repository_access_token_status + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + compute_repository_access_token_status_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_compute_repository_access_token_status_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, compute_repository_access_token_status_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.compute_repository_access_token_status({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.compute_repository_access_token_status name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.compute_repository_access_token_status({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, compute_repository_access_token_status_client_stub.call_count + end + end + end + + def test_fetch_remote_branches + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_remote_branches_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_remote_branches_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_remote_branches_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_remote_branches({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_remote_branches name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_remote_branches({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_remote_branches_client_stub.call_count + end + end + end + + def test_list_workspaces + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workspaces_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workspaces_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workspaces_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workspaces_client_stub.call_count + end + end + end + + def test_get_workspace + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Workspace.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workspace({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workspace name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workspace({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workspace_client_stub.call_count + end + end + end + + def test_create_workspace + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Workspace.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workspace = {} + workspace_id = "hello world" + + create_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workspace_client_stub.call_count + end + end + end + + def test_delete_workspace + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workspace({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workspace name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workspace({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workspace_client_stub.call_count + end + end + end + + def test_install_npm_packages + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + + install_npm_packages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_install_npm_packages_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, install_npm_packages_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.install_npm_packages({ workspace: workspace }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.install_npm_packages workspace: workspace do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.install_npm_packages({ workspace: workspace }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, install_npm_packages_client_stub.call_count + end + end + end + + def test_pull_git_commits + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + author = {} + + pull_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_pull_git_commits_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, pull_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, pull_git_commits_client_stub.call_count + end + end + end + + def test_push_git_commits + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + push_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_push_git_commits_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, push_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.push_git_commits({ name: name, remote_branch: remote_branch }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.push_git_commits name: name, remote_branch: remote_branch do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.push_git_commits({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, push_git_commits_client_stub.call_count + end + end + end + + def test_fetch_file_git_statuses + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_file_git_statuses_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_git_statuses_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_file_git_statuses_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_file_git_statuses({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_file_git_statuses name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_file_git_statuses({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_file_git_statuses_client_stub.call_count + end + end + end + + def test_fetch_git_ahead_behind + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + fetch_git_ahead_behind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_git_ahead_behind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_git_ahead_behind_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_git_ahead_behind_client_stub.call_count + end + end + end + + def test_commit_workspace_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + author = {} + commit_message = "hello world" + paths = ["hello world"] + + commit_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_workspace_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, commit_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, commit_workspace_changes_client_stub.call_count + end + end + end + + def test_reset_workspace_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + paths = ["hello world"] + clean = true + + reset_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_reset_workspace_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, reset_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.reset_workspace_changes name: name, paths: paths, clean: clean do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, reset_workspace_changes_client_stub.call_count + end + end + end + + def test_fetch_file_diff + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + fetch_file_diff_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_diff_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_file_diff_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_file_diff({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_file_diff workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_file_diff({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_file_diff_client_stub.call_count + end + end + end + + def test_query_directory_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + + query_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_directory_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_directory_contents_client_stub.call_count + end + end + end + + def test_search_files + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + search_files_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_files_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_files_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_files_client_stub.call_count + end + end + end + + def test_make_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + make_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_make_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, make_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.make_directory({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.make_directory workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.make_directory({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, make_directory_client_stub.call_count + end + end + end + + def test_remove_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, remove_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.remove_directory({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.remove_directory workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.remove_directory({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, remove_directory_client_stub.call_count + end + end + end + + def test_move_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_directory workspace: workspace, path: path, new_path: new_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_directory({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_directory_client_stub.call_count + end + end + end + + def test_read_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReadFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + revision = "hello world" + + read_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, read_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.read_file({ workspace: workspace, path: path, revision: revision }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.read_file workspace: workspace, path: path, revision: revision do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.read_file({ workspace: workspace, path: path, revision: revision }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, read_file_client_stub.call_count + end + end + end + + def test_remove_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, remove_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.remove_file({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.remove_file workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.remove_file({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, remove_file_client_stub.call_count + end + end + end + + def test_move_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MoveFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_file workspace: workspace, path: path, new_path: new_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_file({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_file_client_stub.call_count + end + end + end + + def test_write_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WriteFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + contents = "hello world" + + write_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_write_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, write_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.write_file({ workspace: workspace, path: path, contents: contents }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.write_file workspace: workspace, path: path, contents: contents do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.write_file({ workspace: workspace, path: path, contents: contents }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, write_file_client_stub.call_count + end + end + end + + def test_list_release_configs + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_release_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_release_configs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_release_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_release_configs_client_stub.call_count + end + end + end + + def test_get_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_release_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_release_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_release_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_release_config_client_stub.call_count + end + end + end + + def test_create_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_config = {} + release_config_id = "hello world" + + create_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_release_config_client_stub.call_count + end + end + end + + def test_update_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + release_config = {} + + update_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_release_config update_mask: update_mask, release_config: release_config do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_release_config({ update_mask: update_mask, release_config: release_config }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_release_config_client_stub.call_count + end + end + end + + def test_delete_release_config + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_release_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_release_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_release_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_release_config_client_stub.call_count + end + end + end + + def test_list_compilation_results + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_compilation_results_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_compilation_results_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_compilation_results_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_compilation_results_client_stub.call_count + end + end + end + + def test_get_compilation_result + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_compilation_result_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_compilation_result({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_compilation_result name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_compilation_result({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_compilation_result_client_stub.call_count + end + end + end + + def test_create_compilation_result + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + compilation_result = {} + + create_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_compilation_result_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_compilation_result parent: parent, compilation_result: compilation_result do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_compilation_result_client_stub.call_count + end + end + end + + def test_query_compilation_result_actions + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + query_compilation_result_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_compilation_result_actions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_compilation_result_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_compilation_result_actions_client_stub.call_count + end + end + end + + def test_list_workflow_configs + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_workflow_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_configs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workflow_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workflow_configs_client_stub.call_count + end + end + end + + def test_get_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workflow_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workflow_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workflow_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workflow_config_client_stub.call_count + end + end + end + + def test_create_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_config = {} + workflow_config_id = "hello world" + + create_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workflow_config_client_stub.call_count + end + end + end + + def test_update_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + workflow_config = {} + + update_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_workflow_config_client_stub.call_count + end + end + end + + def test_delete_workflow_config + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workflow_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workflow_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workflow_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workflow_config_client_stub.call_count + end + end + end + + def test_list_workflow_invocations + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workflow_invocations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_invocations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workflow_invocations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workflow_invocations_client_stub.call_count + end + end + end + + def test_get_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workflow_invocation_client_stub.call_count + end + end + end + + def test_create_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_invocation = {} + + create_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workflow_invocation_client_stub.call_count + end + end + end + + def test_delete_workflow_invocation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workflow_invocation_client_stub.call_count + end + end + end + + def test_cancel_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_cancel_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, cancel_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.cancel_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.cancel_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.cancel_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, cancel_workflow_invocation_client_stub.call_count + end + end + end + + def test_query_workflow_invocation_actions + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + query_workflow_invocation_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_workflow_invocation_actions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_workflow_invocation_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_workflow_invocation_actions_client_stub.call_count + end + end + end + + def test_get_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Config.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_config_client_stub.call_count + end + end + end + + def test_update_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Config.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + config = {} + update_mask = {} + + update_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_config({ config: config, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_config config: config, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_config({ config: config, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_config_client_stub.call_count + end + end + end + + def test_get_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_count + end + end + end + + def test_set_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_set_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_count + end + end + end + + def test_test_iam_permissions + # Create test objects. + client_result = ::Google::Iam::V1::TestIamPermissionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_test_iam_permissions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb new file mode 100644 index 000000000000..83dcd399b121 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb @@ -0,0 +1,4668 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_rpc_count + end + end + + def test_create_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_rpc_count + end + end + + def test_update_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_team_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_team_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, request + assert_equal "hello world", request["team_folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_rpc_count + end + end + + def test_search_team_folders + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_team_folders, name + assert_kind_of ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_rpc_count + end + end + + def test_get_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_rpc_count + end + end + + def test_create_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_rpc_count + end + end + + def test_update_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, request + assert_equal "hello world", request["folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_rpc_count + end + end + + def test_query_user_root_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_user_root_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_rpc_count + end + end + + def test_move_folder + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveFolderRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_rpc_count + end + end + + def test_list_repositories + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_repositories_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_repositories, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListRepositoriesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_repositories_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_repositories_client_stub.call_rpc_count + end + end + + def test_get_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetRepositoryRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_repository({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_repository name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_repository({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_repository_client_stub.call_rpc_count + end + end + + def test_create_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + repository = {} + repository_id = "hello world" + + create_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateRepositoryRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] + assert_equal "hello world", request["repository_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_repository parent: parent, repository: repository, repository_id: repository_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_repository_client_stub.call_rpc_count + end + end + + def test_update_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + repository = {} + + update_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_repository({ update_mask: update_mask, repository: repository }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_repository update_mask: update_mask, repository: repository do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_repository({ update_mask: update_mask, repository: repository }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_repository_client_stub.call_rpc_count + end + end + + def test_delete_repository + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_repository({ name: name, force: force }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_repository name: name, force: force do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_repository({ name: name, force: force }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_repository_client_stub.call_rpc_count + end + end + + def test_move_repository + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveRepositoryRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_rpc_count + end + end + + def test_commit_repository_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_metadata = {} + required_head_commit_sha = "hello world" + file_operations = {} + + commit_repository_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :commit_repository_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitMetadata), request["commit_metadata"] + assert_equal "hello world", request["required_head_commit_sha"] + assert_equal({}, request["file_operations"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, commit_repository_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, commit_repository_changes_client_stub.call_rpc_count + end + end + + def test_read_repository_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + + read_repository_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :read_repository_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["commit_sha"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, read_repository_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.read_repository_file name: name, commit_sha: commit_sha, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, read_repository_file_client_stub.call_rpc_count + end + end + + def test_query_repository_directory_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + + query_repository_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_repository_directory_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["commit_sha"] + assert_equal "hello world", request["path"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_repository_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_repository_directory_contents_client_stub.call_rpc_count + end + end + + def test_fetch_repository_history + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + fetch_repository_history_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_repository_history, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_repository_history_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_repository_history_client_stub.call_rpc_count + end + end + + def test_compute_repository_access_token_status + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + compute_repository_access_token_status_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :compute_repository_access_token_status, name + assert_kind_of ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, compute_repository_access_token_status_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.compute_repository_access_token_status({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.compute_repository_access_token_status name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.compute_repository_access_token_status({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, compute_repository_access_token_status_client_stub.call_rpc_count + end + end + + def test_fetch_remote_branches + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_remote_branches_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_remote_branches, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_remote_branches_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_remote_branches({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_remote_branches name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_remote_branches({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_remote_branches_client_stub.call_rpc_count + end + end + + def test_list_workspaces + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workspaces_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workspaces, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkspacesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workspaces_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workspaces_client_stub.call_rpc_count + end + end + + def test_get_workspace + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkspaceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workspace({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workspace name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workspace({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workspace_client_stub.call_rpc_count + end + end + + def test_create_workspace + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workspace = {} + workspace_id = "hello world" + + create_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Workspace), request["workspace"] + assert_equal "hello world", request["workspace_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workspace_client_stub.call_rpc_count + end + end + + def test_delete_workspace + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workspace({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workspace name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workspace({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workspace_client_stub.call_rpc_count + end + end + + def test_install_npm_packages + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + + install_npm_packages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :install_npm_packages, name + assert_kind_of ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, request + assert_equal "hello world", request["workspace"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, install_npm_packages_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.install_npm_packages({ workspace: workspace }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.install_npm_packages workspace: workspace do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.install_npm_packages({ workspace: workspace }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, install_npm_packages_client_stub.call_rpc_count + end + end + + def test_pull_git_commits + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + author = {} + + pull_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :pull_git_commits, name + assert_kind_of ::Google::Cloud::Dataform::V1::PullGitCommitsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, pull_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, pull_git_commits_client_stub.call_rpc_count + end + end + + def test_push_git_commits + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + push_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :push_git_commits, name + assert_kind_of ::Google::Cloud::Dataform::V1::PushGitCommitsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, push_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.push_git_commits({ name: name, remote_branch: remote_branch }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.push_git_commits name: name, remote_branch: remote_branch do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.push_git_commits({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, push_git_commits_client_stub.call_rpc_count + end + end + + def test_fetch_file_git_statuses + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_file_git_statuses_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_file_git_statuses, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_file_git_statuses_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_file_git_statuses({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_file_git_statuses name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_file_git_statuses({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_file_git_statuses_client_stub.call_rpc_count + end + end + + def test_fetch_git_ahead_behind + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + fetch_git_ahead_behind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_git_ahead_behind, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_git_ahead_behind_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_git_ahead_behind_client_stub.call_rpc_count + end + end + + def test_commit_workspace_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + author = {} + commit_message = "hello world" + paths = ["hello world"] + + commit_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :commit_workspace_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] + assert_equal "hello world", request["commit_message"] + assert_equal ["hello world"], request["paths"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, commit_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, commit_workspace_changes_client_stub.call_rpc_count + end + end + + def test_reset_workspace_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + paths = ["hello world"] + clean = true + + reset_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :reset_workspace_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal ["hello world"], request["paths"] + assert_equal true, request["clean"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, reset_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.reset_workspace_changes name: name, paths: paths, clean: clean do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, reset_workspace_changes_client_stub.call_rpc_count + end + end + + def test_fetch_file_diff + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + fetch_file_diff_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_file_diff, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileDiffRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_file_diff_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_file_diff({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_file_diff workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_file_diff({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_file_diff_client_stub.call_rpc_count + end + end + + def test_query_directory_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + + query_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_directory_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_directory_contents_client_stub.call_rpc_count + end + end + + def test_search_files + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + search_files_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_files, name + assert_kind_of ::Google::Cloud::Dataform::V1::SearchFilesRequest, request + assert_equal "hello world", request["workspace"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_files_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_files_client_stub.call_rpc_count + end + end + + def test_make_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + make_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :make_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::MakeDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, make_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.make_directory({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.make_directory workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.make_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, make_directory_client_stub.call_rpc_count + end + end + + def test_remove_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :remove_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, remove_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.remove_directory({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.remove_directory workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.remove_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, remove_directory_client_stub.call_rpc_count + end + end + + def test_move_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["new_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_directory workspace: workspace, path: path, new_path: new_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_directory({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_directory_client_stub.call_rpc_count + end + end + + def test_read_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReadFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + revision = "hello world" + + read_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :read_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::ReadFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["revision"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, read_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.read_file({ workspace: workspace, path: path, revision: revision }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.read_file workspace: workspace, path: path, revision: revision do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.read_file({ workspace: workspace, path: path, revision: revision }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, read_file_client_stub.call_rpc_count + end + end + + def test_remove_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :remove_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::RemoveFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, remove_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.remove_file({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.remove_file workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.remove_file({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, remove_file_client_stub.call_rpc_count + end + end + + def test_move_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MoveFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["new_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_file workspace: workspace, path: path, new_path: new_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_file({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_file_client_stub.call_rpc_count + end + end + + def test_write_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WriteFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + contents = "hello world" + + write_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :write_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::WriteFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["contents"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, write_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.write_file({ workspace: workspace, path: path, contents: contents }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.write_file workspace: workspace, path: path, contents: contents do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.write_file({ workspace: workspace, path: path, contents: contents }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, write_file_client_stub.call_rpc_count + end + end + + def test_list_release_configs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_release_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_release_configs, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_release_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_release_configs_client_stub.call_rpc_count + end + end + + def test_get_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_release_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_release_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_release_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_release_config_client_stub.call_rpc_count + end + end + + def test_create_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_config = {} + release_config_id = "hello world" + + create_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] + assert_equal "hello world", request["release_config_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_release_config_client_stub.call_rpc_count + end + end + + def test_update_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + release_config = {} + + update_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_release_config update_mask: update_mask, release_config: release_config do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_release_config({ update_mask: update_mask, release_config: release_config }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_release_config_client_stub.call_rpc_count + end + end + + def test_delete_release_config + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_release_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_release_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_release_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_release_config_client_stub.call_rpc_count + end + end + + def test_list_compilation_results + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_compilation_results_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_compilation_results, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_compilation_results_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_compilation_results_client_stub.call_rpc_count + end + end + + def test_get_compilation_result + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_compilation_result, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetCompilationResultRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_compilation_result({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_compilation_result name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_compilation_result({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_compilation_result_client_stub.call_rpc_count + end + end + + def test_create_compilation_result + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + compilation_result = {} + + create_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_compilation_result, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CompilationResult), request["compilation_result"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_compilation_result parent: parent, compilation_result: compilation_result do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_compilation_result_client_stub.call_rpc_count + end + end + + def test_query_compilation_result_actions + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + query_compilation_result_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_compilation_result_actions, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_compilation_result_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_compilation_result_actions_client_stub.call_rpc_count + end + end + + def test_list_workflow_configs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_workflow_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workflow_configs, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workflow_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workflow_configs_client_stub.call_rpc_count + end + end + + def test_get_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workflow_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workflow_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workflow_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workflow_config_client_stub.call_rpc_count + end + end + + def test_create_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_config = {} + workflow_config_id = "hello world" + + create_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] + assert_equal "hello world", request["workflow_config_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workflow_config_client_stub.call_rpc_count + end + end + + def test_update_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + workflow_config = {} + + update_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_workflow_config_client_stub.call_rpc_count + end + end + + def test_delete_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workflow_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workflow_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workflow_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workflow_config_client_stub.call_rpc_count + end + end + + def test_list_workflow_invocations + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workflow_invocations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workflow_invocations, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workflow_invocations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workflow_invocations_client_stub.call_rpc_count + end + end + + def test_get_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_create_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_invocation = {} + + create_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowInvocation), request["workflow_invocation"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_delete_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_cancel_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_query_workflow_invocation_actions + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + query_workflow_invocation_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_workflow_invocation_actions, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_workflow_invocation_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_workflow_invocation_actions_client_stub.call_rpc_count + end + end + + def test_get_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Config.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_config_client_stub.call_rpc_count + end + end + + def test_update_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Config.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + config = {} + update_mask = {} + + update_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Config), request["config"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_config({ config: config, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_config config: config, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_config({ config: config, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_config_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb new file mode 100644 index 000000000000..61e4289027f4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/longrunning/operations_pb" +require "google/longrunning/operations_services_pb" +require "google/longrunning/operations" + +class ::Google::Longrunning::Operations::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb new file mode 100644 index 000000000000..deeeeee2c568 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb @@ -0,0 +1,319 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/longrunning/operations_pb" +require "google/longrunning/operations/rest" + + +class ::Google::Longrunning::Operations::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create test objects. + client_result = ::Google::Longrunning::ListOperationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_list_operations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_count + end + end + end + + def test_get_operation + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_get_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_count + end + end + end + + def test_delete_operation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_delete_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_count + end + end + end + + def test_cancel_operation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_cancel_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.cancel_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.cancel_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.cancel_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb new file mode 100644 index 000000000000..72ed015901db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb @@ -0,0 +1,433 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/longrunning/operations_pb" +require "google/longrunning/operations" + +class ::Google::Longrunning::Operations::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Longrunning::Operations::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Longrunning::Operations::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From b11d8e14cabc2acf8fd533fba22eaa3cd23b1f8b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 25 Mar 2026 21:10:05 +0000 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../proto_docs/google/api/client.rb | 174 +- .../google-cloud-dataform-v1/.gitignore | 22 - .../.repo-metadata.json | 17 - .../google-cloud-dataform-v1/.rubocop.yml | 33 - .../google-cloud-dataform-v1/.toys.rb | 28 - .../google-cloud-dataform-v1/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../google-cloud-dataform-v1/CHANGELOG.md | 2 - .../google-cloud-dataform-v1/Gemfile | 14 - .../google-cloud-dataform-v1/LICENSE.md | 201 - .../google-cloud-dataform-v1/README.md | 154 - .../google-cloud-dataform-v1/Rakefile | 169 - .../gapic_metadata.json | 383 - .../google-cloud-dataform-v1.gemspec | 30 - .../lib/google-cloud-dataform-v1.rb | 22 - .../lib/google/cloud/dataform/v1.rb | 45 - .../cloud/dataform/v1/bindings_override.rb | 75 - .../lib/google/cloud/dataform/v1/dataform.rb | 57 - .../cloud/dataform/v1/dataform/client.rb | 7794 ----------------- .../cloud/dataform/v1/dataform/credentials.rb | 48 - .../cloud/dataform/v1/dataform/operations.rb | 841 -- .../cloud/dataform/v1/dataform/paths.rb | 311 - .../google/cloud/dataform/v1/dataform/rest.rb | 55 - .../cloud/dataform/v1/dataform/rest/client.rb | 7248 --------------- .../dataform/v1/dataform/rest/operations.rb | 925 -- .../dataform/v1/dataform/rest/service_stub.rb | 4636 ---------- .../google/cloud/dataform/v1/dataform_pb.rb | 216 - .../cloud/dataform/v1/dataform_services_pb.rb | 234 - .../lib/google/cloud/dataform/v1/rest.rb | 38 - .../lib/google/cloud/dataform/v1/version.rb | 28 - .../lib/google/longrunning.rb | 41 - .../google/longrunning/bindings_override.rb | 71 - .../lib/google/longrunning/operations.rb | 59 - .../google/longrunning/operations/client.rb | 952 -- .../longrunning/operations/credentials.rb | 40 - .../longrunning/operations/operations.rb | 837 -- .../lib/google/longrunning/operations/rest.rb | 57 - .../longrunning/operations/rest/client.rb | 776 -- .../longrunning/operations/rest/operations.rb | 921 -- .../operations/rest/service_stub.rb | 322 - .../lib/google/longrunning/rest.rb | 34 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 589 -- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../google/cloud/dataform/v1/dataform.rb | 3308 ------- .../google/longrunning/operations.rb | 191 - .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/expr.rb | 75 - .../proto_docs/google/type/interval.rb | 45 - .../google-cloud-dataform-v1/snippets/Gemfile | 32 - .../dataform/cancel_workflow_invocation.rb | 47 - .../dataform/commit_repository_changes.rb | 47 - .../dataform/commit_workspace_changes.rb | 47 - .../compute_repository_access_token_status.rb | 47 - .../dataform/create_compilation_result.rb | 47 - .../snippets/dataform/create_folder.rb | 47 - .../dataform/create_release_config.rb | 47 - .../snippets/dataform/create_repository.rb | 47 - .../snippets/dataform/create_team_folder.rb | 47 - .../dataform/create_workflow_config.rb | 47 - .../dataform/create_workflow_invocation.rb | 47 - .../snippets/dataform/create_workspace.rb | 47 - .../snippets/dataform/delete_folder.rb | 47 - .../snippets/dataform/delete_folder_tree.rb | 54 - .../dataform/delete_release_config.rb | 47 - .../snippets/dataform/delete_repository.rb | 47 - .../snippets/dataform/delete_team_folder.rb | 47 - .../dataform/delete_team_folder_tree.rb | 54 - .../dataform/delete_workflow_config.rb | 47 - .../dataform/delete_workflow_invocation.rb | 47 - .../snippets/dataform/delete_workspace.rb | 47 - .../snippets/dataform/fetch_file_diff.rb | 47 - .../dataform/fetch_file_git_statuses.rb | 47 - .../dataform/fetch_git_ahead_behind.rb | 47 - .../dataform/fetch_remote_branches.rb | 47 - .../dataform/fetch_repository_history.rb | 51 - .../dataform/get_compilation_result.rb | 47 - .../snippets/dataform/get_config.rb | 47 - .../snippets/dataform/get_folder.rb | 47 - .../snippets/dataform/get_iam_policy.rb | 47 - .../snippets/dataform/get_release_config.rb | 47 - .../snippets/dataform/get_repository.rb | 47 - .../snippets/dataform/get_team_folder.rb | 47 - .../snippets/dataform/get_workflow_config.rb | 47 - .../dataform/get_workflow_invocation.rb | 47 - .../snippets/dataform/get_workspace.rb | 47 - .../snippets/dataform/install_npm_packages.rb | 47 - .../dataform/list_compilation_results.rb | 51 - .../snippets/dataform/list_release_configs.rb | 51 - .../snippets/dataform/list_repositories.rb | 51 - .../dataform/list_workflow_configs.rb | 51 - .../dataform/list_workflow_invocations.rb | 51 - .../snippets/dataform/list_workspaces.rb | 51 - .../snippets/dataform/make_directory.rb | 47 - .../snippets/dataform/move_directory.rb | 47 - .../snippets/dataform/move_file.rb | 47 - .../snippets/dataform/move_folder.rb | 54 - .../snippets/dataform/move_repository.rb | 54 - .../snippets/dataform/pull_git_commits.rb | 47 - .../snippets/dataform/push_git_commits.rb | 47 - .../query_compilation_result_actions.rb | 51 - .../dataform/query_directory_contents.rb | 51 - .../dataform/query_folder_contents.rb | 51 - .../query_repository_directory_contents.rb | 51 - .../dataform/query_team_folder_contents.rb | 51 - .../dataform/query_user_root_contents.rb | 51 - .../query_workflow_invocation_actions.rb | 51 - .../snippets/dataform/read_file.rb | 47 - .../snippets/dataform/read_repository_file.rb | 47 - .../snippets/dataform/remove_directory.rb | 47 - .../snippets/dataform/remove_file.rb | 47 - .../dataform/reset_workspace_changes.rb | 47 - .../snippets/dataform/search_files.rb | 51 - .../snippets/dataform/search_team_folders.rb | 51 - .../snippets/dataform/set_iam_policy.rb | 47 - .../snippets/dataform/test_iam_permissions.rb | 47 - .../snippets/dataform/update_config.rb | 47 - .../snippets/dataform/update_folder.rb | 47 - .../dataform/update_release_config.rb | 47 - .../snippets/dataform/update_repository.rb | 47 - .../snippets/dataform/update_team_folder.rb | 47 - .../dataform/update_workflow_config.rb | 47 - .../snippets/dataform/write_file.rb | 47 - .../snippets/operations/cancel_operation.rb | 47 - .../snippets/operations/delete_operation.rb | 47 - .../snippets/operations/get_operation.rb | 54 - .../snippets/operations/list_operations.rb | 51 - .../snippets/operations/wait_operation.rb | 54 - ...pet_metadata_google.cloud.dataform.v1.json | 2935 ------- .../snippet_metadata_google.longrunning.json | 215 - .../dataform/v1/dataform_operations_test.rb | 400 - .../cloud/dataform/v1/dataform_paths_test.rb | 211 - .../cloud/dataform/v1/dataform_rest_test.rb | 4148 --------- .../google/cloud/dataform/v1/dataform_test.rb | 4668 ---------- .../longrunning/operations_operations_test.rb | 400 - .../longrunning/operations_rest_test.rb | 319 - .../google/longrunning/operations_test.rb | 433 - .../google-cloud-dataform-v1/test/helper.rb | 26 - 145 files changed, 145 insertions(+), 50738 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.gitignore delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.yardopts delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/README.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/Rakefile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/version.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/bindings_override.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/helper.rb diff --git a/google-cloud-dataform-v1/proto_docs/google/api/client.rb b/google-cloud-dataform-v1/proto_docs/google/api/client.rb index c6b6b60729c9..25b227e61cdc 100644 --- a/google-cloud-dataform-v1/proto_docs/google/api/client.rb +++ b/google-cloud-dataform-v1/proto_docs/google/api/client.rb @@ -141,9 +141,10 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 # @!attribute [rw] service_class_names # @return [::Google::Protobuf::Map{::String => ::String}] # Configure the Java class name to use instead of the service's for its @@ -155,11 +156,11 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. @@ -190,6 +191,20 @@ class CppSettings # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 class PhpSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -318,10 +333,12 @@ class RubySettings # service names and values are the name to be used for the service client # and call options. # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin class GoSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -344,10 +361,10 @@ class RenamedServicesEntry # # Example: # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... # @!attribute [rw] long_running # @return [::Google::Api::MethodSettings::LongRunning] # Describes settings to use for long-running operations when generating @@ -356,14 +373,14 @@ class RenamedServicesEntry # # Example of a YAML configuration:: # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes # @!attribute [rw] auto_populated_fields # @return [::Array<::String>] # List of top-level fields of the request message, that should be @@ -372,11 +389,24 @@ class RenamedServicesEntry # # Example of a YAML configuration: # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 class MethodSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -428,6 +458,77 @@ class SelectiveGapicGeneration extend ::Google::Protobuf::MessageExts::ClassMethods end + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The organization for which the client libraries are being published. # Affects the url where generated docs are published, etc. module ClientLibraryOrganization @@ -469,5 +570,20 @@ module ClientLibraryDestination # Publish the library to package managers like nuget.org and npmjs.com. PACKAGE_MANAGER = 20 end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end end end diff --git a/owl-bot-staging/google-cloud-dataform-v1/.gitignore b/owl-bot-staging/google-cloud-dataform-v1/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json deleted file mode 100644 index 637d61a979b2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_id": "dataform.googleapis.com", - "api_shortname": "dataform", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest", - "distribution_name": "google-cloud-dataform-v1", - "is_cloud": true, - "language": "ruby", - "name": "dataform", - "name_pretty": "Dataform V1 API", - "product_documentation": "https://cloud.google.com/dataform/docs/overview", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details.", - "ruby-cloud-product-url": "https://cloud.google.com/dataform/docs/overview", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml deleted file mode 100644 index 6f84a6d0a78b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-dataform-v1.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-dataform-v1.rb" diff --git a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/.yardopts b/owl-bot-staging/google-cloud-dataform-v1/.yardopts deleted file mode 100644 index f98df5dcdd6e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Dataform V1 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md deleted file mode 100644 index 91f83b42e5fa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-dataform-v1 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-dataform-v1 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/dataform/v1" - -client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/dataform/v1" - -::Google::Longrunning::Operations::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Longrunning::Operations::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-dataform-v1 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/dataform/v1" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Longrunning::Operations::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-dataform-v1/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataform-v1/README.md b/owl-bot-staging/google-cloud-dataform-v1/README.md deleted file mode 100644 index bd989cf181ba..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Dataform V1 API - -Service to develop, version control, and operationalize SQL pipelines in BigQuery. - -Service to develop, version control, and operationalize SQL pipelines in BigQuery. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Dataform V1 API. Most users should consider using -the main client gem, -[google-cloud-dataform](https://rubygems.org/gems/google-cloud-dataform). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-dataform-v1 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/dataform.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/dataform/v1" - -client = ::Google::Longrunning::Operations::Client.new -request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...) -response = client.list_operations request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/dataform/docs/overview) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/dataform/v1" -require "logger" - -client = ::Google::Longrunning::Operations::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-dataform`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-dataform-v1`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-dataform`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-dataform-v1`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataform-v1/Rakefile b/owl-bot-staging/google-cloud-dataform-v1/Rakefile deleted file mode 100644 index 5a65a0a061e8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-dataform-v1 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["GOOGLE_CLOUD_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/longrunning/operations/credentials" - ::Google::Longrunning::Operations::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["GOOGLE_CLOUD_PROJECT"] = project - ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project - ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-dataform-v1 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataform-v1 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataform-v1 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-dataform-v1 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-dataform-v1" - header "google-cloud-dataform-v1 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-dataform-v1 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-dataform-v1 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-dataform-v1 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-dataform-v1 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json deleted file mode 100644 index da5082c37f30..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.cloud.dataform.v1", - "libraryPackage": "::Google::Cloud::Dataform::V1", - "services": { - "Dataform": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataform::V1::Dataform::Client", - "rpcs": { - "GetTeamFolder": { - "methods": [ - "get_team_folder" - ] - }, - "CreateTeamFolder": { - "methods": [ - "create_team_folder" - ] - }, - "UpdateTeamFolder": { - "methods": [ - "update_team_folder" - ] - }, - "DeleteTeamFolder": { - "methods": [ - "delete_team_folder" - ] - }, - "DeleteTeamFolderTree": { - "methods": [ - "delete_team_folder_tree" - ] - }, - "QueryTeamFolderContents": { - "methods": [ - "query_team_folder_contents" - ] - }, - "SearchTeamFolders": { - "methods": [ - "search_team_folders" - ] - }, - "GetFolder": { - "methods": [ - "get_folder" - ] - }, - "CreateFolder": { - "methods": [ - "create_folder" - ] - }, - "UpdateFolder": { - "methods": [ - "update_folder" - ] - }, - "DeleteFolder": { - "methods": [ - "delete_folder" - ] - }, - "DeleteFolderTree": { - "methods": [ - "delete_folder_tree" - ] - }, - "QueryFolderContents": { - "methods": [ - "query_folder_contents" - ] - }, - "QueryUserRootContents": { - "methods": [ - "query_user_root_contents" - ] - }, - "MoveFolder": { - "methods": [ - "move_folder" - ] - }, - "ListRepositories": { - "methods": [ - "list_repositories" - ] - }, - "GetRepository": { - "methods": [ - "get_repository" - ] - }, - "CreateRepository": { - "methods": [ - "create_repository" - ] - }, - "UpdateRepository": { - "methods": [ - "update_repository" - ] - }, - "DeleteRepository": { - "methods": [ - "delete_repository" - ] - }, - "MoveRepository": { - "methods": [ - "move_repository" - ] - }, - "CommitRepositoryChanges": { - "methods": [ - "commit_repository_changes" - ] - }, - "ReadRepositoryFile": { - "methods": [ - "read_repository_file" - ] - }, - "QueryRepositoryDirectoryContents": { - "methods": [ - "query_repository_directory_contents" - ] - }, - "FetchRepositoryHistory": { - "methods": [ - "fetch_repository_history" - ] - }, - "ComputeRepositoryAccessTokenStatus": { - "methods": [ - "compute_repository_access_token_status" - ] - }, - "FetchRemoteBranches": { - "methods": [ - "fetch_remote_branches" - ] - }, - "ListWorkspaces": { - "methods": [ - "list_workspaces" - ] - }, - "GetWorkspace": { - "methods": [ - "get_workspace" - ] - }, - "CreateWorkspace": { - "methods": [ - "create_workspace" - ] - }, - "DeleteWorkspace": { - "methods": [ - "delete_workspace" - ] - }, - "InstallNpmPackages": { - "methods": [ - "install_npm_packages" - ] - }, - "PullGitCommits": { - "methods": [ - "pull_git_commits" - ] - }, - "PushGitCommits": { - "methods": [ - "push_git_commits" - ] - }, - "FetchFileGitStatuses": { - "methods": [ - "fetch_file_git_statuses" - ] - }, - "FetchGitAheadBehind": { - "methods": [ - "fetch_git_ahead_behind" - ] - }, - "CommitWorkspaceChanges": { - "methods": [ - "commit_workspace_changes" - ] - }, - "ResetWorkspaceChanges": { - "methods": [ - "reset_workspace_changes" - ] - }, - "FetchFileDiff": { - "methods": [ - "fetch_file_diff" - ] - }, - "QueryDirectoryContents": { - "methods": [ - "query_directory_contents" - ] - }, - "SearchFiles": { - "methods": [ - "search_files" - ] - }, - "MakeDirectory": { - "methods": [ - "make_directory" - ] - }, - "RemoveDirectory": { - "methods": [ - "remove_directory" - ] - }, - "MoveDirectory": { - "methods": [ - "move_directory" - ] - }, - "ReadFile": { - "methods": [ - "read_file" - ] - }, - "RemoveFile": { - "methods": [ - "remove_file" - ] - }, - "MoveFile": { - "methods": [ - "move_file" - ] - }, - "WriteFile": { - "methods": [ - "write_file" - ] - }, - "ListReleaseConfigs": { - "methods": [ - "list_release_configs" - ] - }, - "GetReleaseConfig": { - "methods": [ - "get_release_config" - ] - }, - "CreateReleaseConfig": { - "methods": [ - "create_release_config" - ] - }, - "UpdateReleaseConfig": { - "methods": [ - "update_release_config" - ] - }, - "DeleteReleaseConfig": { - "methods": [ - "delete_release_config" - ] - }, - "ListCompilationResults": { - "methods": [ - "list_compilation_results" - ] - }, - "GetCompilationResult": { - "methods": [ - "get_compilation_result" - ] - }, - "CreateCompilationResult": { - "methods": [ - "create_compilation_result" - ] - }, - "QueryCompilationResultActions": { - "methods": [ - "query_compilation_result_actions" - ] - }, - "ListWorkflowConfigs": { - "methods": [ - "list_workflow_configs" - ] - }, - "GetWorkflowConfig": { - "methods": [ - "get_workflow_config" - ] - }, - "CreateWorkflowConfig": { - "methods": [ - "create_workflow_config" - ] - }, - "UpdateWorkflowConfig": { - "methods": [ - "update_workflow_config" - ] - }, - "DeleteWorkflowConfig": { - "methods": [ - "delete_workflow_config" - ] - }, - "ListWorkflowInvocations": { - "methods": [ - "list_workflow_invocations" - ] - }, - "GetWorkflowInvocation": { - "methods": [ - "get_workflow_invocation" - ] - }, - "CreateWorkflowInvocation": { - "methods": [ - "create_workflow_invocation" - ] - }, - "DeleteWorkflowInvocation": { - "methods": [ - "delete_workflow_invocation" - ] - }, - "CancelWorkflowInvocation": { - "methods": [ - "cancel_workflow_invocation" - ] - }, - "QueryWorkflowInvocationActions": { - "methods": [ - "query_workflow_invocation_actions" - ] - }, - "GetConfig": { - "methods": [ - "get_config" - ] - }, - "UpdateConfig": { - "methods": [ - "update_config" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec deleted file mode 100644 index 76010660b167..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec +++ /dev/null @@ -1,30 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/dataform/v1/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-dataform-v1" - gem.version = Google::Cloud::Dataform::V1::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details." - gem.summary = "Service to develop, version control, and operationalize SQL pipelines in BigQuery." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "google-cloud-location", "~> 1.0" - gem.add_dependency "google-iam-v1", "~> 1.3" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb deleted file mode 100644 index 015820e39535..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/dataform/v1" -# require "google/longrunning" diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb deleted file mode 100644 index 7a6071098191..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataform/v1/dataform" -require "google/cloud/dataform/v1/version" - -module Google - module Cloud - module Dataform - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/dataform/v1" - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/dataform/v1" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module V1 - end - end - end -end - -helper_path = ::File.join __dir__, "v1", "_helpers.rb" -require "google/cloud/dataform/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb deleted file mode 100644 index 655e4a1eab49..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" - -module Google - module Cloud - module Dataform - ## - # @example Loading just the REST part of this package, including all its services, and instantiating a REST client - # - # require "google/cloud/dataform/v1/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module V1 - ## - # @private - # Initialize the mixin bindings configuration - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - - default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config - default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}/locations", - matches: [ - ["name", %r{^projects/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config - end - yield @configure if block_given? - @configure - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb deleted file mode 100644 index ac1adbd0da42..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" - -require "google/cloud/dataform/v1/dataform/credentials" -require "google/cloud/dataform/v1/dataform/paths" -require "google/cloud/dataform/v1/dataform/operations" -require "google/cloud/dataform/v1/dataform/client" -require "google/cloud/dataform/v1/dataform/rest" - -module Google - module Cloud - module Dataform - module V1 - ## - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataform/v1/dataform" - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataform/v1/dataform/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module Dataform - end - end - end - end -end - -helper_path = ::File.join __dir__, "dataform", "helpers.rb" -require "google/cloud/dataform/v1/dataform/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb deleted file mode 100644 index 632bdd44803f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb +++ /dev/null @@ -1,7794 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/location" -require "google/iam/v1" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - ## - # Client for the Dataform service. - # - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :dataform_stub - - ## - # Configure the Dataform Client class. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Dataform clients - # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @dataform_stub.universe_domain - end - - ## - # Create a new Dataform client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Dataform client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/cloud/dataform/v1/dataform_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @dataform_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataform::V1::Dataform::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @dataform_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Dataform::V1::Dataform::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @dataform_stub.logger - end - - # Service calls - - ## - # Fetches a single TeamFolder. - # - # @overload get_team_folder(request, options = nil) - # Pass arguments to `get_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_team_folder(name: nil) - # Pass arguments to `get_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - # - # # Call the get_team_folder method. - # result = client.get_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def get_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new TeamFolder in a given project and location. - # - # @overload create_team_folder(request, options = nil) - # Pass arguments to `create_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_team_folder(parent: nil, team_folder: nil) - # Pass arguments to `create_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The TeamFolder to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - # - # # Call the create_team_folder method. - # result = client.create_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def create_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single TeamFolder. - # - # @overload update_team_folder(request, options = nil) - # Pass arguments to `update_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_team_folder(update_mask: nil, team_folder: nil) - # Pass arguments to `update_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The updated TeamFolder. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - # - # # Call the update_team_folder method. - # result = client.update_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def update_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.team_folder&.name - header_params["team_folder.name"] = request.team_folder.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single TeamFolder. - # - # @overload delete_team_folder(request, options = nil) - # Pass arguments to `delete_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_team_folder(name: nil) - # Pass arguments to `delete_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - # - # # Call the delete_team_folder method. - # result = client.delete_team_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_team_folder_tree(request, options = nil) - # Pass arguments to `delete_team_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_team_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - # - # # Call the delete_team_folder_tree method. - # result = client.delete_team_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_team_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given TeamFolder. - # - # @overload query_team_folder_contents(request, options = nil) - # Pass arguments to `query_team_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param team_folder [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - # - # # Call the query_team_folder_contents method. - # result = client.query_team_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - # p item - # end - # - def query_team_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_team_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.team_folder - header_params["team_folder"] = request.team_folder - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_team_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all TeamFolders in a given location that the caller has access to - # and match the provided filter. - # - # @overload search_team_folders(request, options = nil) - # Pass arguments to `search_team_folders` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `search_team_folders` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - # - # # Call the search_team_folders method. - # result = client.search_team_folders request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - # p item - # end - # - def search_team_folders request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_team_folders.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_team_folders.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Folder. - # - # @overload get_folder(request, options = nil) - # Pass arguments to `get_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_folder(name: nil) - # Pass arguments to `get_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetFolderRequest.new - # - # # Call the get_folder method. - # result = client.get_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def get_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Folder in a given project and location. - # - # @overload create_folder(request, options = nil) - # Pass arguments to `create_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_folder(parent: nil, folder: nil) - # Pass arguments to `create_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The Folder to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - # - # # Call the create_folder method. - # result = client.create_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def create_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Folder. - # - # @overload update_folder(request, options = nil) - # Pass arguments to `update_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_folder(update_mask: nil, folder: nil) - # Pass arguments to `update_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The updated Folder. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - # - # # Call the update_folder method. - # result = client.update_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def update_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.folder&.name - header_params["folder.name"] = request.folder.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Folder. - # - # @overload delete_folder(request, options = nil) - # Pass arguments to `delete_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_folder(name: nil) - # Pass arguments to `delete_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - # - # # Call the delete_folder method. - # result = client.delete_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Folder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_folder_tree(request, options = nil) - # Pass arguments to `delete_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - # - # # Call the delete_folder_tree method. - # result = client.delete_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Folder. - # - # @overload query_folder_contents(request, options = nil) - # Pass arguments to `query_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param folder [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - # - # # Call the query_folder_contents method. - # result = client.query_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - # p item - # end - # - def query_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.folder - header_params["folder"] = request.folder - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a caller's root folder in a given location. - # The root folder contains all resources that are created by the user and not - # contained in any other folder. - # - # @overload query_user_root_contents(request, options = nil) - # Pass arguments to `query_user_root_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - # - # # Call the query_user_root_contents method. - # result = client.query_user_root_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - # p item - # end - # - def query_user_root_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_user_root_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_user_root_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Folder to a new Folder, TeamFolder, or the root location. - # - # @overload move_folder(request, options = nil) - # Pass arguments to `move_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_folder(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the Folder to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - # - # # Call the move_folder method. - # result = client.move_folder request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Repositories in a given project and location. - # - # **Note:** *This method can return repositories not shown in the [Dataform - # UI](https://console.cloud.google.com/bigquery/dataform)*. - # - # @overload list_repositories(request, options = nil) - # Pass arguments to `list_repositories` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_repositories` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - # - # # Call the list_repositories method. - # result = client.list_repositories request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - # p item - # end - # - def list_repositories request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_repositories.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_repositories.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Repository. - # - # @overload get_repository(request, options = nil) - # Pass arguments to `get_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_repository(name: nil) - # Pass arguments to `get_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - # - # # Call the get_repository method. - # result = client.get_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def get_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Repository in a given project and location. - # - # @overload create_repository(request, options = nil) - # Pass arguments to `create_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_repository(parent: nil, repository: nil, repository_id: nil) - # Pass arguments to `create_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to create. - # @param repository_id [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - # - # # Call the create_repository method. - # result = client.create_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def create_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Repository. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_repository(request, options = nil) - # Pass arguments to `update_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_repository(update_mask: nil, repository: nil) - # Pass arguments to `update_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - # - # # Call the update_repository method. - # result = client.update_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def update_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.repository&.name - header_params["repository.name"] = request.repository.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Repository. - # - # @overload delete_repository(request, options = nil) - # Pass arguments to `delete_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_repository(name: nil, force: nil) - # Pass arguments to `delete_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param force [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - # - # # Call the delete_repository method. - # result = client.delete_repository request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Repository to a new location. - # - # @overload move_repository(request, options = nil) - # Pass arguments to `move_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_repository(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the repository to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - # - # # Call the move_repository method. - # result = client.move_repository request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit to a Repository. The Repository must not have a value - # for `git_remote_settings.url`. - # - # @overload commit_repository_changes(request, options = nil) - # Pass arguments to `commit_repository_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) - # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] - # Required. The changes to commit to the repository. - # @param required_head_commit_sha [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - # - # # Call the commit_repository_changes method. - # result = client.commit_repository_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - # p result - # - def commit_repository_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.commit_repository_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.commit_repository_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Repository). The Repository - # must not have a value for `git_remote_settings.url`. - # - # @overload read_repository_file(request, options = nil) - # Pass arguments to `read_repository_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) - # Pass arguments to `read_repository_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @param path [::String] - # Required. Full file path to read including filename, from repository root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - # - # # Call the read_repository_file method. - # result = client.read_repository_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - # p result - # - def read_repository_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.read_repository_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.read_repository_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Repository directory. The Repository must - # not have a value for `git_remote_settings.url`. - # - # @overload query_repository_directory_contents(request, options = nil) - # Pass arguments to `query_repository_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - # - # # Call the query_repository_directory_contents method. - # result = client.query_repository_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_repository_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's history of commits. The Repository must not have a - # value for `git_remote_settings.url`. - # - # @overload fetch_repository_history(request, options = nil) - # Pass arguments to `fetch_repository_history` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param page_size [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - # - # # Call the fetch_repository_history method. - # result = client.fetch_repository_history request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - # p item - # end - # - def fetch_repository_history request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_repository_history.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_repository_history.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Computes a Repository's Git access token status. - # - # @overload compute_repository_access_token_status(request, options = nil) - # Pass arguments to `compute_repository_access_token_status` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload compute_repository_access_token_status(name: nil) - # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - # - # # Call the compute_repository_access_token_status method. - # result = client.compute_repository_access_token_status request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - # p result - # - def compute_repository_access_token_status request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, - metadata: metadata, - retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's remote branches. - # - # @overload fetch_remote_branches(request, options = nil) - # Pass arguments to `fetch_remote_branches` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_remote_branches(name: nil) - # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - # - # # Call the fetch_remote_branches method. - # result = client.fetch_remote_branches request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - # p result - # - def fetch_remote_branches request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_remote_branches.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_remote_branches.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Workspaces in a given Repository. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Workspace. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Workspace in a given Repository. - # - # @overload create_workspace(request, options = nil) - # Pass arguments to `create_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) - # Pass arguments to `create_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] - # Required. The workspace to create. - # @param workspace_id [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - # - # # Call the create_workspace method. - # result = client.create_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def create_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Workspace. - # - # @overload delete_workspace(request, options = nil) - # Pass arguments to `delete_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workspace(name: nil) - # Pass arguments to `delete_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - # - # # Call the delete_workspace method. - # result = client.delete_workspace request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Installs dependency NPM packages (inside a Workspace). - # - # @overload install_npm_packages(request, options = nil) - # Pass arguments to `install_npm_packages` via a request object, either of type - # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload install_npm_packages(workspace: nil) - # Pass arguments to `install_npm_packages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - # - # # Call the install_npm_packages method. - # result = client.install_npm_packages request - # - # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - # p result - # - def install_npm_packages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.install_npm_packages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, - metadata: metadata, - retry_policy: @config.rpcs.install_npm_packages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pulls Git commits from the Repository's remote into a Workspace. - # - # @overload pull_git_commits(request, options = nil) - # Pass arguments to `pull_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) - # Pass arguments to `pull_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - # - # # Call the pull_git_commits method. - # result = client.pull_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - # p result - # - def pull_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.pull_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, - metadata: metadata, - retry_policy: @config.rpcs.pull_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pushes Git commits from a Workspace to the Repository's remote. - # - # @overload push_git_commits(request, options = nil) - # Pass arguments to `push_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload push_git_commits(name: nil, remote_branch: nil) - # Pass arguments to `push_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - # - # # Call the push_git_commits method. - # result = client.push_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - # p result - # - def push_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.push_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, - metadata: metadata, - retry_policy: @config.rpcs.push_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git statuses for the files in a Workspace. - # - # @overload fetch_file_git_statuses(request, options = nil) - # Pass arguments to `fetch_file_git_statuses` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_file_git_statuses(name: nil) - # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - # - # # Call the fetch_file_git_statuses method. - # result = client.fetch_file_git_statuses request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - # p result - # - def fetch_file_git_statuses request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git ahead/behind against a remote branch. - # - # @overload fetch_git_ahead_behind(request, options = nil) - # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) - # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - # - # # Call the fetch_git_ahead_behind method. - # result = client.fetch_git_ahead_behind request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - # p result - # - def fetch_git_ahead_behind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit for uncommitted files in a Workspace. - # - # @overload commit_workspace_changes(request, options = nil) - # Pass arguments to `commit_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) - # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The commit's author. - # @param commit_message [::String] - # Optional. The commit's message. - # @param paths [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - # - # # Call the commit_workspace_changes method. - # result = client.commit_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - # p result - # - def commit_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.commit_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.commit_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a Git reset for uncommitted files in a Workspace. - # - # @overload reset_workspace_changes(request, options = nil) - # Pass arguments to `reset_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) - # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param paths [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @param clean [::Boolean] - # Optional. If set to true, untracked files will be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - # - # # Call the reset_workspace_changes method. - # result = client.reset_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - # p result - # - def reset_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.reset_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.reset_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git diff for an uncommitted file in a Workspace. - # - # @overload fetch_file_diff(request, options = nil) - # Pass arguments to `fetch_file_diff` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_file_diff(workspace: nil, path: nil) - # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - # - # # Call the fetch_file_diff method. - # result = client.fetch_file_diff request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - # p result - # - def fetch_file_diff request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_file_diff.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_file_diff.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Workspace directory. - # - # @overload query_directory_contents(request, options = nil) - # Pass arguments to `query_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `query_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - # - # # Call the query_directory_contents method. - # result = client.query_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Finds the contents of a given Workspace directory by filter. - # - # @overload search_files(request, options = nil) - # Pass arguments to `search_files` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `search_files` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param page_size [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param filter [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - # - # # Call the search_files method. - # result = client.search_files request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - # p item - # end - # - def search_files request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_files.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_files.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_files.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :search_files, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_files, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a directory inside a Workspace. - # - # @overload make_directory(request, options = nil) - # Pass arguments to `make_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload make_directory(workspace: nil, path: nil) - # Pass arguments to `make_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - # - # # Call the make_directory method. - # result = client.make_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - # p result - # - def make_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.make_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.make_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.make_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a directory (inside a Workspace) and all of its contents. - # - # @overload remove_directory(request, options = nil) - # Pass arguments to `remove_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_directory(workspace: nil, path: nil) - # Pass arguments to `remove_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - # - # # Call the remove_directory method. - # result = client.remove_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - # p result - # - def remove_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a directory (inside a Workspace), and all of its contents, to a new - # location. - # - # @overload move_directory(request, options = nil) - # Pass arguments to `move_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_directory(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @param new_path [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - # - # # Call the move_directory method. - # result = client.move_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - # p result - # - def move_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Workspace). - # - # @overload read_file(request, options = nil) - # Pass arguments to `read_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload read_file(workspace: nil, path: nil, revision: nil) - # Pass arguments to `read_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param revision [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadFileRequest.new - # - # # Call the read_file method. - # result = client.read_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - # p result - # - def read_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.read_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.read_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.read_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :read_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a file (inside a Workspace). - # - # @overload remove_file(request, options = nil) - # Pass arguments to `remove_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_file(workspace: nil, path: nil) - # Pass arguments to `remove_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - # - # # Call the remove_file method. - # result = client.remove_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - # p result - # - def remove_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a file (inside a Workspace) to a new location. - # - # @overload move_file(request, options = nil) - # Pass arguments to `move_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_file(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param new_path [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFileRequest.new - # - # # Call the move_file method. - # result = client.move_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - # p result - # - def move_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Writes to a file (inside a Workspace). - # - # @overload write_file(request, options = nil) - # Pass arguments to `write_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload write_file(workspace: nil, path: nil, contents: nil) - # Pass arguments to `write_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file. - # @param contents [::String] - # Required. The file's contents. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::WriteFileRequest.new - # - # # Call the write_file method. - # result = client.write_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - # p result - # - def write_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.write_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.write_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.write_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :write_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ReleaseConfigs in a given Repository. - # - # @overload list_release_configs(request, options = nil) - # Pass arguments to `list_release_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_release_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - # - # # Call the list_release_configs method. - # result = client.list_release_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - # p item - # end - # - def list_release_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_release_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_release_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single ReleaseConfig. - # - # @overload get_release_config(request, options = nil) - # Pass arguments to `get_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_release_config(name: nil) - # Pass arguments to `get_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - # - # # Call the get_release_config method. - # result = client.get_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def get_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ReleaseConfig in a given Repository. - # - # @overload create_release_config(request, options = nil) - # Pass arguments to `create_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) - # Pass arguments to `create_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to create. - # @param release_config_id [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - # - # # Call the create_release_config method. - # result = client.create_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def create_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single ReleaseConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_release_config(request, options = nil) - # Pass arguments to `update_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_release_config(update_mask: nil, release_config: nil) - # Pass arguments to `update_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - # - # # Call the update_release_config method. - # result = client.update_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def update_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.release_config&.name - header_params["release_config.name"] = request.release_config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ReleaseConfig. - # - # @overload delete_release_config(request, options = nil) - # Pass arguments to `delete_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_release_config(name: nil) - # Pass arguments to `delete_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - # - # # Call the delete_release_config method. - # result = client.delete_release_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CompilationResults in a given Repository. - # - # @overload list_compilation_results(request, options = nil) - # Pass arguments to `list_compilation_results` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_compilation_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - # - # # Call the list_compilation_results method. - # result = client.list_compilation_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - # p item - # end - # - def list_compilation_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_compilation_results.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_compilation_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single CompilationResult. - # - # @overload get_compilation_result(request, options = nil) - # Pass arguments to `get_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_compilation_result(name: nil) - # Pass arguments to `get_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - # - # # Call the get_compilation_result method. - # result = client.get_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def get_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new CompilationResult in a given project and location. - # - # @overload create_compilation_result(request, options = nil) - # Pass arguments to `create_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_compilation_result(parent: nil, compilation_result: nil) - # Pass arguments to `create_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] - # Required. The compilation result to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - # - # # Call the create_compilation_result method. - # result = client.create_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def create_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns CompilationResultActions in a given CompilationResult. - # - # @overload query_compilation_result_actions(request, options = nil) - # Pass arguments to `query_compilation_result_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param filter [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - # - # # Call the query_compilation_result_actions method. - # result = client.query_compilation_result_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - # p item - # end - # - def query_compilation_result_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowConfigs in a given Repository. - # - # @overload list_workflow_configs(request, options = nil) - # Pass arguments to `list_workflow_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - # - # # Call the list_workflow_configs method. - # result = client.list_workflow_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - # p item - # end - # - def list_workflow_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workflow_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workflow_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowConfig. - # - # @overload get_workflow_config(request, options = nil) - # Pass arguments to `get_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workflow_config(name: nil) - # Pass arguments to `get_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - # - # # Call the get_workflow_config method. - # result = client.get_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def get_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowConfig in a given Repository. - # - # @overload create_workflow_config(request, options = nil) - # Pass arguments to `create_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) - # Pass arguments to `create_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to create. - # @param workflow_config_id [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - # - # # Call the create_workflow_config method. - # result = client.create_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def create_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single WorkflowConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_workflow_config(request, options = nil) - # Pass arguments to `update_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_workflow_config(update_mask: nil, workflow_config: nil) - # Pass arguments to `update_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - # - # # Call the update_workflow_config method. - # result = client.update_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def update_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workflow_config&.name - header_params["workflow_config.name"] = request.workflow_config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowConfig. - # - # @overload delete_workflow_config(request, options = nil) - # Pass arguments to `delete_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workflow_config(name: nil) - # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - # - # # Call the delete_workflow_config method. - # result = client.delete_workflow_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowInvocations in a given Repository. - # - # @overload list_workflow_invocations(request, options = nil) - # Pass arguments to `list_workflow_invocations` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - # - # # Call the list_workflow_invocations method. - # result = client.list_workflow_invocations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - # p item - # end - # - def list_workflow_invocations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workflow_invocations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workflow_invocations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowInvocation. - # - # @overload get_workflow_invocation(request, options = nil) - # Pass arguments to `get_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workflow_invocation(name: nil) - # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - # - # # Call the get_workflow_invocation method. - # result = client.get_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def get_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowInvocation in a given Repository. - # - # @overload create_workflow_invocation(request, options = nil) - # Pass arguments to `create_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) - # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] - # Required. The workflow invocation resource to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - # - # # Call the create_workflow_invocation method. - # result = client.create_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def create_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowInvocation. - # - # @overload delete_workflow_invocation(request, options = nil) - # Pass arguments to `delete_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workflow_invocation(name: nil) - # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - # - # # Call the delete_workflow_invocation method. - # result = client.delete_workflow_invocation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests cancellation of a running WorkflowInvocation. - # - # @overload cancel_workflow_invocation(request, options = nil) - # Pass arguments to `cancel_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_workflow_invocation(name: nil) - # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - # - # # Call the cancel_workflow_invocation method. - # result = client.cancel_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - # p result - # - def cancel_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns WorkflowInvocationActions in a given WorkflowInvocation. - # - # @overload query_workflow_invocation_actions(request, options = nil) - # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation's name. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - # - # # Call the query_workflow_invocation_actions method. - # result = client.query_workflow_invocation_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - # p item - # end - # - def query_workflow_invocation_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get default config for a given project and location. - # - # @overload get_config(request, options = nil) - # Pass arguments to `get_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_config(name: nil) - # Pass arguments to `get_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The config name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetConfigRequest.new - # - # # Call the get_config method. - # result = client.get_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def get_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update default config for a given project and location. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_config(request, options = nil) - # Pass arguments to `update_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_config(config: nil, update_mask: nil) - # Pass arguments to `update_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] - # Required. The config to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the config. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - # - # # Call the update_config method. - # result = client.update_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def update_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.config&.name - header_params["config.name"] = request.config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # 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. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Dataform API. - # - # This class represents the configuration for Dataform, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_team_folder to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Dataform API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_team_folder - ## - # RPC-specific configuration for `create_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_team_folder - ## - # RPC-specific configuration for `update_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_team_folder - ## - # RPC-specific configuration for `delete_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder - ## - # RPC-specific configuration for `delete_team_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder_tree - ## - # RPC-specific configuration for `query_team_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_team_folder_contents - ## - # RPC-specific configuration for `search_team_folders` - # @return [::Gapic::Config::Method] - # - attr_reader :search_team_folders - ## - # RPC-specific configuration for `get_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_folder - ## - # RPC-specific configuration for `create_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_folder - ## - # RPC-specific configuration for `update_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_folder - ## - # RPC-specific configuration for `delete_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder - ## - # RPC-specific configuration for `delete_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder_tree - ## - # RPC-specific configuration for `query_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_folder_contents - ## - # RPC-specific configuration for `query_user_root_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_user_root_contents - ## - # RPC-specific configuration for `move_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :move_folder - ## - # RPC-specific configuration for `list_repositories` - # @return [::Gapic::Config::Method] - # - attr_reader :list_repositories - ## - # RPC-specific configuration for `get_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :get_repository - ## - # RPC-specific configuration for `create_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :create_repository - ## - # RPC-specific configuration for `update_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :update_repository - ## - # RPC-specific configuration for `delete_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_repository - ## - # RPC-specific configuration for `move_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :move_repository - ## - # RPC-specific configuration for `commit_repository_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_repository_changes - ## - # RPC-specific configuration for `read_repository_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_repository_file - ## - # RPC-specific configuration for `query_repository_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_repository_directory_contents - ## - # RPC-specific configuration for `fetch_repository_history` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_repository_history - ## - # RPC-specific configuration for `compute_repository_access_token_status` - # @return [::Gapic::Config::Method] - # - attr_reader :compute_repository_access_token_status - ## - # RPC-specific configuration for `fetch_remote_branches` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_remote_branches - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `create_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workspace - ## - # RPC-specific configuration for `delete_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workspace - ## - # RPC-specific configuration for `install_npm_packages` - # @return [::Gapic::Config::Method] - # - attr_reader :install_npm_packages - ## - # RPC-specific configuration for `pull_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :pull_git_commits - ## - # RPC-specific configuration for `push_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :push_git_commits - ## - # RPC-specific configuration for `fetch_file_git_statuses` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_git_statuses - ## - # RPC-specific configuration for `fetch_git_ahead_behind` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_git_ahead_behind - ## - # RPC-specific configuration for `commit_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_workspace_changes - ## - # RPC-specific configuration for `reset_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :reset_workspace_changes - ## - # RPC-specific configuration for `fetch_file_diff` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_diff - ## - # RPC-specific configuration for `query_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_directory_contents - ## - # RPC-specific configuration for `search_files` - # @return [::Gapic::Config::Method] - # - attr_reader :search_files - ## - # RPC-specific configuration for `make_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :make_directory - ## - # RPC-specific configuration for `remove_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_directory - ## - # RPC-specific configuration for `move_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :move_directory - ## - # RPC-specific configuration for `read_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_file - ## - # RPC-specific configuration for `remove_file` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_file - ## - # RPC-specific configuration for `move_file` - # @return [::Gapic::Config::Method] - # - attr_reader :move_file - ## - # RPC-specific configuration for `write_file` - # @return [::Gapic::Config::Method] - # - attr_reader :write_file - ## - # RPC-specific configuration for `list_release_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_release_configs - ## - # RPC-specific configuration for `get_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release_config - ## - # RPC-specific configuration for `create_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release_config - ## - # RPC-specific configuration for `update_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release_config - ## - # RPC-specific configuration for `delete_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release_config - ## - # RPC-specific configuration for `list_compilation_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_compilation_results - ## - # RPC-specific configuration for `get_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :get_compilation_result - ## - # RPC-specific configuration for `create_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :create_compilation_result - ## - # RPC-specific configuration for `query_compilation_result_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_compilation_result_actions - ## - # RPC-specific configuration for `list_workflow_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_configs - ## - # RPC-specific configuration for `get_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_config - ## - # RPC-specific configuration for `create_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_config - ## - # RPC-specific configuration for `update_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_workflow_config - ## - # RPC-specific configuration for `delete_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_config - ## - # RPC-specific configuration for `list_workflow_invocations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_invocations - ## - # RPC-specific configuration for `get_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_invocation - ## - # RPC-specific configuration for `create_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_invocation - ## - # RPC-specific configuration for `delete_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_invocation - ## - # RPC-specific configuration for `cancel_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_workflow_invocation - ## - # RPC-specific configuration for `query_workflow_invocation_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_workflow_invocation_actions - ## - # RPC-specific configuration for `get_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_config - ## - # RPC-specific configuration for `update_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_config - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - - # @private - def initialize parent_rpcs = nil - get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder - @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config - create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder - @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config - update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder - @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config - delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder - @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config - delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree - @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config - query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents - @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config - search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders - @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config - get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder - @get_folder = ::Gapic::Config::Method.new get_folder_config - create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder - @create_folder = ::Gapic::Config::Method.new create_folder_config - update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder - @update_folder = ::Gapic::Config::Method.new update_folder_config - delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder - @delete_folder = ::Gapic::Config::Method.new delete_folder_config - delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree - @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config - query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents - @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config - query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents - @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config - move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder - @move_folder = ::Gapic::Config::Method.new move_folder_config - list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories - @list_repositories = ::Gapic::Config::Method.new list_repositories_config - get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository - @get_repository = ::Gapic::Config::Method.new get_repository_config - create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository - @create_repository = ::Gapic::Config::Method.new create_repository_config - update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository - @update_repository = ::Gapic::Config::Method.new update_repository_config - delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository - @delete_repository = ::Gapic::Config::Method.new delete_repository_config - move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository - @move_repository = ::Gapic::Config::Method.new move_repository_config - commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes - @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config - read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file - @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config - query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents - @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config - fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history - @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config - compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status - @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config - fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches - @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace - @create_workspace = ::Gapic::Config::Method.new create_workspace_config - delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace - @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config - install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages - @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config - pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits - @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config - push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits - @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config - fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses - @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config - fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind - @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config - commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes - @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config - reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes - @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config - fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff - @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config - query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents - @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config - search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files - @search_files = ::Gapic::Config::Method.new search_files_config - make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory - @make_directory = ::Gapic::Config::Method.new make_directory_config - remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory - @remove_directory = ::Gapic::Config::Method.new remove_directory_config - move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory - @move_directory = ::Gapic::Config::Method.new move_directory_config - read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file - @read_file = ::Gapic::Config::Method.new read_file_config - remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file - @remove_file = ::Gapic::Config::Method.new remove_file_config - move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file - @move_file = ::Gapic::Config::Method.new move_file_config - write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file - @write_file = ::Gapic::Config::Method.new write_file_config - list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs - @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config - get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config - @get_release_config = ::Gapic::Config::Method.new get_release_config_config - create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config - @create_release_config = ::Gapic::Config::Method.new create_release_config_config - update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config - @update_release_config = ::Gapic::Config::Method.new update_release_config_config - delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config - @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config - list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results - @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config - get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result - @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config - create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result - @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config - query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions - @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config - list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs - @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config - get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config - @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config - create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config - @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config - update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config - @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config - delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config - @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config - list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations - @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config - get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation - @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config - create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation - @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config - delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation - @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config - cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation - @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config - query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions - @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config - get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config - @get_config = ::Gapic::Config::Method.new get_config_config - update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config - @update_config = ::Gapic::Config::Method.new update_config_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb deleted file mode 100644 index a1cc0ba6afef..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Credentials for the Dataform API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigquery", - "https://www.googleapis.com/auth/cloud-platform" - ] - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb deleted file mode 100644 index 8944966e5175..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb +++ /dev/null @@ -1,841 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Dataform Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb deleted file mode 100644 index 591bf0ee5afa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb +++ /dev/null @@ -1,311 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Path helper methods for the Dataform API. - module Paths - ## - # Create a fully-qualified CompilationResult resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param compilation_result [String] - # - # @return [::String] - def compilation_result_path project:, location:, repository:, compilation_result: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}" - end - - ## - # Create a fully-qualified Config resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/config` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def config_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}/config" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified CryptoKeyVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # @param crypto_key_version [String] - # - # @return [::String] - def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" - end - - ## - # Create a fully-qualified Folder resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/folders/{folder}` - # - # @param project [String] - # @param location [String] - # @param folder [String] - # - # @return [::String] - def folder_path project:, location:, folder: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/folders/#{folder}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified NotebookRuntimeTemplate resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` - # - # @param project [String] - # @param location [String] - # @param notebook_runtime_template [String] - # - # @return [::String] - def notebook_runtime_template_path project:, location:, notebook_runtime_template: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}" - end - - ## - # Create a fully-qualified ReleaseConfig resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param release_config [String] - # - # @return [::String] - def release_config_path project:, location:, repository:, release_config: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}" - end - - ## - # Create a fully-qualified Repository resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # - # @return [::String] - def repository_path project:, location:, repository: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}" - end - - ## - # Create a fully-qualified SecretVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/secrets/{secret}/versions/{version}` - # - # @param project [String] - # @param secret [String] - # @param version [String] - # - # @return [::String] - def secret_version_path project:, secret:, version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" - - "projects/#{project}/secrets/#{secret}/versions/#{version}" - end - - ## - # Create a fully-qualified TeamFolder resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/teamFolders/{team_folder}` - # - # @param project [String] - # @param location [String] - # @param team_folder [String] - # - # @return [::String] - def team_folder_path project:, location:, team_folder: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/teamFolders/#{team_folder}" - end - - ## - # Create a fully-qualified WorkflowConfig resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workflow_config [String] - # - # @return [::String] - def workflow_config_path project:, location:, repository:, workflow_config: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}" - end - - ## - # Create a fully-qualified WorkflowInvocation resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workflow_invocation [String] - # - # @return [::String] - def workflow_invocation_path project:, location:, repository:, workflow_invocation: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}" - end - - ## - # Create a fully-qualified Workspace resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workspace [String] - # - # @return [::String] - def workspace_path project:, location:, repository:, workspace: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}" - end - - extend self - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb deleted file mode 100644 index 01b9b9f1cbed..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" -require "google/cloud/dataform/v1/bindings_override" - -require "google/cloud/dataform/v1/dataform/credentials" -require "google/cloud/dataform/v1/dataform/paths" -require "google/cloud/dataform/v1/dataform/rest/operations" -require "google/cloud/dataform/v1/dataform/rest/client" - -module Google - module Cloud - module Dataform - module V1 - ## - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataform/v1/dataform/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module Dataform - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataform/v1/dataform/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb deleted file mode 100644 index b3bb6824d285..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb +++ /dev/null @@ -1,7248 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform/rest/service_stub" -require "google/cloud/location/rest" -require "google/iam/v1/rest" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - ## - # REST client for the Dataform service. - # - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :dataform_stub - - ## - # Configure the Dataform Client class. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Dataform clients - # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @dataform_stub.universe_domain - end - - ## - # Create a new Dataform REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Dataform client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @dataform_stub = ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @dataform_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Dataform::V1::Dataform::Rest::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Rest::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @dataform_stub.logger - end - - # Service calls - - ## - # Fetches a single TeamFolder. - # - # @overload get_team_folder(request, options = nil) - # Pass arguments to `get_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_team_folder(name: nil) - # Pass arguments to `get_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - # - # # Call the get_team_folder method. - # result = client.get_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def get_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new TeamFolder in a given project and location. - # - # @overload create_team_folder(request, options = nil) - # Pass arguments to `create_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_team_folder(parent: nil, team_folder: nil) - # Pass arguments to `create_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The TeamFolder to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - # - # # Call the create_team_folder method. - # result = client.create_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def create_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single TeamFolder. - # - # @overload update_team_folder(request, options = nil) - # Pass arguments to `update_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_team_folder(update_mask: nil, team_folder: nil) - # Pass arguments to `update_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The updated TeamFolder. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - # - # # Call the update_team_folder method. - # result = client.update_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def update_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single TeamFolder. - # - # @overload delete_team_folder(request, options = nil) - # Pass arguments to `delete_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_team_folder(name: nil) - # Pass arguments to `delete_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - # - # # Call the delete_team_folder method. - # result = client.delete_team_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_team_folder_tree(request, options = nil) - # Pass arguments to `delete_team_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_team_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - # - # # Call the delete_team_folder_tree method. - # result = client.delete_team_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_team_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_team_folder_tree request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given TeamFolder. - # - # @overload query_team_folder_contents(request, options = nil) - # Pass arguments to `query_team_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param team_folder [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - # - # # Call the query_team_folder_contents method. - # result = client.query_team_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - # p item - # end - # - def query_team_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_team_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_team_folder_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all TeamFolders in a given location that the caller has access to - # and match the provided filter. - # - # @overload search_team_folders(request, options = nil) - # Pass arguments to `search_team_folders` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `search_team_folders` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - # - # # Call the search_team_folders method. - # result = client.search_team_folders request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - # p item - # end - # - def search_team_folders request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.search_team_folders.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.search_team_folders.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.search_team_folders request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Folder. - # - # @overload get_folder(request, options = nil) - # Pass arguments to `get_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_folder(name: nil) - # Pass arguments to `get_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetFolderRequest.new - # - # # Call the get_folder method. - # result = client.get_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def get_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Folder in a given project and location. - # - # @overload create_folder(request, options = nil) - # Pass arguments to `create_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_folder(parent: nil, folder: nil) - # Pass arguments to `create_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The Folder to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - # - # # Call the create_folder method. - # result = client.create_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def create_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Folder. - # - # @overload update_folder(request, options = nil) - # Pass arguments to `update_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_folder(update_mask: nil, folder: nil) - # Pass arguments to `update_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The updated Folder. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - # - # # Call the update_folder method. - # result = client.update_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def update_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Folder. - # - # @overload delete_folder(request, options = nil) - # Pass arguments to `delete_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_folder(name: nil) - # Pass arguments to `delete_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - # - # # Call the delete_folder method. - # result = client.delete_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Folder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_folder_tree(request, options = nil) - # Pass arguments to `delete_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - # - # # Call the delete_folder_tree method. - # result = client.delete_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_folder_tree request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Folder. - # - # @overload query_folder_contents(request, options = nil) - # Pass arguments to `query_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param folder [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - # - # # Call the query_folder_contents method. - # result = client.query_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - # p item - # end - # - def query_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_folder_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a caller's root folder in a given location. - # The root folder contains all resources that are created by the user and not - # contained in any other folder. - # - # @overload query_user_root_contents(request, options = nil) - # Pass arguments to `query_user_root_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - # - # # Call the query_user_root_contents method. - # result = client.query_user_root_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - # p item - # end - # - def query_user_root_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_user_root_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_user_root_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Folder to a new Folder, TeamFolder, or the root location. - # - # @overload move_folder(request, options = nil) - # Pass arguments to `move_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_folder(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the Folder to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - # - # # Call the move_folder method. - # result = client.move_folder request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_folder request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Repositories in a given project and location. - # - # **Note:** *This method can return repositories not shown in the [Dataform - # UI](https://console.cloud.google.com/bigquery/dataform)*. - # - # @overload list_repositories(request, options = nil) - # Pass arguments to `list_repositories` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_repositories` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - # - # # Call the list_repositories method. - # result = client.list_repositories request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - # p item - # end - # - def list_repositories request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_repositories.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_repositories.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_repositories request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_repositories, "repositories", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Repository. - # - # @overload get_repository(request, options = nil) - # Pass arguments to `get_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_repository(name: nil) - # Pass arguments to `get_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - # - # # Call the get_repository method. - # result = client.get_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def get_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Repository in a given project and location. - # - # @overload create_repository(request, options = nil) - # Pass arguments to `create_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_repository(parent: nil, repository: nil, repository_id: nil) - # Pass arguments to `create_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to create. - # @param repository_id [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - # - # # Call the create_repository method. - # result = client.create_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def create_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Repository. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_repository(request, options = nil) - # Pass arguments to `update_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_repository(update_mask: nil, repository: nil) - # Pass arguments to `update_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - # - # # Call the update_repository method. - # result = client.update_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def update_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Repository. - # - # @overload delete_repository(request, options = nil) - # Pass arguments to `delete_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_repository(name: nil, force: nil) - # Pass arguments to `delete_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param force [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - # - # # Call the delete_repository method. - # result = client.delete_repository request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Repository to a new location. - # - # @overload move_repository(request, options = nil) - # Pass arguments to `move_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_repository(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the repository to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - # - # # Call the move_repository method. - # result = client.move_repository request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_repository request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit to a Repository. The Repository must not have a value - # for `git_remote_settings.url`. - # - # @overload commit_repository_changes(request, options = nil) - # Pass arguments to `commit_repository_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) - # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] - # Required. The changes to commit to the repository. - # @param required_head_commit_sha [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - # - # # Call the commit_repository_changes method. - # result = client.commit_repository_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - # p result - # - def commit_repository_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.commit_repository_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.commit_repository_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Repository). The Repository - # must not have a value for `git_remote_settings.url`. - # - # @overload read_repository_file(request, options = nil) - # Pass arguments to `read_repository_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) - # Pass arguments to `read_repository_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @param path [::String] - # Required. Full file path to read including filename, from repository root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - # - # # Call the read_repository_file method. - # result = client.read_repository_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - # p result - # - def read_repository_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.read_repository_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.read_repository_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.read_repository_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Repository directory. The Repository must - # not have a value for `git_remote_settings.url`. - # - # @overload query_repository_directory_contents(request, options = nil) - # Pass arguments to `query_repository_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - # - # # Call the query_repository_directory_contents method. - # result = client.query_repository_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_repository_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_repository_directory_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's history of commits. The Repository must not have a - # value for `git_remote_settings.url`. - # - # @overload fetch_repository_history(request, options = nil) - # Pass arguments to `fetch_repository_history` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param page_size [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - # - # # Call the fetch_repository_history method. - # result = client.fetch_repository_history request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - # p item - # end - # - def fetch_repository_history request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_repository_history.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_repository_history request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Computes a Repository's Git access token status. - # - # @overload compute_repository_access_token_status(request, options = nil) - # Pass arguments to `compute_repository_access_token_status` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload compute_repository_access_token_status(name: nil) - # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - # - # # Call the compute_repository_access_token_status method. - # result = client.compute_repository_access_token_status request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - # p result - # - def compute_repository_access_token_status request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.compute_repository_access_token_status request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's remote branches. - # - # @overload fetch_remote_branches(request, options = nil) - # Pass arguments to `fetch_remote_branches` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_remote_branches(name: nil) - # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - # - # # Call the fetch_remote_branches method. - # result = client.fetch_remote_branches request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - # p result - # - def fetch_remote_branches request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_remote_branches.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_remote_branches request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Workspaces in a given Repository. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workspaces request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workspaces, "workspaces", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Workspace. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Workspace in a given Repository. - # - # @overload create_workspace(request, options = nil) - # Pass arguments to `create_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) - # Pass arguments to `create_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] - # Required. The workspace to create. - # @param workspace_id [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - # - # # Call the create_workspace method. - # result = client.create_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def create_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Workspace. - # - # @overload delete_workspace(request, options = nil) - # Pass arguments to `delete_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workspace(name: nil) - # Pass arguments to `delete_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - # - # # Call the delete_workspace method. - # result = client.delete_workspace request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Installs dependency NPM packages (inside a Workspace). - # - # @overload install_npm_packages(request, options = nil) - # Pass arguments to `install_npm_packages` via a request object, either of type - # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload install_npm_packages(workspace: nil) - # Pass arguments to `install_npm_packages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - # - # # Call the install_npm_packages method. - # result = client.install_npm_packages request - # - # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - # p result - # - def install_npm_packages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.install_npm_packages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.install_npm_packages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.install_npm_packages request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pulls Git commits from the Repository's remote into a Workspace. - # - # @overload pull_git_commits(request, options = nil) - # Pass arguments to `pull_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) - # Pass arguments to `pull_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - # - # # Call the pull_git_commits method. - # result = client.pull_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - # p result - # - def pull_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.pull_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.pull_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.pull_git_commits request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pushes Git commits from a Workspace to the Repository's remote. - # - # @overload push_git_commits(request, options = nil) - # Pass arguments to `push_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload push_git_commits(name: nil, remote_branch: nil) - # Pass arguments to `push_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - # - # # Call the push_git_commits method. - # result = client.push_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - # p result - # - def push_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.push_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.push_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.push_git_commits request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git statuses for the files in a Workspace. - # - # @overload fetch_file_git_statuses(request, options = nil) - # Pass arguments to `fetch_file_git_statuses` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_file_git_statuses(name: nil) - # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - # - # # Call the fetch_file_git_statuses method. - # result = client.fetch_file_git_statuses request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - # p result - # - def fetch_file_git_statuses request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_file_git_statuses request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git ahead/behind against a remote branch. - # - # @overload fetch_git_ahead_behind(request, options = nil) - # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) - # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - # - # # Call the fetch_git_ahead_behind method. - # result = client.fetch_git_ahead_behind request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - # p result - # - def fetch_git_ahead_behind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_git_ahead_behind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit for uncommitted files in a Workspace. - # - # @overload commit_workspace_changes(request, options = nil) - # Pass arguments to `commit_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) - # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The commit's author. - # @param commit_message [::String] - # Optional. The commit's message. - # @param paths [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - # - # # Call the commit_workspace_changes method. - # result = client.commit_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - # p result - # - def commit_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.commit_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.commit_workspace_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a Git reset for uncommitted files in a Workspace. - # - # @overload reset_workspace_changes(request, options = nil) - # Pass arguments to `reset_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) - # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param paths [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @param clean [::Boolean] - # Optional. If set to true, untracked files will be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - # - # # Call the reset_workspace_changes method. - # result = client.reset_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - # p result - # - def reset_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.reset_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.reset_workspace_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git diff for an uncommitted file in a Workspace. - # - # @overload fetch_file_diff(request, options = nil) - # Pass arguments to `fetch_file_diff` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_file_diff(workspace: nil, path: nil) - # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - # - # # Call the fetch_file_diff method. - # result = client.fetch_file_diff request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - # p result - # - def fetch_file_diff request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_file_diff.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_file_diff request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Workspace directory. - # - # @overload query_directory_contents(request, options = nil) - # Pass arguments to `query_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `query_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - # - # # Call the query_directory_contents method. - # result = client.query_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_directory_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Finds the contents of a given Workspace directory by filter. - # - # @overload search_files(request, options = nil) - # Pass arguments to `search_files` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `search_files` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param page_size [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param filter [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - # - # # Call the search_files method. - # result = client.search_files request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - # p item - # end - # - def search_files request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.search_files.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_files.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.search_files.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.search_files request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_files, "search_results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a directory inside a Workspace. - # - # @overload make_directory(request, options = nil) - # Pass arguments to `make_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload make_directory(workspace: nil, path: nil) - # Pass arguments to `make_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - # - # # Call the make_directory method. - # result = client.make_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - # p result - # - def make_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.make_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.make_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.make_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.make_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a directory (inside a Workspace) and all of its contents. - # - # @overload remove_directory(request, options = nil) - # Pass arguments to `remove_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload remove_directory(workspace: nil, path: nil) - # Pass arguments to `remove_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - # - # # Call the remove_directory method. - # result = client.remove_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - # p result - # - def remove_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.remove_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.remove_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.remove_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a directory (inside a Workspace), and all of its contents, to a new - # location. - # - # @overload move_directory(request, options = nil) - # Pass arguments to `move_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_directory(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @param new_path [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - # - # # Call the move_directory method. - # result = client.move_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - # p result - # - def move_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Workspace). - # - # @overload read_file(request, options = nil) - # Pass arguments to `read_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload read_file(workspace: nil, path: nil, revision: nil) - # Pass arguments to `read_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param revision [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadFileRequest.new - # - # # Call the read_file method. - # result = client.read_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - # p result - # - def read_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.read_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.read_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.read_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.read_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a file (inside a Workspace). - # - # @overload remove_file(request, options = nil) - # Pass arguments to `remove_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload remove_file(workspace: nil, path: nil) - # Pass arguments to `remove_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - # - # # Call the remove_file method. - # result = client.remove_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - # p result - # - def remove_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.remove_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.remove_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.remove_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.remove_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a file (inside a Workspace) to a new location. - # - # @overload move_file(request, options = nil) - # Pass arguments to `move_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_file(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param new_path [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFileRequest.new - # - # # Call the move_file method. - # result = client.move_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - # p result - # - def move_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Writes to a file (inside a Workspace). - # - # @overload write_file(request, options = nil) - # Pass arguments to `write_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload write_file(workspace: nil, path: nil, contents: nil) - # Pass arguments to `write_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file. - # @param contents [::String] - # Required. The file's contents. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::WriteFileRequest.new - # - # # Call the write_file method. - # result = client.write_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - # p result - # - def write_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.write_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.write_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.write_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.write_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ReleaseConfigs in a given Repository. - # - # @overload list_release_configs(request, options = nil) - # Pass arguments to `list_release_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_release_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - # - # # Call the list_release_configs method. - # result = client.list_release_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - # p item - # end - # - def list_release_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_release_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_release_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_release_configs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_release_configs, "release_configs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single ReleaseConfig. - # - # @overload get_release_config(request, options = nil) - # Pass arguments to `get_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_release_config(name: nil) - # Pass arguments to `get_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - # - # # Call the get_release_config method. - # result = client.get_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def get_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ReleaseConfig in a given Repository. - # - # @overload create_release_config(request, options = nil) - # Pass arguments to `create_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) - # Pass arguments to `create_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to create. - # @param release_config_id [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - # - # # Call the create_release_config method. - # result = client.create_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def create_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single ReleaseConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_release_config(request, options = nil) - # Pass arguments to `update_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_release_config(update_mask: nil, release_config: nil) - # Pass arguments to `update_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - # - # # Call the update_release_config method. - # result = client.update_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def update_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ReleaseConfig. - # - # @overload delete_release_config(request, options = nil) - # Pass arguments to `delete_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_release_config(name: nil) - # Pass arguments to `delete_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - # - # # Call the delete_release_config method. - # result = client.delete_release_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CompilationResults in a given Repository. - # - # @overload list_compilation_results(request, options = nil) - # Pass arguments to `list_compilation_results` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_compilation_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - # - # # Call the list_compilation_results method. - # result = client.list_compilation_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - # p item - # end - # - def list_compilation_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_compilation_results.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_compilation_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_compilation_results request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_compilation_results, "compilation_results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single CompilationResult. - # - # @overload get_compilation_result(request, options = nil) - # Pass arguments to `get_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_compilation_result(name: nil) - # Pass arguments to `get_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - # - # # Call the get_compilation_result method. - # result = client.get_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def get_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_compilation_result request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new CompilationResult in a given project and location. - # - # @overload create_compilation_result(request, options = nil) - # Pass arguments to `create_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_compilation_result(parent: nil, compilation_result: nil) - # Pass arguments to `create_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] - # Required. The compilation result to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - # - # # Call the create_compilation_result method. - # result = client.create_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def create_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_compilation_result request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns CompilationResultActions in a given CompilationResult. - # - # @overload query_compilation_result_actions(request, options = nil) - # Pass arguments to `query_compilation_result_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param filter [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - # - # # Call the query_compilation_result_actions method. - # result = client.query_compilation_result_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - # p item - # end - # - def query_compilation_result_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_compilation_result_actions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowConfigs in a given Repository. - # - # @overload list_workflow_configs(request, options = nil) - # Pass arguments to `list_workflow_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - # - # # Call the list_workflow_configs method. - # result = client.list_workflow_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - # p item - # end - # - def list_workflow_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workflow_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workflow_configs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_configs, "workflow_configs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowConfig. - # - # @overload get_workflow_config(request, options = nil) - # Pass arguments to `get_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workflow_config(name: nil) - # Pass arguments to `get_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - # - # # Call the get_workflow_config method. - # result = client.get_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def get_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowConfig in a given Repository. - # - # @overload create_workflow_config(request, options = nil) - # Pass arguments to `create_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) - # Pass arguments to `create_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to create. - # @param workflow_config_id [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - # - # # Call the create_workflow_config method. - # result = client.create_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def create_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single WorkflowConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_workflow_config(request, options = nil) - # Pass arguments to `update_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_workflow_config(update_mask: nil, workflow_config: nil) - # Pass arguments to `update_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - # - # # Call the update_workflow_config method. - # result = client.update_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def update_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowConfig. - # - # @overload delete_workflow_config(request, options = nil) - # Pass arguments to `delete_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workflow_config(name: nil) - # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - # - # # Call the delete_workflow_config method. - # result = client.delete_workflow_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowInvocations in a given Repository. - # - # @overload list_workflow_invocations(request, options = nil) - # Pass arguments to `list_workflow_invocations` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - # - # # Call the list_workflow_invocations method. - # result = client.list_workflow_invocations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - # p item - # end - # - def list_workflow_invocations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workflow_invocations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workflow_invocations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, "workflow_invocations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowInvocation. - # - # @overload get_workflow_invocation(request, options = nil) - # Pass arguments to `get_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workflow_invocation(name: nil) - # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - # - # # Call the get_workflow_invocation method. - # result = client.get_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def get_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowInvocation in a given Repository. - # - # @overload create_workflow_invocation(request, options = nil) - # Pass arguments to `create_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) - # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] - # Required. The workflow invocation resource to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - # - # # Call the create_workflow_invocation method. - # result = client.create_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def create_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowInvocation. - # - # @overload delete_workflow_invocation(request, options = nil) - # Pass arguments to `delete_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workflow_invocation(name: nil) - # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - # - # # Call the delete_workflow_invocation method. - # result = client.delete_workflow_invocation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests cancellation of a running WorkflowInvocation. - # - # @overload cancel_workflow_invocation(request, options = nil) - # Pass arguments to `cancel_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_workflow_invocation(name: nil) - # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - # - # # Call the cancel_workflow_invocation method. - # result = client.cancel_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - # p result - # - def cancel_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.cancel_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns WorkflowInvocationActions in a given WorkflowInvocation. - # - # @overload query_workflow_invocation_actions(request, options = nil) - # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation's name. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - # - # # Call the query_workflow_invocation_actions method. - # result = client.query_workflow_invocation_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - # p item - # end - # - def query_workflow_invocation_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_workflow_invocation_actions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get default config for a given project and location. - # - # @overload get_config(request, options = nil) - # Pass arguments to `get_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_config(name: nil) - # Pass arguments to `get_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The config name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetConfigRequest.new - # - # # Call the get_config method. - # result = client.get_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def get_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update default config for a given project and location. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_config(request, options = nil) - # Pass arguments to `update_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_config(config: nil, update_mask: nil) - # Pass arguments to `update_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] - # Required. The config to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the config. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - # - # # Call the update_config method. - # result = client.update_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def update_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_iam_policy request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.set_iam_policy request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # 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. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.test_iam_permissions request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Dataform REST API. - # - # This class represents the configuration for Dataform REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_team_folder to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - - # @private - # Overrides for http bindings for the RPCs of this service - # are only used when this service is used as mixin, and only - # by the host service. - # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] - config_attr :bindings_override, {}, ::Hash, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Dataform API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_team_folder - ## - # RPC-specific configuration for `create_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_team_folder - ## - # RPC-specific configuration for `update_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_team_folder - ## - # RPC-specific configuration for `delete_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder - ## - # RPC-specific configuration for `delete_team_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder_tree - ## - # RPC-specific configuration for `query_team_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_team_folder_contents - ## - # RPC-specific configuration for `search_team_folders` - # @return [::Gapic::Config::Method] - # - attr_reader :search_team_folders - ## - # RPC-specific configuration for `get_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_folder - ## - # RPC-specific configuration for `create_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_folder - ## - # RPC-specific configuration for `update_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_folder - ## - # RPC-specific configuration for `delete_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder - ## - # RPC-specific configuration for `delete_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder_tree - ## - # RPC-specific configuration for `query_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_folder_contents - ## - # RPC-specific configuration for `query_user_root_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_user_root_contents - ## - # RPC-specific configuration for `move_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :move_folder - ## - # RPC-specific configuration for `list_repositories` - # @return [::Gapic::Config::Method] - # - attr_reader :list_repositories - ## - # RPC-specific configuration for `get_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :get_repository - ## - # RPC-specific configuration for `create_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :create_repository - ## - # RPC-specific configuration for `update_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :update_repository - ## - # RPC-specific configuration for `delete_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_repository - ## - # RPC-specific configuration for `move_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :move_repository - ## - # RPC-specific configuration for `commit_repository_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_repository_changes - ## - # RPC-specific configuration for `read_repository_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_repository_file - ## - # RPC-specific configuration for `query_repository_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_repository_directory_contents - ## - # RPC-specific configuration for `fetch_repository_history` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_repository_history - ## - # RPC-specific configuration for `compute_repository_access_token_status` - # @return [::Gapic::Config::Method] - # - attr_reader :compute_repository_access_token_status - ## - # RPC-specific configuration for `fetch_remote_branches` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_remote_branches - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `create_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workspace - ## - # RPC-specific configuration for `delete_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workspace - ## - # RPC-specific configuration for `install_npm_packages` - # @return [::Gapic::Config::Method] - # - attr_reader :install_npm_packages - ## - # RPC-specific configuration for `pull_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :pull_git_commits - ## - # RPC-specific configuration for `push_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :push_git_commits - ## - # RPC-specific configuration for `fetch_file_git_statuses` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_git_statuses - ## - # RPC-specific configuration for `fetch_git_ahead_behind` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_git_ahead_behind - ## - # RPC-specific configuration for `commit_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_workspace_changes - ## - # RPC-specific configuration for `reset_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :reset_workspace_changes - ## - # RPC-specific configuration for `fetch_file_diff` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_diff - ## - # RPC-specific configuration for `query_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_directory_contents - ## - # RPC-specific configuration for `search_files` - # @return [::Gapic::Config::Method] - # - attr_reader :search_files - ## - # RPC-specific configuration for `make_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :make_directory - ## - # RPC-specific configuration for `remove_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_directory - ## - # RPC-specific configuration for `move_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :move_directory - ## - # RPC-specific configuration for `read_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_file - ## - # RPC-specific configuration for `remove_file` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_file - ## - # RPC-specific configuration for `move_file` - # @return [::Gapic::Config::Method] - # - attr_reader :move_file - ## - # RPC-specific configuration for `write_file` - # @return [::Gapic::Config::Method] - # - attr_reader :write_file - ## - # RPC-specific configuration for `list_release_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_release_configs - ## - # RPC-specific configuration for `get_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release_config - ## - # RPC-specific configuration for `create_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release_config - ## - # RPC-specific configuration for `update_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release_config - ## - # RPC-specific configuration for `delete_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release_config - ## - # RPC-specific configuration for `list_compilation_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_compilation_results - ## - # RPC-specific configuration for `get_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :get_compilation_result - ## - # RPC-specific configuration for `create_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :create_compilation_result - ## - # RPC-specific configuration for `query_compilation_result_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_compilation_result_actions - ## - # RPC-specific configuration for `list_workflow_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_configs - ## - # RPC-specific configuration for `get_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_config - ## - # RPC-specific configuration for `create_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_config - ## - # RPC-specific configuration for `update_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_workflow_config - ## - # RPC-specific configuration for `delete_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_config - ## - # RPC-specific configuration for `list_workflow_invocations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_invocations - ## - # RPC-specific configuration for `get_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_invocation - ## - # RPC-specific configuration for `create_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_invocation - ## - # RPC-specific configuration for `delete_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_invocation - ## - # RPC-specific configuration for `cancel_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_workflow_invocation - ## - # RPC-specific configuration for `query_workflow_invocation_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_workflow_invocation_actions - ## - # RPC-specific configuration for `get_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_config - ## - # RPC-specific configuration for `update_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_config - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - - # @private - def initialize parent_rpcs = nil - get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder - @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config - create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder - @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config - update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder - @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config - delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder - @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config - delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree - @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config - query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents - @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config - search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders - @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config - get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder - @get_folder = ::Gapic::Config::Method.new get_folder_config - create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder - @create_folder = ::Gapic::Config::Method.new create_folder_config - update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder - @update_folder = ::Gapic::Config::Method.new update_folder_config - delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder - @delete_folder = ::Gapic::Config::Method.new delete_folder_config - delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree - @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config - query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents - @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config - query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents - @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config - move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder - @move_folder = ::Gapic::Config::Method.new move_folder_config - list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories - @list_repositories = ::Gapic::Config::Method.new list_repositories_config - get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository - @get_repository = ::Gapic::Config::Method.new get_repository_config - create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository - @create_repository = ::Gapic::Config::Method.new create_repository_config - update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository - @update_repository = ::Gapic::Config::Method.new update_repository_config - delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository - @delete_repository = ::Gapic::Config::Method.new delete_repository_config - move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository - @move_repository = ::Gapic::Config::Method.new move_repository_config - commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes - @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config - read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file - @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config - query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents - @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config - fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history - @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config - compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status - @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config - fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches - @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace - @create_workspace = ::Gapic::Config::Method.new create_workspace_config - delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace - @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config - install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages - @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config - pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits - @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config - push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits - @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config - fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses - @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config - fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind - @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config - commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes - @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config - reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes - @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config - fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff - @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config - query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents - @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config - search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files - @search_files = ::Gapic::Config::Method.new search_files_config - make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory - @make_directory = ::Gapic::Config::Method.new make_directory_config - remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory - @remove_directory = ::Gapic::Config::Method.new remove_directory_config - move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory - @move_directory = ::Gapic::Config::Method.new move_directory_config - read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file - @read_file = ::Gapic::Config::Method.new read_file_config - remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file - @remove_file = ::Gapic::Config::Method.new remove_file_config - move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file - @move_file = ::Gapic::Config::Method.new move_file_config - write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file - @write_file = ::Gapic::Config::Method.new write_file_config - list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs - @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config - get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config - @get_release_config = ::Gapic::Config::Method.new get_release_config_config - create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config - @create_release_config = ::Gapic::Config::Method.new create_release_config_config - update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config - @update_release_config = ::Gapic::Config::Method.new update_release_config_config - delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config - @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config - list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results - @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config - get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result - @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config - create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result - @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config - query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions - @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config - list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs - @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config - get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config - @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config - create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config - @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config - update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config - @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config - delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config - @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config - list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations - @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config - get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation - @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config - create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation - @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config - delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation - @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config - cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation - @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config - query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions - @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config - get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config - @get_config = ::Gapic::Config::Method.new get_config_config - update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config - @update_config = ::Gapic::Config::Method.new update_config_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb deleted file mode 100644 index 1576b6fb66dd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb +++ /dev/null @@ -1,925 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Dataform Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = OperationsServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.list_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.get_operation request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.delete_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.cancel_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations REST API. - # - # This class represents the configuration for Operations REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - - yield self if block_given? - end - end - end - end - - ## - # @private - # REST service stub for the Longrunning Operations API. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - class OperationsServiceStub - def initialize endpoint:, endpoint_template:, universe_domain:, credentials: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials - end - - ## - # Baseline implementation for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::ListOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::ListOperationsResponse] - # A result object deserialized from the server's reply - def list_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def get_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def cancel_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}/operations", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb deleted file mode 100644 index 1f799e9394cc..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb +++ /dev/null @@ -1,4636 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataform/v1/dataform_pb" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - ## - # REST service stub for the Dataform service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def get_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def create_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def update_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_team_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_team_folder_tree request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_team_folder_tree", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_team_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] - # A result object deserialized from the server's reply - def query_team_folder_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_team_folder_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_team_folder_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the search_team_folders REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] - # A result object deserialized from the server's reply - def search_team_folders request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_search_team_folders_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "search_team_folders", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def get_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def create_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def update_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_folder_tree request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_folder_tree", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] - # A result object deserialized from the server's reply - def query_folder_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_folder_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_folder_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_user_root_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] - # A result object deserialized from the server's reply - def query_user_root_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_user_root_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_user_root_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def move_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_repositories REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] - # A result object deserialized from the server's reply - def list_repositories request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_repositories", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def get_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def create_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def update_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def move_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the commit_repository_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # A result object deserialized from the server's reply - def commit_repository_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "commit_repository_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the read_repository_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # A result object deserialized from the server's reply - def read_repository_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "read_repository_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_repository_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] - # A result object deserialized from the server's reply - def query_repository_directory_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_repository_directory_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_repository_history REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] - # A result object deserialized from the server's reply - def fetch_repository_history request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_repository_history", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the compute_repository_access_token_status REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # A result object deserialized from the server's reply - def compute_repository_access_token_status request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "compute_repository_access_token_status", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_remote_branches REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # A result object deserialized from the server's reply - def fetch_remote_branches request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_remote_branches", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workspaces REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] - # A result object deserialized from the server's reply - def list_workspaces request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workspaces", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # A result object deserialized from the server's reply - def get_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # A result object deserialized from the server's reply - def create_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the install_npm_packages REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # A result object deserialized from the server's reply - def install_npm_packages request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "install_npm_packages", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the pull_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # A result object deserialized from the server's reply - def pull_git_commits request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "pull_git_commits", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the push_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # A result object deserialized from the server's reply - def push_git_commits request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "push_git_commits", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_file_git_statuses REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # A result object deserialized from the server's reply - def fetch_file_git_statuses request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_file_git_statuses", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_git_ahead_behind REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # A result object deserialized from the server's reply - def fetch_git_ahead_behind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_git_ahead_behind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the commit_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # A result object deserialized from the server's reply - def commit_workspace_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "commit_workspace_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the reset_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # A result object deserialized from the server's reply - def reset_workspace_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "reset_workspace_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_file_diff REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # A result object deserialized from the server's reply - def fetch_file_diff request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_file_diff", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] - # A result object deserialized from the server's reply - def query_directory_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_directory_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the search_files REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] - # A result object deserialized from the server's reply - def search_files request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "search_files", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the make_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # A result object deserialized from the server's reply - def make_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "make_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the remove_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # A result object deserialized from the server's reply - def remove_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "remove_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # A result object deserialized from the server's reply - def move_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the read_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # A result object deserialized from the server's reply - def read_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "read_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the remove_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # A result object deserialized from the server's reply - def remove_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "remove_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # A result object deserialized from the server's reply - def move_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the write_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # A result object deserialized from the server's reply - def write_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "write_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_release_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] - # A result object deserialized from the server's reply - def list_release_configs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_release_configs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def get_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def create_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def update_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_compilation_results REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] - # A result object deserialized from the server's reply - def list_compilation_results request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_compilation_results", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # A result object deserialized from the server's reply - def get_compilation_result request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_compilation_result", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # A result object deserialized from the server's reply - def create_compilation_result request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_compilation_result", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_compilation_result_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] - # A result object deserialized from the server's reply - def query_compilation_result_actions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_compilation_result_actions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workflow_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] - # A result object deserialized from the server's reply - def list_workflow_configs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workflow_configs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def get_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def create_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def update_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workflow_invocations REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] - # A result object deserialized from the server's reply - def list_workflow_invocations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workflow_invocations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # A result object deserialized from the server's reply - def get_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # A result object deserialized from the server's reply - def create_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # A result object deserialized from the server's reply - def cancel_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_workflow_invocation_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] - # A result object deserialized from the server's reply - def query_workflow_invocation_actions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_workflow_invocation_actions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def get_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def update_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # A result object deserialized from the server's reply - def get_iam_policy request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_iam_policy", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the set_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # A result object deserialized from the server's reply - def set_iam_policy request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "set_iam_policy", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the test_iam_permissions REST call - # - # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # A result object deserialized from the server's reply - def test_iam_permissions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "test_iam_permissions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/teamFolders", - body: "team_folder", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{team_folder.name}", - body: "team_folder", - matches: [ - ["team_folder.name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_team_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_team_folder_tree_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:deleteTree", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_team_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_team_folder_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{team_folder}:queryContents", - matches: [ - ["team_folder", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the search_team_folders REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_search_team_folders_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{location}/teamFolders:search", - matches: [ - ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/folders", - body: "folder", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{folder.name}", - body: "folder", - matches: [ - ["folder.name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_folder_tree_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:deleteTree", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_folder_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{folder}:queryFolderContents", - matches: [ - ["folder", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_user_root_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_user_root_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{location}:queryUserRootContents", - matches: [ - ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:move", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_repositories REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_repositories_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/repositories", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/repositories", - body: "repository", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{repository.name}", - body: "repository", - matches: [ - ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:move", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the commit_repository_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_commit_repository_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:commit", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the read_repository_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_read_repository_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:readFile", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_repository_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_repository_directory_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:queryDirectoryContents", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_repository_history REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_repository_history_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchHistory", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the compute_repository_access_token_status REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_compute_repository_access_token_status_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:computeAccessTokenStatus", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_remote_branches REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_remote_branches_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchRemoteBranches", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workspaces REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workspaces_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workspaces", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workspaces", - body: "workspace", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the install_npm_packages REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_install_npm_packages_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:installNpmPackages", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the pull_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_pull_git_commits_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:pull", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the push_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_push_git_commits_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:push", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_file_git_statuses REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_file_git_statuses_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchFileGitStatuses", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_git_ahead_behind REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_git_ahead_behind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchGitAheadBehind", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the commit_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_commit_workspace_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:commit", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the reset_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_reset_workspace_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:reset", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_file_diff REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_file_diff_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:fetchFileDiff", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_directory_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:queryDirectoryContents", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the search_files REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_search_files_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:searchFiles", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the make_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_make_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:makeDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the remove_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_remove_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:removeDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:moveDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the read_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_read_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:readFile", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the remove_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_remove_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:removeFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:moveFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the write_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_write_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:writeFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_release_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_release_configs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/releaseConfigs", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/releaseConfigs", - body: "release_config", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{release_config.name}", - body: "release_config", - matches: [ - ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_compilation_results REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_compilation_results_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/compilationResults", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_compilation_result_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_compilation_result_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/compilationResults", - body: "compilation_result", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_compilation_result_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_compilation_result_actions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:query", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workflow_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workflow_configs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workflowConfigs", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workflowConfigs", - body: "workflow_config", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{workflow_config.name}", - body: "workflow_config", - matches: [ - ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workflow_invocations REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workflow_invocations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workflowInvocations", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workflowInvocations", - body: "workflow_invocation", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_workflow_invocation_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_workflow_invocation_actions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:query", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{config.name}", - body: "config", - matches: [ - ["config.name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_iam_policy_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the set_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_set_iam_policy_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the test_iam_permissions REST call - # - # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_test_iam_permissions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb deleted file mode 100644 index d0223b594bff..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb +++ /dev/null @@ -1,216 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/dataform/v1/dataform.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' -require 'google/rpc/status_pb' -require 'google/type/interval_pb' - - -descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0e\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12#\n\x11\x63ontaining_folder\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\"\n\x10team_folder_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_containing_folderB\x13\n\x11_team_folder_nameB\x14\n\x12_internal_metadata\"3\n\x17PrivateResourceMetadata\x12\x18\n\x0buser_scoped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa4\x01\n\x15MoveRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xff\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\x8b\x04\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rdisable_moves\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x08 \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadataB\x10\n\x0e_disable_moves\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xe5\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x05 \x01(\x0e\x32/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x12\x43\n\x08metadata\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\n\x05\x65ntry\"h\n\x17\x46ilesystemEntryMetadata\x12\x17\n\nsize_bytes\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xca\x08\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x0c \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa3\x1e\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xae\x0b\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\n\nconnection\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x0ctable_format\x18\x10 \x01(\x0e\x32\x46.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xe0\x41\x01\x12_\n\x0b\x66ile_format\x18\x11 \x01(\x0e\x32\x45.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xe0\x41\x01\x12\x18\n\x0bstorage_uri\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\"8\n\x0bTableFormat\x12\x1c\n\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07ICEBERG\x10\x01\"6\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xdc\x03\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x0equery_priority\x18\t \x01(\x0e\x32\x38.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xe0\x41\x01H\x00\x88\x01\x01\"K\n\rQueryPriority\x12\x1e\n\x1aQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINTERACTIVE\x10\x01\x12\t\n\x05\x42\x41TCH\x10\x02\x42\x11\n\x0f_query_priority\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\x94\x08\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\n \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x02\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfigB\x14\n\x12_internal_metadata\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcf\x03\n\x06\x46older\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x63ontaining_folder\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10team_folder_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:n\xea\x41k\n\x1e\x64\x61taform.googleapis.com/Folder\x12\x38projects/{project}/locations/{location}/folders/{folder}*\x07\x66olders2\x06\x66olderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x87\x01\n\x13\x43reateFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"\x9c\x01\n\x11MoveFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"H\n\x10GetFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"\x82\x01\n\x13UpdateFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"K\n\x13\x44\x65leteFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"c\n\x17\x44\x65leteFolderTreeRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x1b\x44\x65leteTeamFolderTreeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe2\x02\n\x18\x44\x65leteFolderTreeMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\"[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xb1\x01\n\x1aQueryFolderContentsRequest\x12\x36\n\x06\x66older\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1bQueryFolderContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8e\x01\n\x13\x46olderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb8\x01\n\x1cQueryUserRootContentsRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1dQueryUserRootContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8c\x01\n\x11RootContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xab\x03\n\nTeamFolder\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n\"dataform.googleapis.com/TeamFolder\x12\x41projects/{project}/locations/{location}/teamFolders/{team_folder}*\x0bteamFolders2\nteamFolderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x94\x01\n\x17\x43reateTeamFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"P\n\x14GetTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\x8f\x01\n\x17UpdateTeamFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"S\n\x17\x44\x65leteTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\xbe\x01\n\x1eQueryTeamFolderContentsRequest\x12?\n\x0bteam_folder\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb3\x02\n\x1fQueryTeamFolderContentsResponse\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x92\x01\n\x17TeamFolderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb4\x01\n\x18SearchTeamFoldersRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xf1\x01\n\x19SearchTeamFoldersResponse\x12[\n\x07results\x18\x01 \x03(\x0b\x32J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a^\n\x16TeamFolderSearchResult\x12;\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderH\x00\x42\x07\n\x05\x65ntry\"\xca\x02\n\x12MoveFolderMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xd2\x02\n\x16MoveRepositoryMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04*\x89\x01\n\x15\x44irectoryContentsView\x12\'\n#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1d\x44IRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12$\n DIRECTORY_CONTENTS_VIEW_METADATA\x10\x02\x32\xe3}\n\x08\x44\x61taform\x12\xa5\x01\n\rGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xc6\x01\n\x10\x43reateTeamFolder\x12\x31.google.cloud.dataform.v1.CreateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"Y\xda\x41\x12parent,team_folder\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0bteam_folder\x12\xd7\x01\n\x10UpdateTeamFolder\x12\x31.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"j\xda\x41\x17team_folder,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0bteam_folder\x12\x9d\x01\n\x10\x44\x65leteTeamFolder\x12\x31.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xf5\x01\n\x14\x44\x65leteTeamFolderTree\x12\x35.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xea\x01\n\x17QueryTeamFolderContents\x12\x38.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1a\x39.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xda\x41\x0bteam_folder\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xbe\x01\n\x11SearchTeamFolders\x12\x32.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1a\x33.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\n\tGetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1a .google.cloud.dataform.v1.Folder\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xac\x01\n\x0c\x43reateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"K\xda\x41\rparent,folder\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/folders:\x06\x66older\x12\xb8\x01\n\x0cUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"W\xda\x41\x12\x66older,update_mask\x82\xd3\xe4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06\x66older\x12\x91\x01\n\x0c\x44\x65leteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xe9\x01\n\x10\x44\x65leteFolderTree\x12\x31.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xd6\x01\n\x13QueryFolderContents\x12\x34.google.cloud.dataform.v1.QueryFolderContentsRequest\x1a\x35.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xda\x41\x06\x66older\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xd8\x01\n\x15QueryUserRootContents\x12\x36.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1a\x37.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xda\x41\x08location\x82\xd3\xe4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xe9\x01\n\nMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41+\n\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02\x35\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xfa\x01\n\x0eMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x12\xf7\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xab\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x99\x02\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb deleted file mode 100644 index 7076d1962dc3..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Longrunning - module Operations - # Credentials for the Operations API. - class Credentials < ::Google::Auth::Credentials - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb deleted file mode 100644 index 6b2d5f7cecff..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb +++ /dev/null @@ -1,837 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Longrunning - module Operations - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Operations Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Operations Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb deleted file mode 100644 index ff6597693b4e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" -require "google/longrunning/bindings_override" - -require "google/longrunning/operations/credentials" -require "google/longrunning/operations/rest/operations" -require "google/longrunning/operations/rest/client" - -module Google - module Longrunning - ## - # Manages long-running operations with an API service. - # - # When an API method normally takes long time to complete, it can be designed - # to return {::Google::Longrunning::Operation Operation} to the client, and the - # client can use this interface to receive the real response asynchronously by - # polling the operation resource, or pass the operation resource to another API - # (such as Pub/Sub API) to receive the response. Any API service that returns - # long-running operations should implement the `Operations` interface so - # developers can have a consistent client experience. - # - # To load this service and instantiate a REST client: - # - # require "google/longrunning/operations/rest" - # client = ::Google::Longrunning::Operations::Rest::Client.new - # - module Operations - # Client for the REST transport - module Rest - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/longrunning/operations/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb deleted file mode 100644 index 088db9bb5d0c..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb +++ /dev/null @@ -1,776 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/longrunning/operations_pb" -require "google/longrunning/operations/rest/service_stub" -require "google/cloud/location/rest" -require "google/iam/v1/rest" - -module Google - module Longrunning - module Operations - module Rest - ## - # REST client for the Operations service. - # - # Manages long-running operations with an API service. - # - # When an API method normally takes long time to complete, it can be designed - # to return {::Google::Longrunning::Operation Operation} to the client, and the - # client can use this interface to receive the real response asynchronously by - # polling the operation resource, or pass the operation resource to another API - # (such as Pub/Sub API) to receive the response. Any API service that returns - # long-running operations should implement the `Operations` interface so - # developers can have a consistent client experience. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configure the Operations Client class. - # - # See {::Google::Longrunning::Operations::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Operations clients - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Longrunning"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Operations Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Longrunning::Operations::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Longrunning::Operations::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = ::Google::Longrunning::Operations::Rest::Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @operations_stub = ::Google::Longrunning::Operations::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @operations_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @operations_stub.endpoint - config.universe_domain = @operations_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @operations_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @operations_stub.endpoint - config.universe_domain = @operations_stub.universe_domain - config.logger = @operations_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Longrunning::Operations::Rest::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Rest::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @operations_stub.logger - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.list_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.get_operation request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.delete_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.cancel_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations REST API. - # - # This class represents the configuration for Operations REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - - yield self if block_given? - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb deleted file mode 100644 index f5539db81ab3..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb +++ /dev/null @@ -1,921 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" - -module Google - module Longrunning - module Operations - module Rest - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Operations Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Operations Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = OperationsServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.list_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.get_operation request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.delete_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.cancel_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations REST API. - # - # This class represents the configuration for Operations REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - - yield self if block_given? - end - end - end - end - - ## - # @private - # REST service stub for the Longrunning Operations API. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - class OperationsServiceStub - def initialize endpoint:, endpoint_template:, universe_domain:, credentials: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials - end - - ## - # Baseline implementation for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::ListOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::ListOperationsResponse] - # A result object deserialized from the server's reply - def list_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def get_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def cancel_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}/operations", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb deleted file mode 100644 index 0a616d856150..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb +++ /dev/null @@ -1,322 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/longrunning/operations_pb" - -module Google - module Longrunning - module Operations - module Rest - ## - # REST service stub for the Operations service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::ListOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::ListOperationsResponse] - # A result object deserialized from the server's reply - def list_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def get_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def cancel_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_cancel_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}/operations", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb deleted file mode 100644 index 1abb8352800b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/longrunning/operations/rest" -require "google/longrunning/bindings_override" -require "google/cloud/dataform/v1/version" - -module Google - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/longrunning/rest" - # client = ::Google::Longrunning::Operations::Rest::Client.new - # - module Longrunning - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md deleted file mode 100644 index a128eb6cf57a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Dataform V1 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb deleted file mode 100644 index 5089551e9ea4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb +++ /dev/null @@ -1,589 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb deleted file mode 100644 index 71e821d33ab7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb +++ /dev/null @@ -1,3308 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataform - module V1 - # Describes encryption state of a resource. - # @!attribute [rw] kms_key_version_name - # @return [::String] - # Required. The KMS key version name with which data of a resource is - # encrypted. - class DataEncryptionState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git repository. - # @!attribute [rw] name - # @return [::String] - # Identifier. The repository's name. - # @!attribute [rw] containing_folder - # @return [::String] - # Optional. The name of the containing folder of the repository. - # The field is immutable and it can be modified via a MoveRepository - # operation. - # Format: `projects/*/locations/*/folders/*`. or - # `projects/*/locations/*/teamFolders/*`. - # @!attribute [r] team_folder_name - # @return [::String] - # Output only. The resource name of the TeamFolder that this Repository is - # associated with. This should take the format: - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this - # is not set, the Repository is not associated with a TeamFolder. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the repository was created. - # @!attribute [rw] display_name - # @return [::String] - # Optional. The repository's user-friendly name. - # @!attribute [rw] git_remote_settings - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings] - # Optional. If set, configures this repository to be linked to a Git remote. - # @!attribute [rw] npmrc_environment_variables_secret_version - # @return [::String] - # Optional. The name of the Secret Manager secret version to be used to - # interpolate variables into the .npmrc file for package installation - # operations. Must be in the format `projects/*/secrets/*/versions/*`. The - # file itself must be in a JSON format. - # @!attribute [rw] workspace_compilation_overrides - # @return [::Google::Cloud::Dataform::V1::Repository::WorkspaceCompilationOverrides] - # Optional. If set, fields of `workspace_compilation_overrides` override the - # default compilation settings that are specified in dataform.json when - # creating workspace-scoped compilation results. See documentation for - # `WorkspaceCompilationOverrides` for more information. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Repository user labels. - # @!attribute [rw] set_authenticated_user_admin - # @return [::Boolean] - # Optional. Input only. If set to true, the authenticated user will be - # granted the roles/dataform.admin role on the created repository. - # @!attribute [rw] service_account - # @return [::String] - # Optional. The service account to run workflow invocations under. - # @!attribute [rw] kms_key_name - # @return [::String] - # Optional. The reference to a KMS encryption key. If provided, it will be - # used to encrypt user data in the repository and all child resources. It is - # not possible to add or update the encryption key after the repository is - # created. Example: - # `projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}` - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. A data encryption state of a Git repository if this Repository - # is protected by a KMS key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class Repository - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Controls Git remote configuration for a repository. - # @!attribute [rw] url - # @return [::String] - # Required. The Git remote's URL. - # @!attribute [rw] default_branch - # @return [::String] - # Required. The Git remote's default branch name. - # @!attribute [rw] authentication_token_secret_version - # @return [::String] - # Optional. The name of the Secret Manager secret version to use as an - # authentication token for Git operations. Must be in the format - # `projects/*/secrets/*/versions/*`. - # @!attribute [rw] ssh_authentication_config - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::SshAuthenticationConfig] - # Optional. Authentication fields for remote uris using SSH protocol. - # @!attribute [r] token_status - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::TokenStatus] - # Output only. Deprecated: The field does not contain any token status - # information. - class GitRemoteSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Configures fields for performing SSH authentication. - # @!attribute [rw] user_private_key_secret_version - # @return [::String] - # Required. The name of the Secret Manager secret version to use as a - # ssh private key for Git operations. - # Must be in the format `projects/*/secrets/*/versions/*`. - # @!attribute [rw] host_public_key - # @return [::String] - # Required. Content of a public SSH key to verify an identity of a remote - # Git host. - class SshAuthenticationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The status of the authentication token. - module TokenStatus - # Default value. This value is unused. - TOKEN_STATUS_UNSPECIFIED = 0 - - # The token could not be found in Secret Manager (or the Dataform - # Service Account did not have permission to access it). - NOT_FOUND = 1 - - # The token could not be used to authenticate against the Git remote. - INVALID = 2 - - # The token was used successfully to authenticate against the Git remote. - VALID = 3 - end - end - - # Configures workspace compilation overrides for a repository. - # @!attribute [rw] default_database - # @return [::String] - # Optional. The default database (Google Cloud project ID). - # @!attribute [rw] schema_suffix - # @return [::String] - # Optional. The suffix that should be appended to all schema (BigQuery - # dataset ID) names. - # @!attribute [rw] table_prefix - # @return [::String] - # Optional. The prefix that should be prepended to all table names. - class WorkspaceCompilationOverrides - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Metadata used to identify if a resource is user scoped. - # @!attribute [r] user_scoped - # @return [::Boolean] - # Output only. If true, this resource is user-scoped, meaning it is either a - # workspace or sourced from a workspace. - class PrivateResourceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListRepositories` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListRepositoriesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListRepositories` response message. - # @!attribute [rw] repositories - # @return [::Array<::Google::Cloud::Dataform::V1::Repository>] - # List of repositories. - # @!attribute [rw] next_page_token - # @return [::String] - # A token which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListRepositoriesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The full resource name of the repository to move. - # @!attribute [rw] destination_containing_folder - # @return [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - class MoveRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class GetRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateRepository` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # Required. The repository to create. - # @!attribute [rw] repository_id - # @return [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - class CreateRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateRepository` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # Required. The repository to update. - class UpdateRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - class DeleteRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitRepositoryChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_metadata - # @return [::Google::Cloud::Dataform::V1::CommitMetadata] - # Required. The changes to commit to the repository. - # @!attribute [rw] required_head_commit_sha - # @return [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @!attribute [rw] file_operations - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - class CommitRepositoryChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single file operation to the repository. - # @!attribute [rw] write_file - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::WriteFile] - # Represents the write operation. - # - # Note: The following fields are mutually exclusive: `write_file`, `delete_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delete_file - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::DeleteFile] - # Represents the delete operation. - # - # Note: The following fields are mutually exclusive: `delete_file`, `write_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class FileOperation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the write file operation (for files added or modified). - # @!attribute [rw] contents - # @return [::String] - # The file's contents. - class WriteFile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the delete file operation. - class DeleteFile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation] - class FileOperationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `CommitRepositoryChanges` response message. - # @!attribute [rw] commit_sha - # @return [::String] - # The commit SHA of the current commit. - class CommitRepositoryChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadRepositoryFile` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_sha - # @return [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @!attribute [rw] path - # @return [::String] - # Required. Full file path to read including filename, from repository root. - class ReadRepositoryFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadRepositoryFile` response message. - # @!attribute [rw] contents - # @return [::String] - # The file's contents. - class ReadRepositoryFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryRepositoryDirectoryContents` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_sha - # @return [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @!attribute [rw] path - # @return [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - class QueryRepositoryDirectoryContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryRepositoryDirectoryContents` response message. - # @!attribute [rw] directory_entries - # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # List of entries in the directory. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryRepositoryDirectoryContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRepositoryHistory` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class FetchRepositoryHistoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRepositoryHistory` response message. - # @!attribute [rw] commits - # @return [::Array<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # A list of commit logs, ordered by 'git log' default order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class FetchRepositoryHistoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single commit log. - # @!attribute [rw] commit_time - # @return [::Google::Protobuf::Timestamp] - # Commit timestamp. - # @!attribute [rw] commit_sha - # @return [::String] - # The commit SHA for this commit log entry. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # The commit author for this commit log entry. - # @!attribute [rw] commit_message - # @return [::String] - # The commit message for this commit log entry. - class CommitLogEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git commit. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The commit's author. - # @!attribute [rw] commit_message - # @return [::String] - # Optional. The commit's message. - class CommitMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ComputeRepositoryAccessTokenStatus` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class ComputeRepositoryAccessTokenStatusRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ComputeRepositoryAccessTokenStatus` response message. - # @!attribute [rw] token_status - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse::TokenStatus] - # Indicates the status of the Git access token. - class ComputeRepositoryAccessTokenStatusResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the status of a Git authentication token. - module TokenStatus - # Default value. This value is unused. - TOKEN_STATUS_UNSPECIFIED = 0 - - # The token could not be found in Secret Manager (or the Dataform - # Service Account did not have permission to access it). - NOT_FOUND = 1 - - # The token could not be used to authenticate against the Git remote. - INVALID = 2 - - # The token was used successfully to authenticate against the Git remote. - VALID = 3 - - # The token is not accessible due to permission issues. - PERMISSION_DENIED = 4 - end - end - - # `FetchRemoteBranches` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class FetchRemoteBranchesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRemoteBranches` response message. - # @!attribute [rw] branches - # @return [::Array<::String>] - # The remote repository's branch names. - class FetchRemoteBranchesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git workspace. - # @!attribute [rw] name - # @return [::String] - # Identifier. The workspace's name. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the workspace was created. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. A data encryption state of a Git repository if this Workspace - # is protected by a KMS key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [rw] disable_moves - # @return [::Boolean] - # Optional. If set to true, workspaces will not be moved if its linked - # Repository is moved. Instead, it will be deleted. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # Output only. Metadata indicating whether this resource is user-scoped. For - # `Workspace` resources, the `user_scoped` field is always `true`. - class Workspace - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkspaces` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListWorkspacesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkspaces` response message. - # @!attribute [rw] workspaces - # @return [::Array<::Google::Cloud::Dataform::V1::Workspace>] - # List of workspaces. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkspacesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkspace` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - class GetWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkspace` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workspace - # @return [::Google::Cloud::Dataform::V1::Workspace] - # Required. The workspace to create. - # @!attribute [rw] workspace_id - # @return [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - class CreateWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkspace` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace resource's name. - class DeleteWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the author of a Git commit. - # @!attribute [rw] name - # @return [::String] - # Required. The commit author's name. - # @!attribute [rw] email_address - # @return [::String] - # Required. The commit author's email address. - class CommitAuthor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PullGitCommits` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - class PullGitCommitsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PullGitCommits` response message. - class PullGitCommitsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PushGitCommits` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - class PushGitCommitsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PushGitCommits` response message. - class PushGitCommitsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileGitStatuses` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - class FetchFileGitStatusesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileGitStatuses` response message. - # @!attribute [rw] uncommitted_file_changes - # @return [::Array<::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange>] - # A list of all files which have uncommitted Git changes. There will only be - # a single entry for any given file. - class FetchFileGitStatusesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the Git state of a file with uncommitted changes. - # @!attribute [rw] path - # @return [::String] - # The file's full path including filename, relative to the workspace root. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange::State] - # Output only. Indicates the status of the file. - class UncommittedFileChange - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the status of an uncommitted file change. - module State - # Default value. This value is unused. - STATE_UNSPECIFIED = 0 - - # The file has been newly added. - ADDED = 1 - - # The file has been deleted. - DELETED = 2 - - # The file has been modified. - MODIFIED = 3 - - # The file contains merge conflicts. - HAS_CONFLICTS = 4 - end - end - end - - # `FetchGitAheadBehind` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - class FetchGitAheadBehindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchGitAheadBehind` response message. - # @!attribute [rw] commits_ahead - # @return [::Integer] - # The number of commits in the remote branch that are not in the workspace. - # @!attribute [rw] commits_behind - # @return [::Integer] - # The number of commits in the workspace that are not in the remote branch. - class FetchGitAheadBehindResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitWorkspaceChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The commit's author. - # @!attribute [rw] commit_message - # @return [::String] - # Optional. The commit's message. - # @!attribute [rw] paths - # @return [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - class CommitWorkspaceChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitWorkspaceChanges` response message. - class CommitWorkspaceChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ResetWorkspaceChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] paths - # @return [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @!attribute [rw] clean - # @return [::Boolean] - # Optional. If set to true, untracked files will be deleted. - class ResetWorkspaceChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ResetWorkspaceChanges` response message. - class ResetWorkspaceChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileDiff` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - class FetchFileDiffRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileDiff` response message. - # @!attribute [rw] formatted_diff - # @return [::String] - # The raw formatted Git diff for the file. - class FetchFileDiffResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryDirectoryContents` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - class QueryDirectoryContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryDirectoryContents` response message. - # @!attribute [rw] directory_entries - # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # List of entries in the directory. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryDirectoryContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single entry in a directory. - # @!attribute [rw] file - # @return [::String] - # A file in the directory. - # - # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] directory - # @return [::String] - # A child directory in the directory. - # - # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] metadata - # @return [::Google::Cloud::Dataform::V1::FilesystemEntryMetadata] - # Entry with metadata. - class DirectoryEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents metadata for a single entry in a filesystem. - # @!attribute [r] size_bytes - # @return [::Integer] - # Output only. Provides the size of the entry in bytes. For directories, this - # will be 0. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Represents the time of the last modification of the entry. - class FilesystemEntryMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Configuration containing file search request parameters. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - class SearchFilesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a file search response. - # @!attribute [rw] search_results - # @return [::Array<::Google::Cloud::Dataform::V1::SearchResult>] - # List of matched results. - # @!attribute [rw] next_page_token - # @return [::String] - # Optional. A token, which can be sent as `page_token` to retrieve the next - # page. If this field is omitted, there are no subsequent pages. - class SearchFilesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a search result entry. - # @!attribute [rw] file - # @return [::Google::Cloud::Dataform::V1::FileSearchResult] - # Details when search result is a file. - # - # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] directory - # @return [::Google::Cloud::Dataform::V1::DirectorySearchResult] - # Details when search result is a directory. - # - # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class SearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a file entry in search results. - # @!attribute [rw] path - # @return [::String] - # File system path relative to the workspace root. - class FileSearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a directory entry in search results. - # @!attribute [rw] path - # @return [::String] - # File system path relative to the workspace root. - class DirectorySearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MakeDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - class MakeDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MakeDirectory` response message. - class MakeDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - class RemoveDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveDirectory` response message. - class RemoveDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @!attribute [rw] new_path - # @return [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - class MoveDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveDirectory` response message. - class MoveDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @!attribute [rw] revision - # @return [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - class ReadFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadFile` response message. - # @!attribute [rw] file_contents - # @return [::String] - # The file's contents. - class ReadFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - class RemoveFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveFile` response message. - class RemoveFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @!attribute [rw] new_path - # @return [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - class MoveFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFile` response message. - class MoveFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `WriteFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file. - # @!attribute [rw] contents - # @return [::String] - # Required. The file's contents. - class WriteFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `WriteFile` response message. - class WriteFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `InstallNpmPackages` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - class InstallNpmPackagesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `InstallNpmPackages` response message. - class InstallNpmPackagesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform release configuration. - # @!attribute [rw] name - # @return [::String] - # Identifier. The release config's name. - # @!attribute [rw] git_commitish - # @return [::String] - # Required. 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` - # @!attribute [rw] code_compilation_config - # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] - # Optional. If set, fields of `code_compilation_config` override the default - # compilation settings that are specified in dataform.json. - # @!attribute [rw] cron_schedule - # @return [::String] - # Optional. Optional schedule (in cron format) for automatic creation of - # compilation results. - # @!attribute [rw] time_zone - # @return [::String] - # 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. - # @!attribute [r] recent_scheduled_release_records - # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig::ScheduledReleaseRecord>] - # Output only. Records of the 10 most recent scheduled release attempts, - # ordered in descending order of `release_time`. Updated whenever automatic - # creation of a compilation result is triggered by cron_schedule. - # @!attribute [rw] release_compilation_result - # @return [::String] - # Optional. The name of the currently released compilation result for this - # release config. This value is updated when a compilation result is - # automatically created from this release config (using cron_schedule), or - # when this resource is updated by API call (perhaps to roll back to an - # earlier release). The compilation result must have been created using this - # release config. Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # @!attribute [rw] disabled - # @return [::Boolean] - # Optional. Disables automatic creation of compilation results. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class ReleaseConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A record of an attempt to create a compilation result for this release - # config. - # @!attribute [rw] compilation_result - # @return [::String] - # The name of the created compilation result, if one was successfully - # created. Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # - # Note: The following fields are mutually exclusive: `compilation_result`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] error_status - # @return [::Google::Rpc::Status] - # The error status encountered upon this attempt to create the - # compilation result, if the attempt was unsuccessful. - # - # Note: The following fields are mutually exclusive: `error_status`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] release_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of this release attempt. - class ScheduledReleaseRecord - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `ListReleaseConfigs` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class ListReleaseConfigsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListReleaseConfigs` response message. - # @!attribute [rw] release_configs - # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # List of release configs. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListReleaseConfigsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetReleaseConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The release config's name. - class GetReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateReleaseConfig` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] release_config - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # Required. The release config to create. - # @!attribute [rw] release_config_id - # @return [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - class CreateReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateReleaseConfig` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @!attribute [rw] release_config - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # Required. The release config to update. - class UpdateReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteReleaseConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The release config's name. - class DeleteReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the result of compiling a Dataform project. - # @!attribute [rw] git_commitish - # @return [::String] - # 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` - # - # Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] workspace - # @return [::String] - # Immutable. The name of the workspace to compile. Must be in the format - # `projects/*/locations/*/repositories/*/workspaces/*`. - # - # Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] release_config - # @return [::String] - # Immutable. The name of the release config to compile. Must be in the - # format `projects/*/locations/*/repositories/*/releaseConfigs/*`. - # - # Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] name - # @return [::String] - # Output only. The compilation result's name. - # @!attribute [rw] code_compilation_config - # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] - # Immutable. If set, fields of `code_compilation_config` override the default - # compilation settings that are specified in dataform.json. - # @!attribute [r] resolved_git_commit_sha - # @return [::String] - # Output only. The fully resolved Git commit SHA of the code that was - # compiled. Not set for compilation results whose source is a workspace. - # @!attribute [r] dataform_core_version - # @return [::String] - # Output only. The version of `@dataform/core` that was used for compilation. - # @!attribute [r] compilation_errors - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult::CompilationError>] - # Output only. Errors encountered during project compilation. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. Only set if the repository has a KMS Key. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the compilation result was created. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # Output only. Metadata indicating whether this resource is user-scoped. - # `CompilationResult` resource is `user_scoped` only if it is sourced - # from a workspace. - class CompilationResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # An error encountered when attempting to compile a Dataform project. - # @!attribute [r] message - # @return [::String] - # Output only. The error's top level message. - # @!attribute [r] stack - # @return [::String] - # Output only. The error's full stack trace. - # @!attribute [r] path - # @return [::String] - # Output only. The path of the file where this error occurred, if - # available, relative to the project root. - # @!attribute [r] action_target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. The identifier of the action where this error occurred, if - # available. - class CompilationError - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configures various aspects of Dataform code compilation. - # @!attribute [rw] default_database - # @return [::String] - # Optional. The default database (Google Cloud project ID). - # @!attribute [rw] default_schema - # @return [::String] - # Optional. The default schema (BigQuery dataset ID). - # @!attribute [rw] default_location - # @return [::String] - # Optional. The default BigQuery location to use. Defaults to "US". - # See the BigQuery docs for a full list of locations: - # https://cloud.google.com/bigquery/docs/locations. - # @!attribute [rw] assertion_schema - # @return [::String] - # Optional. The default schema (BigQuery dataset ID) for assertions. - # @!attribute [rw] vars - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. User-defined variables that are made available to project code - # during compilation. - # @!attribute [rw] database_suffix - # @return [::String] - # Optional. The suffix that should be appended to all database (Google Cloud - # project ID) names. - # @!attribute [rw] schema_suffix - # @return [::String] - # Optional. The suffix that should be appended to all schema (BigQuery - # dataset ID) names. - # @!attribute [rw] table_prefix - # @return [::String] - # Optional. The prefix that should be prepended to all table names. - # @!attribute [rw] builtin_assertion_name_prefix - # @return [::String] - # Optional. The prefix to prepend to built-in assertion names. - # @!attribute [rw] default_notebook_runtime_options - # @return [::Google::Cloud::Dataform::V1::NotebookRuntimeOptions] - # Optional. The default notebook runtime options. - class CodeCompilationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class VarsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configures various aspects of Dataform notebook runtime. - # @!attribute [rw] gcs_output_bucket - # @return [::String] - # Optional. The Google Cloud Storage location to upload the result to. - # Format: `gs://bucket-name`. - # @!attribute [rw] ai_platform_notebook_runtime_template - # @return [::String] - # Optional. The resource name of the [Colab runtime template] - # (https://cloud.google.com/colab/docs/runtimes), from which a runtime is - # created for notebook executions. If not specified, a runtime is created - # with Colab's default specifications. - class NotebookRuntimeOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListCompilationResults` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListCompilationResultsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListCompilationResults` response message. - # @!attribute [rw] compilation_results - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult>] - # List of compilation results. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListCompilationResultsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetCompilationResult` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The compilation result's name. - class GetCompilationResultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateCompilationResult` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] compilation_result - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # Required. The compilation result to create. - class CreateCompilationResultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents an action identifier. If the action writes output, the output - # will be written to the referenced database object. - # @!attribute [rw] database - # @return [::String] - # Optional. The action's database (Google Cloud project ID) . - # @!attribute [rw] schema - # @return [::String] - # Optional. The action's schema (BigQuery dataset ID), within `database`. - # @!attribute [rw] name - # @return [::String] - # Optional. The action's name, within `database` and `schema`. - class Target - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes a relation and its columns. - # @!attribute [rw] description - # @return [::String] - # A text description of the relation. - # @!attribute [rw] columns - # @return [::Array<::Google::Cloud::Dataform::V1::RelationDescriptor::ColumnDescriptor>] - # A list of descriptions of columns within the relation. - # @!attribute [rw] bigquery_labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # A set of BigQuery labels that should be applied to the relation. - class RelationDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes a column. - # @!attribute [rw] path - # @return [::Array<::String>] - # The identifier for the column. Each entry in `path` represents one level - # of nesting. - # @!attribute [rw] description - # @return [::String] - # A textual description of the column. - # @!attribute [rw] bigquery_policy_tags - # @return [::Array<::String>] - # A list of BigQuery policy tags that will be applied to the column. - class ColumnDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class BigqueryLabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents a single Dataform action in a compilation result. - # @!attribute [rw] relation - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation] - # The database relation created/updated by this action. - # - # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] operations - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Operations] - # The database operations executed by this action. - # - # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] assertion - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Assertion] - # The assertion executed by this action. - # - # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] declaration - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Declaration] - # The declaration declared by this action. - # - # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] notebook - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Notebook] - # The notebook executed by this action. - # - # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_preparation - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation] - # The data preparation executed by this action. - # - # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # This action's identifier. Unique within the compilation result. - # @!attribute [rw] canonical_target - # @return [::Google::Cloud::Dataform::V1::Target] - # The action's identifier if the project had been compiled without any - # overrides configured. Unique within the compilation result. - # @!attribute [rw] file_path - # @return [::String] - # The full path including filename in which this action is located, relative - # to the workspace root. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class CompilationResultAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a database relation. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the relation and its columns. - # @!attribute [rw] relation_type - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::RelationType] - # The type of this relation. - # @!attribute [rw] select_query - # @return [::String] - # The SELECT query which returns rows which this relation should contain. - # @!attribute [rw] pre_operations - # @return [::Array<::String>] - # SQL statements to be executed before creating the relation. - # @!attribute [rw] post_operations - # @return [::Array<::String>] - # SQL statements to be executed after creating the relation. - # @!attribute [rw] incremental_table_config - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::IncrementalTableConfig] - # Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - # `relation_type` is `INCREMENTAL_TABLE`. - # @!attribute [rw] partition_expression - # @return [::String] - # The SQL expression used to partition the relation. - # @!attribute [rw] cluster_expressions - # @return [::Array<::String>] - # A list of columns or SQL expressions used to cluster the table. - # @!attribute [rw] partition_expiration_days - # @return [::Integer] - # Sets the partition expiration in days. - # @!attribute [rw] require_partition_filter - # @return [::Boolean] - # Specifies whether queries on this table must include a predicate filter - # that filters on the partitioning column. - # @!attribute [rw] additional_options - # @return [::Google::Protobuf::Map{::String => ::String}] - # Additional options that will be provided as key/value pairs into the - # options clause of a create table/view statement. See - # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language - # for more information on which options are supported. - # @!attribute [rw] connection - # @return [::String] - # Optional. The connection specifying the credentials to be used to read - # and write to external storage, such as Cloud Storage. The connection can - # have the form `{project}.{location}.{connection_id}` or - # `projects/{project}/locations/{location}/connections/{connection_id}`, - # or be set to DEFAULT. - # @!attribute [rw] table_format - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::TableFormat] - # Optional. The table format for the BigQuery table. - # @!attribute [rw] file_format - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::FileFormat] - # Optional. The file format for the BigQuery table. - # @!attribute [rw] storage_uri - # @return [::String] - # Optional. The fully qualified location prefix of the external folder - # where table data is stored. The URI should be in the format - # `gs://bucket/path_to_table/`. - class Relation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Contains settings for relations of type `INCREMENTAL_TABLE`. - # @!attribute [rw] incremental_select_query - # @return [::String] - # The SELECT query which returns rows which should be inserted into the - # relation if it already exists and is not being refreshed. - # @!attribute [rw] refresh_disabled - # @return [::Boolean] - # Whether this table should be protected from being refreshed. - # @!attribute [rw] unique_key_parts - # @return [::Array<::String>] - # A set of columns or SQL expressions used to define row uniqueness. - # If any duplicates are discovered (as defined by `unique_key_parts`), - # only the newly selected rows (as defined by `incremental_select_query`) - # will be included in the relation. - # @!attribute [rw] update_partition_filter - # @return [::String] - # A SQL expression conditional used to limit the set of existing rows - # considered for a merge operation (see `unique_key_parts` for more - # information). - # @!attribute [rw] incremental_pre_operations - # @return [::Array<::String>] - # SQL statements to be executed before inserting new rows into the - # relation. - # @!attribute [rw] incremental_post_operations - # @return [::Array<::String>] - # SQL statements to be executed after inserting new rows into the - # relation. - class IncrementalTableConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AdditionalOptionsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the type of this relation. - module RelationType - # Default value. This value is unused. - RELATION_TYPE_UNSPECIFIED = 0 - - # The relation is a table. - TABLE = 1 - - # The relation is a view. - VIEW = 2 - - # The relation is an incrementalized table. - INCREMENTAL_TABLE = 3 - - # The relation is a materialized view. - MATERIALIZED_VIEW = 4 - end - - # Supported table formats for BigQuery tables. - module TableFormat - # Default value. - TABLE_FORMAT_UNSPECIFIED = 0 - - # Apache Iceberg format. - ICEBERG = 1 - end - - # Supported file formats for BigQuery tables. - module FileFormat - # Default value. - FILE_FORMAT_UNSPECIFIED = 0 - - # Apache Parquet format. - PARQUET = 1 - end - end - - # Represents a list of arbitrary database operations. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for any output relation and its columns. Only set if - # `has_output` is true. - # @!attribute [rw] queries - # @return [::Array<::String>] - # A list of arbitrary SQL statements that will be executed without - # alteration. - # @!attribute [rw] has_output - # @return [::Boolean] - # Whether these operations produce an output relation. - class Operations - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents an assertion upon a SQL query which is required return zero - # rows. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] parent_action - # @return [::Google::Cloud::Dataform::V1::Target] - # The parent action of this assertion. Only set if this assertion was - # automatically generated. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] select_query - # @return [::String] - # The SELECT query which must return zero rows in order for this assertion - # to succeed. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the assertion's automatically-generated view and its - # columns. - class Assertion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a relation which is not managed by Dataform but which may be - # referenced by Dataform actions. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the relation and its columns. Used as documentation only, - # i.e. values here will result in no changes to the relation's metadata. - class Declaration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a notebook. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] contents - # @return [::String] - # The contents of the notebook. - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - class Notebook - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a compiled Data Preparation entity - # @!attribute [rw] contents_yaml - # @return [::String] - # The data preparation definition, stored as a YAML string. - # - # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] contents_sql - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::SqlDefinition] - # SQL definition for a Data Preparation. Contains a SQL query and - # additional context information. - # - # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - class DataPreparation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Definition of a SQL Data Preparation - # @!attribute [rw] query - # @return [::String] - # The SQL query representing the data preparation steps. Formatted as a - # Pipe SQL query statement. - # @!attribute [rw] error_table - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::ErrorTable] - # Error table configuration, - # @!attribute [rw] load - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::LoadConfig] - # Load configuration. - class SqlDefinition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Error table information, used to write error data into a BigQuery - # table. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Error Table target. - # @!attribute [rw] retention_days - # @return [::Integer] - # Error table partition expiration in days. Only positive values are - # allowed. - class ErrorTable - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Simplified load configuration for actions - # @!attribute [rw] replace - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] - # Replace destination table - # - # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] append - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] - # Append into destination table - # - # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] maximum - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] - # Insert records where the value exceeds the previous maximum value for a - # column in the destination table - # - # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] unique - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] - # Insert records where the value of a column is not already present in - # the destination table - # - # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class LoadConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simple load definition - class SimpleLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Load definition for incremental load modes - # @!attribute [rw] column - # @return [::String] - # Column name for incremental load modes - class IncrementalLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `QueryCompilationResultActions` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The compilation result's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - class QueryCompilationResultActionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryCompilationResultActions` response message. - # @!attribute [rw] compilation_result_actions - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # List of compilation result actions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryCompilationResultActionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform workflow configuration. - # @!attribute [rw] name - # @return [::String] - # Identifier. The workflow config's name. - # @!attribute [rw] release_config - # @return [::String] - # Required. The name of the release config whose release_compilation_result - # should be executed. Must be in the format - # `projects/*/locations/*/repositories/*/releaseConfigs/*`. - # @!attribute [rw] invocation_config - # @return [::Google::Cloud::Dataform::V1::InvocationConfig] - # Optional. If left unset, a default InvocationConfig will be used. - # @!attribute [rw] cron_schedule - # @return [::String] - # Optional. Optional schedule (in cron format) for automatic execution of - # this workflow config. - # @!attribute [rw] time_zone - # @return [::String] - # 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. - # @!attribute [r] recent_scheduled_execution_records - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig::ScheduledExecutionRecord>] - # Output only. Records of the 10 most recent scheduled execution attempts, - # ordered in descending order of `execution_time`. Updated whenever automatic - # creation of a workflow invocation is triggered by cron_schedule. - # @!attribute [rw] disabled - # @return [::Boolean] - # Optional. Disables automatic creation of workflow invocations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the WorkflowConfig was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the WorkflowConfig was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class WorkflowConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A record of an attempt to create a workflow invocation for this workflow - # config. - # @!attribute [rw] workflow_invocation - # @return [::String] - # The name of the created workflow invocation, if one was successfully - # created. Must be in the format - # `projects/*/locations/*/repositories/*/workflowInvocations/*`. - # - # Note: The following fields are mutually exclusive: `workflow_invocation`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] error_status - # @return [::Google::Rpc::Status] - # The error status encountered upon this attempt to create the - # workflow invocation, if the attempt was unsuccessful. - # - # Note: The following fields are mutually exclusive: `error_status`, `workflow_invocation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] execution_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of this execution attempt. - class ScheduledExecutionRecord - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Includes various configuration options for a workflow invocation. - # If both `included_targets` and `included_tags` are unset, all actions - # will be included. - # @!attribute [rw] included_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # Optional. The set of action identifiers to include. - # @!attribute [rw] included_tags - # @return [::Array<::String>] - # Optional. The set of tags to include. - # @!attribute [rw] transitive_dependencies_included - # @return [::Boolean] - # Optional. When set to true, transitive dependencies of included actions - # will be executed. - # @!attribute [rw] transitive_dependents_included - # @return [::Boolean] - # Optional. When set to true, transitive dependents of included actions will - # be executed. - # @!attribute [rw] fully_refresh_incremental_tables_enabled - # @return [::Boolean] - # Optional. When set to true, any incremental tables will be fully refreshed. - # @!attribute [rw] service_account - # @return [::String] - # Optional. The service account to run workflow invocations under. - # @!attribute [rw] query_priority - # @return [::Google::Cloud::Dataform::V1::InvocationConfig::QueryPriority] - # Optional. Specifies the priority for query execution in BigQuery. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#queries. - class InvocationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Types of priority for query execution in BigQuery. - module QueryPriority - # Default value. This value is unused. - QUERY_PRIORITY_UNSPECIFIED = 0 - - # Query will be executed in BigQuery with interactive priority. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#queries. - INTERACTIVE = 1 - - # Query will be executed in BigQuery with batch priority. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#batchqueries. - BATCH = 2 - end - end - - # `ListWorkflowConfigs` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class ListWorkflowConfigsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkflowConfigs` response message. - # @!attribute [rw] workflow_configs - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # List of workflow configs. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkflowConfigsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkflowConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow config's name. - class GetWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkflowConfig` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workflow_config - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # Required. The workflow config to create. - # @!attribute [rw] workflow_config_id - # @return [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - class CreateWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateWorkflowConfig` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @!attribute [rw] workflow_config - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # Required. The workflow config to update. - class UpdateWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkflowConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow config's name. - class DeleteWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single invocation of a compilation result. - # @!attribute [rw] compilation_result - # @return [::String] - # Immutable. The name of the compilation result to use for this invocation. - # Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # - # Note: The following fields are mutually exclusive: `compilation_result`, `workflow_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] workflow_config - # @return [::String] - # Immutable. The name of the workflow config to invoke. Must be in the - # format `projects/*/locations/*/repositories/*/workflowConfigs/*`. - # - # Note: The following fields are mutually exclusive: `workflow_config`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] name - # @return [::String] - # Output only. The workflow invocation's name. - # @!attribute [rw] invocation_config - # @return [::Google::Cloud::Dataform::V1::InvocationConfig] - # Immutable. If left unset, a default InvocationConfig will be used. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation::State] - # Output only. This workflow invocation's current state. - # @!attribute [r] invocation_timing - # @return [::Google::Type::Interval] - # Output only. This workflow invocation's timing details. - # @!attribute [r] resolved_compilation_result - # @return [::String] - # Output only. The resolved compilation result that was used to create this - # invocation. Will be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. Only set if the repository has a KMS Key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # 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. - class WorkflowInvocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the current state of a workflow invocation. - module State - # Default value. This value is unused. - STATE_UNSPECIFIED = 0 - - # The workflow invocation is currently running. - RUNNING = 1 - - # The workflow invocation succeeded. A terminal state. - SUCCEEDED = 2 - - # The workflow invocation was cancelled. A terminal state. - CANCELLED = 3 - - # The workflow invocation failed. A terminal state. - FAILED = 4 - - # The workflow invocation is being cancelled, but some actions are still - # running. - CANCELING = 5 - end - end - - # `ListWorkflowInvocations` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListWorkflowInvocationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkflowInvocations` response message. - # @!attribute [rw] workflow_invocations - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # List of workflow invocations. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkflowInvocationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class GetWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkflowInvocation` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workflow_invocation - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # Required. The workflow invocation resource to create. - class CreateWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class DeleteWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CancelWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class CancelWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CancelWorkflowInvocation` response message. - class CancelWorkflowInvocationResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single action in a workflow invocation. - # @!attribute [r] bigquery_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::BigQueryAction] - # Output only. The workflow action's bigquery action details. - # - # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] notebook_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::NotebookAction] - # Output only. The workflow action's notebook action details. - # - # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] data_preparation_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction] - # Output only. The workflow action's data preparation action details. - # - # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. This action's identifier. Unique within the workflow - # invocation. - # @!attribute [r] canonical_target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. The action's identifier if the project had been compiled - # without any overrides configured. Unique within the compilation result. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::State] - # Output only. This action's current state. - # @!attribute [r] failure_reason - # @return [::String] - # Output only. If and only if action's state is FAILED a failure reason is - # set. - # @!attribute [r] invocation_timing - # @return [::Google::Type::Interval] - # Output only. This action's timing details. - # `start_time` will be set if the action is in [RUNNING, SUCCEEDED, - # CANCELLED, FAILED] state. - # `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] - # state. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class WorkflowInvocationAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a workflow action that will run against BigQuery. - # @!attribute [r] sql_script - # @return [::String] - # Output only. The generated BigQuery SQL script that will be executed. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the BigQuery job that executed the SQL in - # sql_script. Only set once the job has started to run. - class BigQueryAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a workflow action that will run against a Notebook runtime. - # @!attribute [r] contents - # @return [::String] - # Output only. The code contents of a Notebook to be run. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the Vertex 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. - class NotebookAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a workflow action that will run a Data Preparation. - # @!attribute [r] contents_yaml - # @return [::String] - # Output only. YAML representing the contents of the data preparation. - # Can be used to show the customer what the input was to their workflow. - # - # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] contents_sql - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition] - # SQL definition for a Data Preparation. Contains a SQL query and - # additional context information. - # - # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] generated_sql - # @return [::String] - # Output only. The generated BigQuery SQL script that will be executed. For - # reference only. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the BigQuery job that executed the SQL in - # sql_script. Only set once the job has started to run. - class DataPreparationAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Definition of a SQL Data Preparation - # @!attribute [rw] query - # @return [::String] - # The SQL query representing the data preparation steps. Formatted as a - # Pipe SQL query statement. - # @!attribute [rw] error_table - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionErrorTable] - # Error table configuration, - # @!attribute [rw] load_config - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionLoadConfig] - # Load configuration. - class ActionSqlDefinition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Error table information, used to write error data into a BigQuery - # table. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Error Table target. - # @!attribute [rw] retention_days - # @return [::Integer] - # Error table partition expiration in days. Only positive values are - # allowed. - class ActionErrorTable - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simplified load configuration for actions - # @!attribute [rw] replace - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] - # Replace destination table - # - # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] append - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] - # Append into destination table - # - # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] maximum - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] - # Insert records where the value exceeds the previous maximum value for - # a column in the destination table - # - # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] unique - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] - # Insert records where the value of a column is not already present in - # the destination table - # - # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class ActionLoadConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simple load definition - class ActionSimpleLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Load definition for incremental load modes - # @!attribute [rw] column - # @return [::String] - # Column name for incremental load modes - class ActionIncrementalLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents the current state of a workflow invocation action. - module State - # The action has not yet been considered for invocation. - PENDING = 0 - - # The action is currently running. - RUNNING = 1 - - # Execution of the action was skipped because upstream dependencies did not - # all complete successfully. A terminal state. - SKIPPED = 2 - - # Execution of the action was disabled as per the configuration of the - # corresponding compilation result action. A terminal state. - DISABLED = 3 - - # The action succeeded. A terminal state. - SUCCEEDED = 4 - - # The action was cancelled. A terminal state. - CANCELLED = 5 - - # The action failed. A terminal state. - FAILED = 6 - end - end - - # `QueryWorkflowInvocationActions` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - class QueryWorkflowInvocationActionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryWorkflowInvocationActions` response message. - # @!attribute [rw] workflow_invocation_actions - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # List of workflow invocation actions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryWorkflowInvocationActionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Config for all repositories in a given project and location. - # @!attribute [rw] name - # @return [::String] - # Identifier. The config name. - # @!attribute [rw] default_kms_key_name - # @return [::String] - # Optional. The default KMS key that is used if no encryption key is provided - # when a repository is created. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class Config - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The config name. - class GetConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateConfig` request message. - # @!attribute [rw] config - # @return [::Google::Cloud::Dataform::V1::Config] - # Required. The config to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the config. - class UpdateConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Folder. This is a resource that is used to organize - # Files and other Folders and provide hierarchical access controls. - # @!attribute [rw] name - # @return [::String] - # Identifier. The Folder's name. - # @!attribute [rw] display_name - # @return [::String] - # Required. The Folder's user-friendly name. - # @!attribute [rw] containing_folder - # @return [::String] - # Optional. The containing Folder resource name. This should take - # the format: projects/\\{project}/locations/\\{location}/folders/\\{folder}, - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}, or just - # projects/\\{project}/locations/\\{location} if this is a root Folder. This - # field can only be updated through MoveFolder. - # @!attribute [r] team_folder_name - # @return [::String] - # Output only. The resource name of the TeamFolder that this Folder is - # associated with. This should take the format: - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this - # is not set, the Folder is not associated with a TeamFolder and is a - # UserFolder. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the Folder was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the Folder was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] creator_iam_principal - # @return [::String] - # Output only. The IAM principal identifier of the creator of the Folder. - class Folder - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateFolder` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # Required. The Folder to create. - class CreateFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The full resource name of the Folder to move. - # @!attribute [rw] destination_containing_folder - # @return [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - class MoveFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - class GetFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateFolder` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # Required. The updated Folder. - class UpdateFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - class DeleteFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteFolderTree` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - class DeleteFolderTreeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteTeamFolderTree` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - class DeleteTeamFolderTreeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Contains metadata about the progress of the DeleteFolderTree Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Resource name of the target of the operation. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} or - # projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::DeleteFolderTreeMetadata::State] - # Output only. The state of the operation. - # @!attribute [r] percent_complete - # @return [::Integer] - # Output only. Percent complete of the operation [0, 100]. - class DeleteFolderTreeMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the DeleteFolderTree operation. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The operation was initialized and recorded by the server, but not yet - # started. - INITIALIZED = 1 - - # The operation is in progress. - IN_PROGRESS = 2 - - # The operation has completed successfully. - SUCCEEDED = 3 - - # The operation has failed. - FAILED = 4 - end - end - - # `QueryFolderContents` request message. - # @!attribute [rw] folder - # @return [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryFolderContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryFolderContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # List of entries in the folder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryFolderContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class FolderContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `QueryUserRootContents` request message. - # @!attribute [rw] location - # @return [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryUserRootContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryUserRootContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # List of entries in the folder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryUserRootContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class RootContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents a Dataform TeamFolder. This is a resource that sits at the project - # level and is used to organize Repositories and Folders with hierarchical - # access controls. They provide a team context and stricter access controls. - # @!attribute [rw] name - # @return [::String] - # Identifier. The TeamFolder's name. - # @!attribute [rw] display_name - # @return [::String] - # Required. The TeamFolder's user-friendly name. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the TeamFolder was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the TeamFolder was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] creator_iam_principal - # @return [::String] - # Output only. The IAM principal identifier of the creator of the TeamFolder. - class TeamFolder - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateTeamFolder` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # Required. The TeamFolder to create. - class CreateTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetTeamFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - class GetTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateTeamFolder` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # Required. The updated TeamFolder. - class UpdateTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteTeamFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - class DeleteTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryTeamFolderContents` request message. - # @!attribute [rw] team_folder - # @return [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryTeamFolderContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryTeamFolderContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # List of entries in the TeamFolder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryTeamFolderContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class TeamFolderContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `SearchTeamFolders` request message. - # @!attribute [rw] location - # @return [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class SearchTeamFoldersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `SearchTeamFolders` response message. - # @!attribute [rw] results - # @return [::Array<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # List of TeamFolders that match the search query. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class SearchTeamFoldersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A TeamFolder resource that is in the project / location. - class TeamFolderSearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Contains metadata about the progress of the MoveFolder Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Server-defined resource path for the target of the operation. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataform::V1::MoveFolderMetadata::State] - # The state of the move. - # @!attribute [rw] percent_complete - # @return [::Integer] - # Percent complete of the move [0, 100]. - class MoveFolderMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the move. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The move was initialized and recorded by the server, but not yet started. - INITIALIZED = 1 - - # The move is in progress. - IN_PROGRESS = 2 - - # The move has completed successfully. - SUCCESS = 3 - - # The move has failed. - FAILED = 4 - end - end - - # Contains metadata about the progress of the MoveRepository Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Server-defined resource path for the target of the operation. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataform::V1::MoveRepositoryMetadata::State] - # The state of the move. - # @!attribute [rw] percent_complete - # @return [::Integer] - # Percent complete of the move [0, 100]. - class MoveRepositoryMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the move. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The move was initialized and recorded by the server, but not yet started. - INITIALIZED = 1 - - # The move is in progress. - IN_PROGRESS = 2 - - # The move has completed successfully. - SUCCESS = 3 - - # The move has failed. - FAILED = 4 - end - end - - # Represents the level of detail to return for directory contents. - module DirectoryContentsView - # The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. - DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0 - - # Includes only the file or directory name. This is the default behavior. - DIRECTORY_CONTENTS_VIEW_BASIC = 1 - - # Includes all metadata for each file or directory. Currently not supported - # by CMEK-protected workspaces. - DIRECTORY_CONTENTS_VIEW_METADATA = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb deleted file mode 100644 index 7a757f512165..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Longrunning - # This resource represents a long-running operation that is the result of a - # network API call. - # @!attribute [rw] name - # @return [::String] - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/{unique_id}`. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Any] - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # @!attribute [rw] done - # @return [::Boolean] - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # @!attribute [rw] error - # @return [::Google::Rpc::Status] - # The error result of the operation in case of failure or cancellation. - # - # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] response - # @return [::Google::Protobuf::Any] - # The normal, successful response of the operation. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # - # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Operation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.GetOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource. - class GetOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.ListOperations. - # @!attribute [rw] name - # @return [::String] - # The name of the operation's parent resource. - # @!attribute [rw] filter - # @return [::String] - # The standard list filter. - # @!attribute [rw] page_size - # @return [::Integer] - # The standard list page size. - # @!attribute [rw] page_token - # @return [::String] - # The standard list page token. - # @!attribute [rw] return_partial_success - # @return [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - class ListOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message for - # Operations.ListOperations. - # @!attribute [rw] operations - # @return [::Array<::Google::Longrunning::Operation>] - # A list of operations that matches the specified filter in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # The standard List next-page token. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. Unreachable resources. Populated when the request sets - # `ListOperationsRequest.return_partial_success` and reads across - # collections e.g. when attempting to list all resources across all supported - # locations. - class ListOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.CancelOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be cancelled. - class CancelOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.DeleteOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be deleted. - class DeleteOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.WaitOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to wait on. - # @!attribute [rw] timeout - # @return [::Google::Protobuf::Duration] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - class WaitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A message representing the message types used by a long-running operation. - # - # Example: - # - # rpc Export(ExportRequest) returns (google.longrunning.Operation) { - # option (google.longrunning.operation_info) = { - # response_type: "ExportResponse" - # metadata_type: "ExportMetadata" - # }; - # } - # @!attribute [rw] response_type - # @return [::String] - # Required. The message name of the primary return type for this - # long-running operation. - # This type will be used to deserialize the LRO's response. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - # @!attribute [rw] metadata_type - # @return [::String] - # Required. The message name of the metadata type for this long-running - # operation. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - class OperationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb deleted file mode 100644 index 53e7733b6592..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # - # Example (Comparison): - # - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # - # Example (Equality): - # - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # - # Example (Logic): - # - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # - # Example (Data Manipulation): - # - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. - # @!attribute [rw] expression - # @return [::String] - # Textual representation of an expression in Common Expression Language - # syntax. - # @!attribute [rw] title - # @return [::String] - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # @!attribute [rw] description - # @return [::String] - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # @!attribute [rw] location - # @return [::String] - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - class Expr - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb deleted file mode 100644 index 9350ca479005..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a time interval, encoded as a Timestamp start (inclusive) and a - # Timestamp end (exclusive). - # - # The start must be less than or equal to the end. - # When the start equals the end, the interval is empty (matches no time). - # When both start and end are unspecified, the interval matches any time. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Inclusive start of the interval. - # - # If specified, a Timestamp matching this interval will have to be the same - # or after the start. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Exclusive end of the interval. - # - # If specified, a Timestamp matching this interval will have to be before the - # end. - class Interval - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile deleted file mode 100644 index 89707fd03706..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-dataform-v1", path: "../" -else - gem "google-cloud-dataform-v1" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb deleted file mode 100644 index c4a4e55aa460..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the cancel_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation. -# -def cancel_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - - # Call the cancel_workflow_invocation method. - result = client.cancel_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - p result -end -# [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb deleted file mode 100644 index b31e885c5837..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the commit_repository_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes. -# -def commit_repository_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - - # Call the commit_repository_changes method. - result = client.commit_repository_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb deleted file mode 100644 index de4ddc10f8e4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the commit_workspace_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes. -# -def commit_workspace_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - - # Call the commit_workspace_changes method. - result = client.commit_workspace_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb deleted file mode 100644 index 4aaf8f3d74f7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the compute_repository_access_token_status call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status. -# -def compute_repository_access_token_status - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - - # Call the compute_repository_access_token_status method. - result = client.compute_repository_access_token_status request - - # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - p result -end -# [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb deleted file mode 100644 index 2a34f5cac7f6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateCompilationResult_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_compilation_result call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result. -# -def create_compilation_result - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - - # Call the create_compilation_result method. - result = client.create_compilation_result request - - # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - p result -end -# [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb deleted file mode 100644 index 3c2f8f0e4f94..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_folder. -# -def create_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - - # Call the create_folder method. - result = client.create_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::Folder. - p result -end -# [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb deleted file mode 100644 index 46e5de64b5d1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_release_config. -# -def create_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - - # Call the create_release_config method. - result = client.create_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb deleted file mode 100644 index 186c81061421..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_repository. -# -def create_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - - # Call the create_repository method. - result = client.create_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb deleted file mode 100644 index 4cb79ef5ac63..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder. -# -def create_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - - # Call the create_team_folder method. - result = client.create_team_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - p result -end -# [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb deleted file mode 100644 index 446e1c2e93bb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config. -# -def create_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - - # Call the create_workflow_config method. - result = client.create_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb deleted file mode 100644 index ad915149df4d..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation. -# -def create_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - - # Call the create_workflow_invocation method. - result = client.create_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb deleted file mode 100644 index 89e20592d4f2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workspace. -# -def create_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - - # Call the create_workspace method. - result = client.create_workspace request - - # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb deleted file mode 100644 index b77ee48d1380..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder. -# -def delete_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - - # Call the delete_folder method. - result = client.delete_folder request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb deleted file mode 100644 index b2e3907a8605..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteFolderTree_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_folder_tree call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree. -# -def delete_folder_tree - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - - # Call the delete_folder_tree method. - result = client.delete_folder_tree request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb deleted file mode 100644 index b21bc0f0a3fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config. -# -def delete_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - - # Call the delete_release_config method. - result = client.delete_release_config request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb deleted file mode 100644 index c7267ab8814d..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_repository. -# -def delete_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - - # Call the delete_repository method. - result = client.delete_repository request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb deleted file mode 100644 index 45cfe3a54207..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder. -# -def delete_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - - # Call the delete_team_folder method. - result = client.delete_team_folder request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb deleted file mode 100644 index 9ef55af12135..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_team_folder_tree call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree. -# -def delete_team_folder_tree - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - - # Call the delete_team_folder_tree method. - result = client.delete_team_folder_tree request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb deleted file mode 100644 index 68073c51b458..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config. -# -def delete_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - - # Call the delete_workflow_config method. - result = client.delete_workflow_config request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb deleted file mode 100644 index 656f44075001..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation. -# -def delete_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - - # Call the delete_workflow_invocation method. - result = client.delete_workflow_invocation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb deleted file mode 100644 index 56e820984467..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace. -# -def delete_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - - # Call the delete_workspace method. - result = client.delete_workspace request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb deleted file mode 100644 index 8730eefe3970..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchFileDiff_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_file_diff call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff. -# -def fetch_file_diff - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - - # Call the fetch_file_diff method. - result = client.fetch_file_diff request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb deleted file mode 100644 index 4715c81828c0..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_file_git_statuses call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses. -# -def fetch_file_git_statuses - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - - # Call the fetch_file_git_statuses method. - result = client.fetch_file_git_statuses request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb deleted file mode 100644 index 0fc4c454effd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_git_ahead_behind call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind. -# -def fetch_git_ahead_behind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - - # Call the fetch_git_ahead_behind method. - result = client.fetch_git_ahead_behind request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb deleted file mode 100644 index 3c55465ceb19..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchRemoteBranches_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_remote_branches call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches. -# -def fetch_remote_branches - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - - # Call the fetch_remote_branches method. - result = client.fetch_remote_branches request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb deleted file mode 100644 index da57dd87c79e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_repository_history call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history. -# -def fetch_repository_history - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - - # Call the fetch_repository_history method. - result = client.fetch_repository_history request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb deleted file mode 100644 index 999fd435d184..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetCompilationResult_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_compilation_result call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result. -# -def get_compilation_result - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - - # Call the get_compilation_result method. - result = client.get_compilation_result request - - # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - p result -end -# [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb deleted file mode 100644 index e783c6e72d27..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_config. -# -def get_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetConfigRequest.new - - # Call the get_config method. - result = client.get_config request - - # The returned object is of type Google::Cloud::Dataform::V1::Config. - p result -end -# [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb deleted file mode 100644 index 689877e96673..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_folder. -# -def get_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetFolderRequest.new - - # Call the get_folder method. - result = client.get_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::Folder. - p result -end -# [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb deleted file mode 100644 index df48c36f2d16..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetIamPolicy_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_iam_policy call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END dataform_v1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb deleted file mode 100644 index a84831df98d5..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_release_config. -# -def get_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - - # Call the get_release_config method. - result = client.get_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb deleted file mode 100644 index c5072fb2408f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_repository. -# -def get_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - - # Call the get_repository method. - result = client.get_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb deleted file mode 100644 index 287238e52743..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder. -# -def get_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - - # Call the get_team_folder method. - result = client.get_team_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - p result -end -# [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb deleted file mode 100644 index f381745b38fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config. -# -def get_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - - # Call the get_workflow_config method. - result = client.get_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb deleted file mode 100644 index 7a4356138297..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation. -# -def get_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - - # Call the get_workflow_invocation method. - result = client.get_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb deleted file mode 100644 index 06b3bd6fe5eb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workspace. -# -def get_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - - # Call the get_workspace method. - result = client.get_workspace request - - # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb deleted file mode 100644 index 921bd63946d7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_InstallNpmPackages_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the install_npm_packages call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages. -# -def install_npm_packages - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - - # Call the install_npm_packages method. - result = client.install_npm_packages request - - # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - p result -end -# [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb deleted file mode 100644 index 593c43c2b30e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListCompilationResults_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_compilation_results call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results. -# -def list_compilation_results - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - - # Call the list_compilation_results method. - result = client.list_compilation_results request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - p item - end -end -# [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb deleted file mode 100644 index 8ea574eff2a3..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListReleaseConfigs_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_release_configs call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs. -# -def list_release_configs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - - # Call the list_release_configs method. - result = client.list_release_configs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - p item - end -end -# [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb deleted file mode 100644 index 321b0cf9c512..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListRepositories_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_repositories call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_repositories. -# -def list_repositories - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - - # Call the list_repositories method. - result = client.list_repositories request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - p item - end -end -# [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb deleted file mode 100644 index cc9629d319fb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workflow_configs call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs. -# -def list_workflow_configs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - - # Call the list_workflow_configs method. - result = client.list_workflow_configs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb deleted file mode 100644 index 13e62b798423..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workflow_invocations call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations. -# -def list_workflow_invocations - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - - # Call the list_workflow_invocations method. - result = client.list_workflow_invocations request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb deleted file mode 100644 index 8f9be608db55..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkspaces_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workspaces call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces. -# -def list_workspaces - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - - # Call the list_workspaces method. - result = client.list_workspaces request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb deleted file mode 100644 index 47f391f846c6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MakeDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the make_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#make_directory. -# -def make_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - - # Call the make_directory method. - result = client.make_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb deleted file mode 100644 index fb67af9605e9..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_directory. -# -def move_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - - # Call the move_directory method. - result = client.move_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb deleted file mode 100644 index 4f22d16e6721..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_file. -# -def move_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveFileRequest.new - - # Call the move_file method. - result = client.move_file request - - # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb deleted file mode 100644 index eebe84d46640..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_folder. -# -def move_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - - # Call the move_folder method. - result = client.move_folder request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb deleted file mode 100644 index 4eca8dd9c54f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_repository. -# -def move_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - - # Call the move_repository method. - result = client.move_repository request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb deleted file mode 100644 index d929a9ff389b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_PullGitCommits_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the pull_git_commits call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits. -# -def pull_git_commits - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - - # Call the pull_git_commits method. - result = client.pull_git_commits request - - # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - p result -end -# [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb deleted file mode 100644 index a68f07194b2b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_PushGitCommits_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the push_git_commits call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits. -# -def push_git_commits - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - - # Call the push_git_commits method. - result = client.push_git_commits request - - # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - p result -end -# [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb deleted file mode 100644 index 5639fdf8046b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_compilation_result_actions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions. -# -def query_compilation_result_actions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - - # Call the query_compilation_result_actions method. - result = client.query_compilation_result_actions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb deleted file mode 100644 index b369a3508ead..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_directory_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents. -# -def query_directory_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - - # Call the query_directory_contents method. - result = client.query_directory_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb deleted file mode 100644 index ad16707edc04..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryFolderContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_folder_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents. -# -def query_folder_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - - # Call the query_folder_contents method. - result = client.query_folder_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb deleted file mode 100644 index 60f03d3438fe..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_repository_directory_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents. -# -def query_repository_directory_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - - # Call the query_repository_directory_contents method. - result = client.query_repository_directory_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb deleted file mode 100644 index 90a3760b3221..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_team_folder_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents. -# -def query_team_folder_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - - # Call the query_team_folder_contents method. - result = client.query_team_folder_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb deleted file mode 100644 index d070b3379fd4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryUserRootContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_user_root_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents. -# -def query_user_root_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - - # Call the query_user_root_contents method. - result = client.query_user_root_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb deleted file mode 100644 index d44f575db9f2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_workflow_invocation_actions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions. -# -def query_workflow_invocation_actions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - - # Call the query_workflow_invocation_actions method. - result = client.query_workflow_invocation_actions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb deleted file mode 100644 index 9d32a0e63b2e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ReadFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the read_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#read_file. -# -def read_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ReadFileRequest.new - - # Call the read_file method. - result = client.read_file request - - # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb deleted file mode 100644 index 52f0945b9d40..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ReadRepositoryFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the read_repository_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file. -# -def read_repository_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - - # Call the read_repository_file method. - result = client.read_repository_file request - - # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb deleted file mode 100644 index 797de4b0ddad..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_RemoveDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the remove_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#remove_directory. -# -def remove_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - - # Call the remove_directory method. - result = client.remove_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb deleted file mode 100644 index 7e1ae41d3621..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_RemoveFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the remove_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#remove_file. -# -def remove_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - - # Call the remove_file method. - result = client.remove_file request - - # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb deleted file mode 100644 index 3e320ac0b35b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the reset_workspace_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes. -# -def reset_workspace_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - - # Call the reset_workspace_changes method. - result = client.reset_workspace_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb deleted file mode 100644 index d6359d3370f5..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_SearchFiles_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the search_files call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#search_files. -# -def search_files - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - - # Call the search_files method. - result = client.search_files request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - p item - end -end -# [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb deleted file mode 100644 index 4a5fa15a73e6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_SearchTeamFolders_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the search_team_folders call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders. -# -def search_team_folders - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - - # Call the search_team_folders method. - result = client.search_team_folders request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - p item - end -end -# [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb deleted file mode 100644 index 335c8370204f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_SetIamPolicy_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the set_iam_policy call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END dataform_v1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb deleted file mode 100644 index 9c833d143ff9..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_TestIamPermissions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the test_iam_permissions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END dataform_v1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb deleted file mode 100644 index cda3be7976e1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_config. -# -def update_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - - # Call the update_config method. - result = client.update_config request - - # The returned object is of type Google::Cloud::Dataform::V1::Config. - p result -end -# [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb deleted file mode 100644 index f2f0cfad66fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_folder. -# -def update_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - - # Call the update_folder method. - result = client.update_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::Folder. - p result -end -# [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb deleted file mode 100644 index 67f11c154df8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_release_config. -# -def update_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - - # Call the update_release_config method. - result = client.update_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb deleted file mode 100644 index 35f7462d0dac..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_repository. -# -def update_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - - # Call the update_repository method. - result = client.update_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb deleted file mode 100644 index b98113a24978..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder. -# -def update_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - - # Call the update_team_folder method. - result = client.update_team_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - p result -end -# [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb deleted file mode 100644 index 570ff222440b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config. -# -def update_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - - # Call the update_workflow_config method. - result = client.update_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb deleted file mode 100644 index 75fabd872e56..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_WriteFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the write_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#write_file. -# -def write_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::WriteFileRequest.new - - # Call the write_file method. - result = client.write_file request - - # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb deleted file mode 100644 index ac17556a7c35..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_CancelOperation_sync] -require "google/longrunning" - -## -# Snippet for the cancel_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#cancel_operation. -# -def cancel_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::CancelOperationRequest.new - - # Call the cancel_operation method. - result = client.cancel_operation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Operations_CancelOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb deleted file mode 100644 index 5a5ca99c1168..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_DeleteOperation_sync] -require "google/longrunning" - -## -# Snippet for the delete_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#delete_operation. -# -def delete_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::DeleteOperationRequest.new - - # Call the delete_operation method. - result = client.delete_operation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Operations_DeleteOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb deleted file mode 100644 index cd1170168513..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_GetOperation_sync] -require "google/longrunning" - -## -# Snippet for the get_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#get_operation. -# -def get_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::GetOperationRequest.new - - # Call the get_operation method. - result = client.get_operation request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Operations_GetOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb deleted file mode 100644 index f9b07ec66d86..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_ListOperations_sync] -require "google/longrunning" - -## -# Snippet for the list_operations call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#list_operations. -# -def list_operations - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::ListOperationsRequest.new - - # Call the list_operations method. - result = client.list_operations request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Longrunning::Operation. - p item - end -end -# [END dataform_v1_generated_Operations_ListOperations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb deleted file mode 100644 index bbec9a28ddd7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_WaitOperation_sync] -require "google/longrunning" - -## -# Snippet for the wait_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#wait_operation. -# -def wait_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::WaitOperationRequest.new - - # Call the wait_operation method. - result = client.wait_operation request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Operations_WaitOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json deleted file mode 100644 index 6ded7292abaa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json +++ /dev/null @@ -1,2935 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-dataform-v1", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.cloud.dataform.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "region_tag": "dataform_v1_generated_Dataform_GetTeamFolder_sync", - "title": "Snippet for the get_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder.", - "file": "dataform/get_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.GetTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateTeamFolder_sync", - "title": "Snippet for the create_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder.", - "file": "dataform/create_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateTeamFolder_sync", - "title": "Snippet for the update_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder.", - "file": "dataform/update_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolder_sync", - "title": "Snippet for the delete_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder.", - "file": "dataform/delete_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync", - "title": "Snippet for the delete_team_folder_tree call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree.", - "file": "dataform/delete_team_folder_tree.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_team_folder_tree", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteTeamFolderTree", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_sync", - "title": "Snippet for the query_team_folder_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents.", - "file": "dataform/query_team_folder_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_team_folder_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryTeamFolderContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SearchTeamFolders_sync", - "title": "Snippet for the search_team_folders call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders.", - "file": "dataform/search_team_folders.rb", - "language": "RUBY", - "client_method": { - "short_name": "search_team_folders", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SearchTeamFolders", - "full_name": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetFolder_sync", - "title": "Snippet for the get_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_folder.", - "file": "dataform/get_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetFolder", - "full_name": "google.cloud.dataform.v1.Dataform.GetFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateFolder_sync", - "title": "Snippet for the create_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_folder.", - "file": "dataform/create_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateFolder", - "full_name": "google.cloud.dataform.v1.Dataform.CreateFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateFolder_sync", - "title": "Snippet for the update_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_folder.", - "file": "dataform/update_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateFolder", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteFolder_sync", - "title": "Snippet for the delete_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder.", - "file": "dataform/delete_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteFolder", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteFolderTree_sync", - "title": "Snippet for the delete_folder_tree call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree.", - "file": "dataform/delete_folder_tree.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_folder_tree", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteFolderTree", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryFolderContents_sync", - "title": "Snippet for the query_folder_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents.", - "file": "dataform/query_folder_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_folder_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryFolderContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryFolderContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryFolderContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryFolderContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryUserRootContents_sync", - "title": "Snippet for the query_user_root_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents.", - "file": "dataform/query_user_root_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_user_root_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryUserRootContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveFolder_sync", - "title": "Snippet for the move_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_folder.", - "file": "dataform/move_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveFolder", - "full_name": "google.cloud.dataform.v1.Dataform.MoveFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListRepositories_sync", - "title": "Snippet for the list_repositories call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_repositories.", - "file": "dataform/list_repositories.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_repositories", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_repositories", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListRepositoriesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListRepositoriesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListRepositories", - "full_name": "google.cloud.dataform.v1.Dataform.ListRepositories", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetRepository_sync", - "title": "Snippet for the get_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_repository.", - "file": "dataform/get_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetRepository", - "full_name": "google.cloud.dataform.v1.Dataform.GetRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateRepository_sync", - "title": "Snippet for the create_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_repository.", - "file": "dataform/create_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateRepository", - "full_name": "google.cloud.dataform.v1.Dataform.CreateRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateRepository_sync", - "title": "Snippet for the update_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_repository.", - "file": "dataform/update_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateRepository", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteRepository_sync", - "title": "Snippet for the delete_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_repository.", - "file": "dataform/delete_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteRepository", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveRepository_sync", - "title": "Snippet for the move_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_repository.", - "file": "dataform/move_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveRepository", - "full_name": "google.cloud.dataform.v1.Dataform.MoveRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_sync", - "title": "Snippet for the commit_repository_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes.", - "file": "dataform/commit_repository_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "commit_repository_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CommitRepositoryChanges", - "full_name": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ReadRepositoryFile_sync", - "title": "Snippet for the read_repository_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file.", - "file": "dataform/read_repository_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "read_repository_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ReadRepositoryFile", - "full_name": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync", - "title": "Snippet for the query_repository_directory_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents.", - "file": "dataform/query_repository_directory_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_repository_directory_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryRepositoryDirectoryContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchRepositoryHistory_sync", - "title": "Snippet for the fetch_repository_history call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history.", - "file": "dataform/fetch_repository_history.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_repository_history", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchRepositoryHistory", - "full_name": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync", - "title": "Snippet for the compute_repository_access_token_status call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status.", - "file": "dataform/compute_repository_access_token_status.rb", - "language": "RUBY", - "client_method": { - "short_name": "compute_repository_access_token_status", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ComputeRepositoryAccessTokenStatus", - "full_name": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchRemoteBranches_sync", - "title": "Snippet for the fetch_remote_branches call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches.", - "file": "dataform/fetch_remote_branches.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_remote_branches", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchRemoteBranches", - "full_name": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkspaces_sync", - "title": "Snippet for the list_workspaces call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces.", - "file": "dataform/list_workspaces.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workspaces", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkspacesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkspacesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkspaces", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkspaces", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkspace_sync", - "title": "Snippet for the get_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workspace.", - "file": "dataform/get_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Workspace", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkspace_sync", - "title": "Snippet for the create_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workspace.", - "file": "dataform/create_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Workspace", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkspace_sync", - "title": "Snippet for the delete_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace.", - "file": "dataform/delete_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_InstallNpmPackages_sync", - "title": "Snippet for the install_npm_packages call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages.", - "file": "dataform/install_npm_packages.rb", - "language": "RUBY", - "client_method": { - "short_name": "install_npm_packages", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "InstallNpmPackages", - "full_name": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_PullGitCommits_sync", - "title": "Snippet for the pull_git_commits call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits.", - "file": "dataform/pull_git_commits.rb", - "language": "RUBY", - "client_method": { - "short_name": "pull_git_commits", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::PullGitCommitsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::PullGitCommitsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "PullGitCommits", - "full_name": "google.cloud.dataform.v1.Dataform.PullGitCommits", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_PushGitCommits_sync", - "title": "Snippet for the push_git_commits call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits.", - "file": "dataform/push_git_commits.rb", - "language": "RUBY", - "client_method": { - "short_name": "push_git_commits", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::PushGitCommitsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::PushGitCommitsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "PushGitCommits", - "full_name": "google.cloud.dataform.v1.Dataform.PushGitCommits", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchFileGitStatuses_sync", - "title": "Snippet for the fetch_file_git_statuses call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses.", - "file": "dataform/fetch_file_git_statuses.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_file_git_statuses", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchFileGitStatuses", - "full_name": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchGitAheadBehind_sync", - "title": "Snippet for the fetch_git_ahead_behind call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind.", - "file": "dataform/fetch_git_ahead_behind.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_git_ahead_behind", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchGitAheadBehind", - "full_name": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync", - "title": "Snippet for the commit_workspace_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes.", - "file": "dataform/commit_workspace_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "commit_workspace_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CommitWorkspaceChanges", - "full_name": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync", - "title": "Snippet for the reset_workspace_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes.", - "file": "dataform/reset_workspace_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "reset_workspace_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ResetWorkspaceChanges", - "full_name": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchFileDiff_sync", - "title": "Snippet for the fetch_file_diff call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff.", - "file": "dataform/fetch_file_diff.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_file_diff", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchFileDiffRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchFileDiffResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchFileDiff", - "full_name": "google.cloud.dataform.v1.Dataform.FetchFileDiff", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryDirectoryContents_sync", - "title": "Snippet for the query_directory_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents.", - "file": "dataform/query_directory_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_directory_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryDirectoryContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SearchFiles_sync", - "title": "Snippet for the search_files call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_files.", - "file": "dataform/search_files.rb", - "language": "RUBY", - "client_method": { - "short_name": "search_files", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_files", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::SearchFilesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::SearchFilesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SearchFiles", - "full_name": "google.cloud.dataform.v1.Dataform.SearchFiles", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MakeDirectory_sync", - "title": "Snippet for the make_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#make_directory.", - "file": "dataform/make_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "make_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#make_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MakeDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MakeDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MakeDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.MakeDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_RemoveDirectory_sync", - "title": "Snippet for the remove_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_directory.", - "file": "dataform/remove_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "remove_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::RemoveDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::RemoveDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "RemoveDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.RemoveDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveDirectory_sync", - "title": "Snippet for the move_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_directory.", - "file": "dataform/move_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MoveDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.MoveDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ReadFile_sync", - "title": "Snippet for the read_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_file.", - "file": "dataform/read_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "read_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ReadFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReadFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ReadFile", - "full_name": "google.cloud.dataform.v1.Dataform.ReadFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_RemoveFile_sync", - "title": "Snippet for the remove_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_file.", - "file": "dataform/remove_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "remove_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::RemoveFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::RemoveFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "RemoveFile", - "full_name": "google.cloud.dataform.v1.Dataform.RemoveFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveFile_sync", - "title": "Snippet for the move_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_file.", - "file": "dataform/move_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MoveFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveFile", - "full_name": "google.cloud.dataform.v1.Dataform.MoveFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_WriteFile_sync", - "title": "Snippet for the write_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#write_file.", - "file": "dataform/write_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "write_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#write_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::WriteFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WriteFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "WriteFile", - "full_name": "google.cloud.dataform.v1.Dataform.WriteFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListReleaseConfigs_sync", - "title": "Snippet for the list_release_configs call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs.", - "file": "dataform/list_release_configs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_release_configs", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListReleaseConfigs", - "full_name": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetReleaseConfig_sync", - "title": "Snippet for the get_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_release_config.", - "file": "dataform/get_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateReleaseConfig_sync", - "title": "Snippet for the create_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_release_config.", - "file": "dataform/create_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateReleaseConfig_sync", - "title": "Snippet for the update_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_release_config.", - "file": "dataform/update_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteReleaseConfig_sync", - "title": "Snippet for the delete_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config.", - "file": "dataform/delete_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListCompilationResults_sync", - "title": "Snippet for the list_compilation_results call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results.", - "file": "dataform/list_compilation_results.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_compilation_results", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListCompilationResultsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListCompilationResultsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListCompilationResults", - "full_name": "google.cloud.dataform.v1.Dataform.ListCompilationResults", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetCompilationResult_sync", - "title": "Snippet for the get_compilation_result call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result.", - "file": "dataform/get_compilation_result.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_compilation_result", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetCompilationResultRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetCompilationResult", - "full_name": "google.cloud.dataform.v1.Dataform.GetCompilationResult", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateCompilationResult_sync", - "title": "Snippet for the create_compilation_result call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result.", - "file": "dataform/create_compilation_result.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_compilation_result", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateCompilationResultRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateCompilationResult", - "full_name": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryCompilationResultActions_sync", - "title": "Snippet for the query_compilation_result_actions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions.", - "file": "dataform/query_compilation_result_actions.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_compilation_result_actions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryCompilationResultActions", - "full_name": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkflowConfigs_sync", - "title": "Snippet for the list_workflow_configs call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs.", - "file": "dataform/list_workflow_configs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workflow_configs", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkflowConfigs", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkflowConfig_sync", - "title": "Snippet for the get_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config.", - "file": "dataform/get_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowConfig_sync", - "title": "Snippet for the create_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config.", - "file": "dataform/create_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync", - "title": "Snippet for the update_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config.", - "file": "dataform/update_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync", - "title": "Snippet for the delete_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config.", - "file": "dataform/delete_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkflowInvocations_sync", - "title": "Snippet for the list_workflow_invocations call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations.", - "file": "dataform/list_workflow_invocations.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workflow_invocations", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkflowInvocations", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkflowInvocation_sync", - "title": "Snippet for the get_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation.", - "file": "dataform/get_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync", - "title": "Snippet for the create_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation.", - "file": "dataform/create_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync", - "title": "Snippet for the delete_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation.", - "file": "dataform/delete_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync", - "title": "Snippet for the cancel_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation.", - "file": "dataform/cancel_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "cancel_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CancelWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync", - "title": "Snippet for the query_workflow_invocation_actions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions.", - "file": "dataform/query_workflow_invocation_actions.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_workflow_invocation_actions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryWorkflowInvocationActions", - "full_name": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetConfig_sync", - "title": "Snippet for the get_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_config.", - "file": "dataform/get_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Config", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateConfig_sync", - "title": "Snippet for the update_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_config.", - "file": "dataform/update_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Config", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy.", - "file": "dataform/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.cloud.dataform.v1.Dataform.GetIamPolicy", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy.", - "file": "dataform/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.cloud.dataform.v1.Dataform.SetIamPolicy", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions.", - "file": "dataform/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.cloud.dataform.v1.Dataform.TestIamPermissions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json deleted file mode 100644 index ae5311ef4402..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-dataform-v1", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.longrunning", - "version": "longrunning" - } - ] - }, - "snippets": [ - { - "region_tag": "dataform_v1_generated_Operations_ListOperations_sync", - "title": "Snippet for the list_operations call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#list_operations.", - "file": "operations/list_operations.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_operations", - "full_name": "::Google::Longrunning::Operations::Client#list_operations", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::ListOperationsRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::ListOperationsResponse", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "ListOperations", - "full_name": "google.longrunning.Operations.ListOperations", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_GetOperation_sync", - "title": "Snippet for the get_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#get_operation.", - "file": "operations/get_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_operation", - "full_name": "::Google::Longrunning::Operations::Client#get_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::GetOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "GetOperation", - "full_name": "google.longrunning.Operations.GetOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_DeleteOperation_sync", - "title": "Snippet for the delete_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#delete_operation.", - "file": "operations/delete_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_operation", - "full_name": "::Google::Longrunning::Operations::Client#delete_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::DeleteOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "DeleteOperation", - "full_name": "google.longrunning.Operations.DeleteOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_CancelOperation_sync", - "title": "Snippet for the cancel_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#cancel_operation.", - "file": "operations/cancel_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "cancel_operation", - "full_name": "::Google::Longrunning::Operations::Client#cancel_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::CancelOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "CancelOperation", - "full_name": "google.longrunning.Operations.CancelOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_WaitOperation_sync", - "title": "Snippet for the wait_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#wait_operation.", - "file": "operations/wait_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "wait_operation", - "full_name": "::Google::Longrunning::Operations::Client#wait_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::WaitOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "WaitOperation", - "full_name": "google.longrunning.Operations.WaitOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb deleted file mode 100644 index 98458c3d1dbd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform_services_pb" -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb deleted file mode 100644 index 1843f1d3cb44..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb +++ /dev/null @@ -1,211 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_compilation_result_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.compilation_result_path project: "value0", location: "value1", repository: "value2", compilation_result: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/compilationResults/value3", path - end - end - - def test_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.config_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1/config", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_crypto_key_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path - end - end - - def test_folder_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.folder_path project: "value0", location: "value1", folder: "value2" - assert_equal "projects/value0/locations/value1/folders/value2", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_notebook_runtime_template_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.notebook_runtime_template_path project: "value0", location: "value1", notebook_runtime_template: "value2" - assert_equal "projects/value0/locations/value1/notebookRuntimeTemplates/value2", path - end - end - - def test_release_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.release_config_path project: "value0", location: "value1", repository: "value2", release_config: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/releaseConfigs/value3", path - end - end - - def test_repository_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.repository_path project: "value0", location: "value1", repository: "value2" - assert_equal "projects/value0/locations/value1/repositories/value2", path - end - end - - def test_secret_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.secret_version_path project: "value0", secret: "value1", version: "value2" - assert_equal "projects/value0/secrets/value1/versions/value2", path - end - end - - def test_team_folder_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.team_folder_path project: "value0", location: "value1", team_folder: "value2" - assert_equal "projects/value0/locations/value1/teamFolders/value2", path - end - end - - def test_workflow_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workflow_config_path project: "value0", location: "value1", repository: "value2", workflow_config: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workflowConfigs/value3", path - end - end - - def test_workflow_invocation_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workflow_invocation_path project: "value0", location: "value1", repository: "value2", workflow_invocation: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workflowInvocations/value3", path - end - end - - def test_workspace_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workspace_path project: "value0", location: "value1", repository: "value2", workspace: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workspaces/value3", path - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb deleted file mode 100644 index 07fde9553884..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb +++ /dev/null @@ -1,4148 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform/rest" - - -class ::Google::Cloud::Dataform::V1::Dataform::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_team_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_team_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_team_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_team_folder_client_stub.call_count - end - end - end - - def test_create_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - team_folder = {} - - create_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_team_folder({ parent: parent, team_folder: team_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_team_folder parent: parent, team_folder: team_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_team_folder({ parent: parent, team_folder: team_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_team_folder_client_stub.call_count - end - end - end - - def test_update_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - team_folder = {} - - update_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_team_folder update_mask: update_mask, team_folder: team_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_team_folder_client_stub.call_count - end - end - end - - def test_delete_team_folder - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_team_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_team_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_team_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_team_folder_client_stub.call_count - end - end - end - - def test_delete_team_folder_tree - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_team_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_tree_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_team_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_team_folder_tree({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_team_folder_tree name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_team_folder_tree({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_team_folder_tree_client_stub.call_count - end - end - end - - def test_query_team_folder_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - team_folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_team_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_team_folder_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_team_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_team_folder_contents_client_stub.call_count - end - end - end - - def test_search_team_folders - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - search_team_folders_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_team_folders_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, search_team_folders_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, search_team_folders_client_stub.call_count - end - end - end - - def test_get_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_folder_client_stub.call_count - end - end - end - - def test_create_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - folder = {} - - create_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_folder({ parent: parent, folder: folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_folder parent: parent, folder: folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_folder({ parent: parent, folder: folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_folder_client_stub.call_count - end - end - end - - def test_update_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - folder = {} - - update_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_folder({ update_mask: update_mask, folder: folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_folder update_mask: update_mask, folder: folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_folder({ update_mask: update_mask, folder: folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_folder_client_stub.call_count - end - end - end - - def test_delete_folder - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_folder_client_stub.call_count - end - end - end - - def test_delete_folder_tree - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_tree_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_folder_tree({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_folder_tree name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_folder_tree({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_folder_tree_client_stub.call_count - end - end - end - - def test_query_folder_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_folder_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_folder_contents_client_stub.call_count - end - end - end - - def test_query_user_root_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_user_root_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_user_root_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_user_root_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_user_root_contents_client_stub.call_count - end - end - end - - def test_move_folder - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_folder name: name, destination_containing_folder: destination_containing_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_folder_client_stub.call_count - end - end - end - - def test_list_repositories - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_repositories_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_repositories_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_repositories_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_repositories_client_stub.call_count - end - end - end - - def test_get_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_repository({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_repository name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_repository({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_repository_client_stub.call_count - end - end - end - - def test_create_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - repository = {} - repository_id = "hello world" - - create_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_repository parent: parent, repository: repository, repository_id: repository_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_repository_client_stub.call_count - end - end - end - - def test_update_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - repository = {} - - update_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_repository({ update_mask: update_mask, repository: repository }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_repository update_mask: update_mask, repository: repository do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_repository({ update_mask: update_mask, repository: repository }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_repository_client_stub.call_count - end - end - end - - def test_delete_repository - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_repository({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_repository name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_repository({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_repository_client_stub.call_count - end - end - end - - def test_move_repository - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_repository name: name, destination_containing_folder: destination_containing_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_repository_client_stub.call_count - end - end - end - - def test_commit_repository_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_metadata = {} - required_head_commit_sha = "hello world" - file_operations = {} - - commit_repository_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_repository_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, commit_repository_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, commit_repository_changes_client_stub.call_count - end - end - end - - def test_read_repository_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - - read_repository_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_repository_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, read_repository_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.read_repository_file name: name, commit_sha: commit_sha, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, read_repository_file_client_stub.call_count - end - end - end - - def test_query_repository_directory_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - - query_repository_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_repository_directory_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_repository_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_repository_directory_contents_client_stub.call_count - end - end - end - - def test_fetch_repository_history - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - fetch_repository_history_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_repository_history_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_repository_history_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_repository_history_client_stub.call_count - end - end - end - - def test_compute_repository_access_token_status - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - compute_repository_access_token_status_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_compute_repository_access_token_status_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, compute_repository_access_token_status_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.compute_repository_access_token_status({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.compute_repository_access_token_status name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.compute_repository_access_token_status({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, compute_repository_access_token_status_client_stub.call_count - end - end - end - - def test_fetch_remote_branches - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_remote_branches_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_remote_branches_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_remote_branches_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_remote_branches({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_remote_branches name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_remote_branches({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_remote_branches_client_stub.call_count - end - end - end - - def test_list_workspaces - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workspaces_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workspaces_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workspaces_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workspaces_client_stub.call_count - end - end - end - - def test_get_workspace - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Workspace.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workspace({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workspace name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workspace({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workspace_client_stub.call_count - end - end - end - - def test_create_workspace - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Workspace.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workspace = {} - workspace_id = "hello world" - - create_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workspace_client_stub.call_count - end - end - end - - def test_delete_workspace - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workspace({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workspace name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workspace({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workspace_client_stub.call_count - end - end - end - - def test_install_npm_packages - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - - install_npm_packages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_install_npm_packages_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, install_npm_packages_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.install_npm_packages({ workspace: workspace }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.install_npm_packages workspace: workspace do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.install_npm_packages({ workspace: workspace }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, install_npm_packages_client_stub.call_count - end - end - end - - def test_pull_git_commits - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - author = {} - - pull_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_pull_git_commits_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, pull_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, pull_git_commits_client_stub.call_count - end - end - end - - def test_push_git_commits - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - push_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_push_git_commits_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, push_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.push_git_commits({ name: name, remote_branch: remote_branch }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.push_git_commits name: name, remote_branch: remote_branch do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.push_git_commits({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, push_git_commits_client_stub.call_count - end - end - end - - def test_fetch_file_git_statuses - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_file_git_statuses_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_git_statuses_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_file_git_statuses_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_file_git_statuses({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_file_git_statuses name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_file_git_statuses({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_file_git_statuses_client_stub.call_count - end - end - end - - def test_fetch_git_ahead_behind - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - fetch_git_ahead_behind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_git_ahead_behind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_git_ahead_behind_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_git_ahead_behind_client_stub.call_count - end - end - end - - def test_commit_workspace_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - author = {} - commit_message = "hello world" - paths = ["hello world"] - - commit_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_workspace_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, commit_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, commit_workspace_changes_client_stub.call_count - end - end - end - - def test_reset_workspace_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - paths = ["hello world"] - clean = true - - reset_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_reset_workspace_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, reset_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.reset_workspace_changes name: name, paths: paths, clean: clean do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, reset_workspace_changes_client_stub.call_count - end - end - end - - def test_fetch_file_diff - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - fetch_file_diff_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_diff_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_file_diff_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_file_diff({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_file_diff workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_file_diff({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_file_diff_client_stub.call_count - end - end - end - - def test_query_directory_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED - - query_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_directory_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_directory_contents_client_stub.call_count - end - end - end - - def test_search_files - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - search_files_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_files_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, search_files_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, search_files_client_stub.call_count - end - end - end - - def test_make_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - make_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_make_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, make_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.make_directory({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.make_directory workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.make_directory({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, make_directory_client_stub.call_count - end - end - end - - def test_remove_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, remove_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.remove_directory({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.remove_directory workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.remove_directory({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, remove_directory_client_stub.call_count - end - end - end - - def test_move_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_directory workspace: workspace, path: path, new_path: new_path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_directory({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_directory_client_stub.call_count - end - end - end - - def test_read_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReadFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - revision = "hello world" - - read_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, read_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.read_file({ workspace: workspace, path: path, revision: revision }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.read_file workspace: workspace, path: path, revision: revision do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.read_file({ workspace: workspace, path: path, revision: revision }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, read_file_client_stub.call_count - end - end - end - - def test_remove_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, remove_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.remove_file({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.remove_file workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.remove_file({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, remove_file_client_stub.call_count - end - end - end - - def test_move_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MoveFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_file workspace: workspace, path: path, new_path: new_path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_file({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_file_client_stub.call_count - end - end - end - - def test_write_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WriteFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - contents = "hello world" - - write_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_write_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, write_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.write_file({ workspace: workspace, path: path, contents: contents }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.write_file workspace: workspace, path: path, contents: contents do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.write_file({ workspace: workspace, path: path, contents: contents }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, write_file_client_stub.call_count - end - end - end - - def test_list_release_configs - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_release_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_release_configs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_release_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_release_configs_client_stub.call_count - end - end - end - - def test_get_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_release_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_release_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_release_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_release_config_client_stub.call_count - end - end - end - - def test_create_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_config = {} - release_config_id = "hello world" - - create_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_release_config_client_stub.call_count - end - end - end - - def test_update_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - release_config = {} - - update_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_release_config update_mask: update_mask, release_config: release_config do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_release_config({ update_mask: update_mask, release_config: release_config }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_release_config_client_stub.call_count - end - end - end - - def test_delete_release_config - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_release_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_release_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_release_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_release_config_client_stub.call_count - end - end - end - - def test_list_compilation_results - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_compilation_results_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_compilation_results_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_compilation_results_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_compilation_results_client_stub.call_count - end - end - end - - def test_get_compilation_result - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_compilation_result_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_compilation_result({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_compilation_result name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_compilation_result({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_compilation_result_client_stub.call_count - end - end - end - - def test_create_compilation_result - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - compilation_result = {} - - create_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_compilation_result_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_compilation_result parent: parent, compilation_result: compilation_result do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_compilation_result_client_stub.call_count - end - end - end - - def test_query_compilation_result_actions - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - query_compilation_result_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_compilation_result_actions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_compilation_result_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_compilation_result_actions_client_stub.call_count - end - end - end - - def test_list_workflow_configs - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_workflow_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_configs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workflow_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workflow_configs_client_stub.call_count - end - end - end - - def test_get_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workflow_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workflow_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workflow_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workflow_config_client_stub.call_count - end - end - end - - def test_create_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_config = {} - workflow_config_id = "hello world" - - create_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workflow_config_client_stub.call_count - end - end - end - - def test_update_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - workflow_config = {} - - update_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_workflow_config_client_stub.call_count - end - end - end - - def test_delete_workflow_config - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workflow_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workflow_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workflow_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workflow_config_client_stub.call_count - end - end - end - - def test_list_workflow_invocations - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workflow_invocations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_invocations_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workflow_invocations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workflow_invocations_client_stub.call_count - end - end - end - - def test_get_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workflow_invocation_client_stub.call_count - end - end - end - - def test_create_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_invocation = {} - - create_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workflow_invocation_client_stub.call_count - end - end - end - - def test_delete_workflow_invocation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workflow_invocation_client_stub.call_count - end - end - end - - def test_cancel_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_cancel_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, cancel_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.cancel_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.cancel_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.cancel_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, cancel_workflow_invocation_client_stub.call_count - end - end - end - - def test_query_workflow_invocation_actions - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - query_workflow_invocation_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_workflow_invocation_actions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_workflow_invocation_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_workflow_invocation_actions_client_stub.call_count - end - end - end - - def test_get_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Config.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_config_client_stub.call_count - end - end - end - - def test_update_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Config.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - config = {} - update_mask = {} - - update_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_config({ config: config, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_config config: config, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_config({ config: config, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_config_client_stub.call_count - end - end - end - - def test_get_iam_policy - # Create test objects. - client_result = ::Google::Iam::V1::Policy.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_iam_policy_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_count - end - end - end - - def test_set_iam_policy - # Create test objects. - client_result = ::Google::Iam::V1::Policy.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_set_iam_policy_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_count - end - end - end - - def test_test_iam_permissions - # Create test objects. - client_result = ::Google::Iam::V1::TestIamPermissionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_test_iam_permissions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb deleted file mode 100644 index 83dcd399b121..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb +++ /dev/null @@ -1,4668 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetTeamFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_team_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_team_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_team_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_team_folder_client_stub.call_rpc_count - end - end - - def test_create_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - team_folder = {} - - create_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_team_folder({ parent: parent, team_folder: team_folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_team_folder parent: parent, team_folder: team_folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_team_folder({ parent: parent, team_folder: team_folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_team_folder_client_stub.call_rpc_count - end - end - - def test_update_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - team_folder = {} - - update_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_team_folder update_mask: update_mask, team_folder: team_folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_team_folder_client_stub.call_rpc_count - end - end - - def test_delete_team_folder - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_team_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_team_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_team_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_team_folder_client_stub.call_rpc_count - end - end - - def test_delete_team_folder_tree - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_team_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_team_folder_tree, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_team_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_team_folder_tree({ name: name, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_team_folder_tree name: name, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_team_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_team_folder_tree_client_stub.call_rpc_count - end - end - - def test_query_team_folder_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - team_folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_team_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_team_folder_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, request - assert_equal "hello world", request["team_folder"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_team_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_team_folder_contents_client_stub.call_rpc_count - end - end - - def test_search_team_folders - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - search_team_folders_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :search_team_folders, name - assert_kind_of ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, request - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, search_team_folders_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, search_team_folders_client_stub.call_rpc_count - end - end - - def test_get_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_folder_client_stub.call_rpc_count - end - end - - def test_create_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - folder = {} - - create_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateFolderRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_folder({ parent: parent, folder: folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_folder parent: parent, folder: folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_folder({ parent: parent, folder: folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_folder_client_stub.call_rpc_count - end - end - - def test_update_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - folder = {} - - update_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateFolderRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_folder({ update_mask: update_mask, folder: folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_folder update_mask: update_mask, folder: folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_folder({ update_mask: update_mask, folder: folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_folder_client_stub.call_rpc_count - end - end - - def test_delete_folder - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_folder_client_stub.call_rpc_count - end - end - - def test_delete_folder_tree - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_folder_tree, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_folder_tree({ name: name, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_folder_tree name: name, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_folder_tree_client_stub.call_rpc_count - end - end - - def test_query_folder_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_folder_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, request - assert_equal "hello world", request["folder"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_folder_contents_client_stub.call_rpc_count - end - end - - def test_query_user_root_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_user_root_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_user_root_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, request - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_user_root_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_user_root_contents_client_stub.call_rpc_count - end - end - - def test_move_folder - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveFolderRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["destination_containing_folder"] - assert request.has_destination_containing_folder? - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_folder name: name, destination_containing_folder: destination_containing_folder do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_folder_client_stub.call_rpc_count - end - end - - def test_list_repositories - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_repositories_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_repositories, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListRepositoriesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_repositories_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_repositories_client_stub.call_rpc_count - end - end - - def test_get_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetRepositoryRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_repository({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_repository name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_repository({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_repository_client_stub.call_rpc_count - end - end - - def test_create_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - repository = {} - repository_id = "hello world" - - create_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateRepositoryRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] - assert_equal "hello world", request["repository_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_repository parent: parent, repository: repository, repository_id: repository_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_repository_client_stub.call_rpc_count - end - end - - def test_update_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - repository = {} - - update_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_repository({ update_mask: update_mask, repository: repository }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_repository update_mask: update_mask, repository: repository do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_repository({ update_mask: update_mask, repository: repository }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_repository_client_stub.call_rpc_count - end - end - - def test_delete_repository - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_repository({ name: name, force: force }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_repository name: name, force: force do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_repository({ name: name, force: force }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_repository_client_stub.call_rpc_count - end - end - - def test_move_repository - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveRepositoryRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["destination_containing_folder"] - assert request.has_destination_containing_folder? - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_repository name: name, destination_containing_folder: destination_containing_folder do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_repository_client_stub.call_rpc_count - end - end - - def test_commit_repository_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_metadata = {} - required_head_commit_sha = "hello world" - file_operations = {} - - commit_repository_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :commit_repository_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitMetadata), request["commit_metadata"] - assert_equal "hello world", request["required_head_commit_sha"] - assert_equal({}, request["file_operations"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, commit_repository_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, commit_repository_changes_client_stub.call_rpc_count - end - end - - def test_read_repository_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - - read_repository_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :read_repository_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["commit_sha"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, read_repository_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.read_repository_file name: name, commit_sha: commit_sha, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, read_repository_file_client_stub.call_rpc_count - end - end - - def test_query_repository_directory_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - - query_repository_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_repository_directory_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["commit_sha"] - assert_equal "hello world", request["path"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_repository_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_repository_directory_contents_client_stub.call_rpc_count - end - end - - def test_fetch_repository_history - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - fetch_repository_history_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_repository_history, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_repository_history_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_repository_history_client_stub.call_rpc_count - end - end - - def test_compute_repository_access_token_status - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - compute_repository_access_token_status_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :compute_repository_access_token_status, name - assert_kind_of ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, compute_repository_access_token_status_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.compute_repository_access_token_status({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.compute_repository_access_token_status name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.compute_repository_access_token_status({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, compute_repository_access_token_status_client_stub.call_rpc_count - end - end - - def test_fetch_remote_branches - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_remote_branches_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_remote_branches, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_remote_branches_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_remote_branches({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_remote_branches name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_remote_branches({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_remote_branches_client_stub.call_rpc_count - end - end - - def test_list_workspaces - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workspaces_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workspaces, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkspacesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workspaces_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workspaces_client_stub.call_rpc_count - end - end - - def test_get_workspace - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkspaceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workspace({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workspace name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workspace({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workspace_client_stub.call_rpc_count - end - end - - def test_create_workspace - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workspace = {} - workspace_id = "hello world" - - create_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Workspace), request["workspace"] - assert_equal "hello world", request["workspace_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workspace_client_stub.call_rpc_count - end - end - - def test_delete_workspace - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workspace({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workspace name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workspace({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workspace_client_stub.call_rpc_count - end - end - - def test_install_npm_packages - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - - install_npm_packages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :install_npm_packages, name - assert_kind_of ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, request - assert_equal "hello world", request["workspace"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, install_npm_packages_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.install_npm_packages({ workspace: workspace }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.install_npm_packages workspace: workspace do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.install_npm_packages({ workspace: workspace }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, install_npm_packages_client_stub.call_rpc_count - end - end - - def test_pull_git_commits - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - author = {} - - pull_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :pull_git_commits, name - assert_kind_of ::Google::Cloud::Dataform::V1::PullGitCommitsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, pull_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, pull_git_commits_client_stub.call_rpc_count - end - end - - def test_push_git_commits - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - push_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :push_git_commits, name - assert_kind_of ::Google::Cloud::Dataform::V1::PushGitCommitsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, push_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.push_git_commits({ name: name, remote_branch: remote_branch }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.push_git_commits name: name, remote_branch: remote_branch do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.push_git_commits({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, push_git_commits_client_stub.call_rpc_count - end - end - - def test_fetch_file_git_statuses - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_file_git_statuses_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_file_git_statuses, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_file_git_statuses_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_file_git_statuses({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_file_git_statuses name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_file_git_statuses({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_file_git_statuses_client_stub.call_rpc_count - end - end - - def test_fetch_git_ahead_behind - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - fetch_git_ahead_behind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_git_ahead_behind, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_git_ahead_behind_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_git_ahead_behind_client_stub.call_rpc_count - end - end - - def test_commit_workspace_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - author = {} - commit_message = "hello world" - paths = ["hello world"] - - commit_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :commit_workspace_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] - assert_equal "hello world", request["commit_message"] - assert_equal ["hello world"], request["paths"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, commit_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, commit_workspace_changes_client_stub.call_rpc_count - end - end - - def test_reset_workspace_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - paths = ["hello world"] - clean = true - - reset_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :reset_workspace_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal ["hello world"], request["paths"] - assert_equal true, request["clean"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, reset_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.reset_workspace_changes name: name, paths: paths, clean: clean do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, reset_workspace_changes_client_stub.call_rpc_count - end - end - - def test_fetch_file_diff - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - fetch_file_diff_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_file_diff, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileDiffRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_file_diff_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_file_diff({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_file_diff workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_file_diff({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_file_diff_client_stub.call_rpc_count - end - end - - def test_query_directory_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED - - query_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_directory_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_directory_contents_client_stub.call_rpc_count - end - end - - def test_search_files - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - search_files_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :search_files, name - assert_kind_of ::Google::Cloud::Dataform::V1::SearchFilesRequest, request - assert_equal "hello world", request["workspace"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, search_files_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, search_files_client_stub.call_rpc_count - end - end - - def test_make_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - make_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :make_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::MakeDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, make_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.make_directory({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.make_directory workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.make_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, make_directory_client_stub.call_rpc_count - end - end - - def test_remove_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :remove_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, remove_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.remove_directory({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.remove_directory workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.remove_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, remove_directory_client_stub.call_rpc_count - end - end - - def test_move_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["new_path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_directory workspace: workspace, path: path, new_path: new_path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_directory({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_directory_client_stub.call_rpc_count - end - end - - def test_read_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReadFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - revision = "hello world" - - read_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :read_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::ReadFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["revision"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, read_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.read_file({ workspace: workspace, path: path, revision: revision }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.read_file workspace: workspace, path: path, revision: revision do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.read_file({ workspace: workspace, path: path, revision: revision }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, read_file_client_stub.call_rpc_count - end - end - - def test_remove_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :remove_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::RemoveFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, remove_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.remove_file({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.remove_file workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.remove_file({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, remove_file_client_stub.call_rpc_count - end - end - - def test_move_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MoveFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["new_path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_file workspace: workspace, path: path, new_path: new_path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_file({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_file_client_stub.call_rpc_count - end - end - - def test_write_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WriteFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - contents = "hello world" - - write_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :write_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::WriteFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["contents"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, write_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.write_file({ workspace: workspace, path: path, contents: contents }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.write_file workspace: workspace, path: path, contents: contents do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.write_file({ workspace: workspace, path: path, contents: contents }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, write_file_client_stub.call_rpc_count - end - end - - def test_list_release_configs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_release_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_release_configs, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_release_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_release_configs_client_stub.call_rpc_count - end - end - - def test_get_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_release_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_release_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_release_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_release_config_client_stub.call_rpc_count - end - end - - def test_create_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_config = {} - release_config_id = "hello world" - - create_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] - assert_equal "hello world", request["release_config_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_release_config_client_stub.call_rpc_count - end - end - - def test_update_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - release_config = {} - - update_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_release_config update_mask: update_mask, release_config: release_config do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_release_config({ update_mask: update_mask, release_config: release_config }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_release_config_client_stub.call_rpc_count - end - end - - def test_delete_release_config - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_release_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_release_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_release_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_release_config_client_stub.call_rpc_count - end - end - - def test_list_compilation_results - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_compilation_results_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_compilation_results, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_compilation_results_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_compilation_results_client_stub.call_rpc_count - end - end - - def test_get_compilation_result - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_compilation_result, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetCompilationResultRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_compilation_result({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_compilation_result name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_compilation_result({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_compilation_result_client_stub.call_rpc_count - end - end - - def test_create_compilation_result - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - compilation_result = {} - - create_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_compilation_result, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CompilationResult), request["compilation_result"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_compilation_result parent: parent, compilation_result: compilation_result do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_compilation_result_client_stub.call_rpc_count - end - end - - def test_query_compilation_result_actions - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - query_compilation_result_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_compilation_result_actions, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_compilation_result_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_compilation_result_actions_client_stub.call_rpc_count - end - end - - def test_list_workflow_configs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_workflow_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workflow_configs, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workflow_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workflow_configs_client_stub.call_rpc_count - end - end - - def test_get_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workflow_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workflow_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workflow_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workflow_config_client_stub.call_rpc_count - end - end - - def test_create_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_config = {} - workflow_config_id = "hello world" - - create_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] - assert_equal "hello world", request["workflow_config_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workflow_config_client_stub.call_rpc_count - end - end - - def test_update_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - workflow_config = {} - - update_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_workflow_config_client_stub.call_rpc_count - end - end - - def test_delete_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workflow_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workflow_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workflow_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workflow_config_client_stub.call_rpc_count - end - end - - def test_list_workflow_invocations - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workflow_invocations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workflow_invocations, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workflow_invocations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workflow_invocations_client_stub.call_rpc_count - end - end - - def test_get_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_create_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_invocation = {} - - create_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowInvocation), request["workflow_invocation"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_delete_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_cancel_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_query_workflow_invocation_actions - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - query_workflow_invocation_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_workflow_invocation_actions, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_workflow_invocation_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_workflow_invocation_actions_client_stub.call_rpc_count - end - end - - def test_get_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Config.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_config_client_stub.call_rpc_count - end - end - - def test_update_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Config.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - config = {} - update_mask = {} - - update_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Config), request["config"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_config({ config: config, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_config config: config, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_config({ config: config, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_config_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb deleted file mode 100644 index 61e4289027f4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/longrunning/operations_pb" -require "google/longrunning/operations_services_pb" -require "google/longrunning/operations" - -class ::Google::Longrunning::Operations::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Longrunning::Operations::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb deleted file mode 100644 index deeeeee2c568..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb +++ /dev/null @@ -1,319 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/longrunning/operations_pb" -require "google/longrunning/operations/rest" - - -class ::Google::Longrunning::Operations::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create test objects. - client_result = ::Google::Longrunning::ListOperationsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_list_operations_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_count - end - end - end - - def test_get_operation - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_get_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_operation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_operation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_operation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_count - end - end - end - - def test_delete_operation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_delete_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_operation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_operation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_operation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_count - end - end - end - - def test_cancel_operation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_cancel_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.cancel_operation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.cancel_operation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.cancel_operation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Longrunning::Operations::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb deleted file mode 100644 index 72ed015901db..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb +++ /dev/null @@ -1,433 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/longrunning/operations_pb" -require "google/longrunning/operations" - -class ::Google::Longrunning::Operations::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Longrunning::Operations::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Longrunning::Operations::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Longrunning::Operations::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" From 2fa5ce2857d88f2967c72888eed1f5f5bdee3ed0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 1 Apr 2026 08:03:41 +0000 Subject: [PATCH 5/6] docs: update SelectiveGapicGeneration usage doc PiperOrigin-RevId: 892649773 Source-Link: https://github.com/googleapis/googleapis/commit/06a20b286850ebcb792cd2085ae6d0556a7c5498 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d9ae66451f81c9df99dbdc9b23bd75d007380f4e Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxLy5Pd2xCb3QueWFtbCIsImgiOiJkOWFlNjY0NTFmODFjOWRmOTlkYmRjOWIyM2JkNzVkMDA3MzgwZjRlIn0= --- .../google-cloud-dataform-v1/.gitignore | 22 + .../.repo-metadata.json | 17 + .../google-cloud-dataform-v1/.rubocop.yml | 33 + .../google-cloud-dataform-v1/.toys.rb | 28 + .../google-cloud-dataform-v1/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../google-cloud-dataform-v1/CHANGELOG.md | 2 + .../google-cloud-dataform-v1/Gemfile | 14 + .../google-cloud-dataform-v1/LICENSE.md | 201 + .../google-cloud-dataform-v1/README.md | 154 + .../google-cloud-dataform-v1/Rakefile | 169 + .../gapic_metadata.json | 383 + .../google-cloud-dataform-v1.gemspec | 30 + .../lib/google-cloud-dataform-v1.rb | 22 + .../lib/google/cloud/dataform/v1.rb | 45 + .../cloud/dataform/v1/bindings_override.rb | 75 + .../lib/google/cloud/dataform/v1/dataform.rb | 57 + .../cloud/dataform/v1/dataform/client.rb | 7794 +++++++++++++++++ .../cloud/dataform/v1/dataform/credentials.rb | 48 + .../cloud/dataform/v1/dataform/operations.rb | 841 ++ .../cloud/dataform/v1/dataform/paths.rb | 311 + .../google/cloud/dataform/v1/dataform/rest.rb | 55 + .../cloud/dataform/v1/dataform/rest/client.rb | 7248 +++++++++++++++ .../dataform/v1/dataform/rest/operations.rb | 925 ++ .../dataform/v1/dataform/rest/service_stub.rb | 4636 ++++++++++ .../google/cloud/dataform/v1/dataform_pb.rb | 216 + .../cloud/dataform/v1/dataform_services_pb.rb | 234 + .../lib/google/cloud/dataform/v1/rest.rb | 38 + .../lib/google/cloud/dataform/v1/version.rb | 28 + .../lib/google/longrunning.rb | 41 + .../google/longrunning/bindings_override.rb | 71 + .../lib/google/longrunning/operations.rb | 59 + .../google/longrunning/operations/client.rb | 952 ++ .../longrunning/operations/credentials.rb | 40 + .../longrunning/operations/operations.rb | 837 ++ .../lib/google/longrunning/operations/rest.rb | 57 + .../longrunning/operations/rest/client.rb | 776 ++ .../longrunning/operations/rest/operations.rb | 921 ++ .../operations/rest/service_stub.rb | 322 + .../lib/google/longrunning/rest.rb | 34 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 593 ++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../google/cloud/dataform/v1/dataform.rb | 3308 +++++++ .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/expr.rb | 75 + .../proto_docs/google/type/interval.rb | 45 + .../google-cloud-dataform-v1/snippets/Gemfile | 32 + .../dataform/cancel_workflow_invocation.rb | 47 + .../dataform/commit_repository_changes.rb | 47 + .../dataform/commit_workspace_changes.rb | 47 + .../compute_repository_access_token_status.rb | 47 + .../dataform/create_compilation_result.rb | 47 + .../snippets/dataform/create_folder.rb | 47 + .../dataform/create_release_config.rb | 47 + .../snippets/dataform/create_repository.rb | 47 + .../snippets/dataform/create_team_folder.rb | 47 + .../dataform/create_workflow_config.rb | 47 + .../dataform/create_workflow_invocation.rb | 47 + .../snippets/dataform/create_workspace.rb | 47 + .../snippets/dataform/delete_folder.rb | 47 + .../snippets/dataform/delete_folder_tree.rb | 54 + .../dataform/delete_release_config.rb | 47 + .../snippets/dataform/delete_repository.rb | 47 + .../snippets/dataform/delete_team_folder.rb | 47 + .../dataform/delete_team_folder_tree.rb | 54 + .../dataform/delete_workflow_config.rb | 47 + .../dataform/delete_workflow_invocation.rb | 47 + .../snippets/dataform/delete_workspace.rb | 47 + .../snippets/dataform/fetch_file_diff.rb | 47 + .../dataform/fetch_file_git_statuses.rb | 47 + .../dataform/fetch_git_ahead_behind.rb | 47 + .../dataform/fetch_remote_branches.rb | 47 + .../dataform/fetch_repository_history.rb | 51 + .../dataform/get_compilation_result.rb | 47 + .../snippets/dataform/get_config.rb | 47 + .../snippets/dataform/get_folder.rb | 47 + .../snippets/dataform/get_iam_policy.rb | 47 + .../snippets/dataform/get_release_config.rb | 47 + .../snippets/dataform/get_repository.rb | 47 + .../snippets/dataform/get_team_folder.rb | 47 + .../snippets/dataform/get_workflow_config.rb | 47 + .../dataform/get_workflow_invocation.rb | 47 + .../snippets/dataform/get_workspace.rb | 47 + .../snippets/dataform/install_npm_packages.rb | 47 + .../dataform/list_compilation_results.rb | 51 + .../snippets/dataform/list_release_configs.rb | 51 + .../snippets/dataform/list_repositories.rb | 51 + .../dataform/list_workflow_configs.rb | 51 + .../dataform/list_workflow_invocations.rb | 51 + .../snippets/dataform/list_workspaces.rb | 51 + .../snippets/dataform/make_directory.rb | 47 + .../snippets/dataform/move_directory.rb | 47 + .../snippets/dataform/move_file.rb | 47 + .../snippets/dataform/move_folder.rb | 54 + .../snippets/dataform/move_repository.rb | 54 + .../snippets/dataform/pull_git_commits.rb | 47 + .../snippets/dataform/push_git_commits.rb | 47 + .../query_compilation_result_actions.rb | 51 + .../dataform/query_directory_contents.rb | 51 + .../dataform/query_folder_contents.rb | 51 + .../query_repository_directory_contents.rb | 51 + .../dataform/query_team_folder_contents.rb | 51 + .../dataform/query_user_root_contents.rb | 51 + .../query_workflow_invocation_actions.rb | 51 + .../snippets/dataform/read_file.rb | 47 + .../snippets/dataform/read_repository_file.rb | 47 + .../snippets/dataform/remove_directory.rb | 47 + .../snippets/dataform/remove_file.rb | 47 + .../dataform/reset_workspace_changes.rb | 47 + .../snippets/dataform/search_files.rb | 51 + .../snippets/dataform/search_team_folders.rb | 51 + .../snippets/dataform/set_iam_policy.rb | 47 + .../snippets/dataform/test_iam_permissions.rb | 47 + .../snippets/dataform/update_config.rb | 47 + .../snippets/dataform/update_folder.rb | 47 + .../dataform/update_release_config.rb | 47 + .../snippets/dataform/update_repository.rb | 47 + .../snippets/dataform/update_team_folder.rb | 47 + .../dataform/update_workflow_config.rb | 47 + .../snippets/dataform/write_file.rb | 47 + .../snippets/operations/cancel_operation.rb | 47 + .../snippets/operations/delete_operation.rb | 47 + .../snippets/operations/get_operation.rb | 54 + .../snippets/operations/list_operations.rb | 51 + .../snippets/operations/wait_operation.rb | 54 + ...pet_metadata_google.cloud.dataform.v1.json | 2935 +++++++ .../snippet_metadata_google.longrunning.json | 215 + .../dataform/v1/dataform_operations_test.rb | 400 + .../cloud/dataform/v1/dataform_paths_test.rb | 211 + .../cloud/dataform/v1/dataform_rest_test.rb | 4148 +++++++++ .../google/cloud/dataform/v1/dataform_test.rb | 4668 ++++++++++ .../longrunning/operations_operations_test.rb | 400 + .../longrunning/operations_rest_test.rb | 319 + .../google/longrunning/operations_test.rb | 433 + .../google-cloud-dataform-v1/test/helper.rb | 26 + 144 files changed, 50713 insertions(+) create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.gitignore create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.toys.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/.yardopts create mode 100644 owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/README.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/Rakefile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/version.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb create mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/helper.rb diff --git a/owl-bot-staging/google-cloud-dataform-v1/.gitignore b/owl-bot-staging/google-cloud-dataform-v1/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json new file mode 100644 index 000000000000..637d61a979b2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_id": "dataform.googleapis.com", + "api_shortname": "dataform", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest", + "distribution_name": "google-cloud-dataform-v1", + "is_cloud": true, + "language": "ruby", + "name": "dataform", + "name_pretty": "Dataform V1 API", + "product_documentation": "https://cloud.google.com/dataform/docs/overview", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details.", + "ruby-cloud-product-url": "https://cloud.google.com/dataform/docs/overview", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml new file mode 100644 index 000000000000..6f84a6d0a78b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-dataform-v1.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-dataform-v1.rb" diff --git a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/.yardopts b/owl-bot-staging/google-cloud-dataform-v1/.yardopts new file mode 100644 index 000000000000..f98df5dcdd6e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Dataform V1 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md new file mode 100644 index 000000000000..91f83b42e5fa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-dataform-v1 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-dataform-v1 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/dataform/v1" + +client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/dataform/v1" + +::Google::Longrunning::Operations::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Longrunning::Operations::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-dataform-v1 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/dataform/v1" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Longrunning::Operations::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-dataform-v1/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataform-v1/README.md b/owl-bot-staging/google-cloud-dataform-v1/README.md new file mode 100644 index 000000000000..bd989cf181ba --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Dataform V1 API + +Service to develop, version control, and operationalize SQL pipelines in BigQuery. + +Service to develop, version control, and operationalize SQL pipelines in BigQuery. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Dataform V1 API. Most users should consider using +the main client gem, +[google-cloud-dataform](https://rubygems.org/gems/google-cloud-dataform). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-dataform-v1 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/dataform.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/dataform/v1" + +client = ::Google::Longrunning::Operations::Client.new +request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...) +response = client.list_operations request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/dataform/docs/overview) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/dataform/v1" +require "logger" + +client = ::Google::Longrunning::Operations::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-dataform`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-dataform-v1`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-dataform`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-dataform-v1`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataform-v1/Rakefile b/owl-bot-staging/google-cloud-dataform-v1/Rakefile new file mode 100644 index 000000000000..5a65a0a061e8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-dataform-v1 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["GOOGLE_CLOUD_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/longrunning/operations/credentials" + ::Google::Longrunning::Operations::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["GOOGLE_CLOUD_PROJECT"] = project + ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project + ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-dataform-v1 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataform-v1 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataform-v1 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-dataform-v1 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-dataform-v1" + header "google-cloud-dataform-v1 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-dataform-v1 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-dataform-v1 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-dataform-v1 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-dataform-v1 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json new file mode 100644 index 000000000000..da5082c37f30 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json @@ -0,0 +1,383 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.cloud.dataform.v1", + "libraryPackage": "::Google::Cloud::Dataform::V1", + "services": { + "Dataform": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataform::V1::Dataform::Client", + "rpcs": { + "GetTeamFolder": { + "methods": [ + "get_team_folder" + ] + }, + "CreateTeamFolder": { + "methods": [ + "create_team_folder" + ] + }, + "UpdateTeamFolder": { + "methods": [ + "update_team_folder" + ] + }, + "DeleteTeamFolder": { + "methods": [ + "delete_team_folder" + ] + }, + "DeleteTeamFolderTree": { + "methods": [ + "delete_team_folder_tree" + ] + }, + "QueryTeamFolderContents": { + "methods": [ + "query_team_folder_contents" + ] + }, + "SearchTeamFolders": { + "methods": [ + "search_team_folders" + ] + }, + "GetFolder": { + "methods": [ + "get_folder" + ] + }, + "CreateFolder": { + "methods": [ + "create_folder" + ] + }, + "UpdateFolder": { + "methods": [ + "update_folder" + ] + }, + "DeleteFolder": { + "methods": [ + "delete_folder" + ] + }, + "DeleteFolderTree": { + "methods": [ + "delete_folder_tree" + ] + }, + "QueryFolderContents": { + "methods": [ + "query_folder_contents" + ] + }, + "QueryUserRootContents": { + "methods": [ + "query_user_root_contents" + ] + }, + "MoveFolder": { + "methods": [ + "move_folder" + ] + }, + "ListRepositories": { + "methods": [ + "list_repositories" + ] + }, + "GetRepository": { + "methods": [ + "get_repository" + ] + }, + "CreateRepository": { + "methods": [ + "create_repository" + ] + }, + "UpdateRepository": { + "methods": [ + "update_repository" + ] + }, + "DeleteRepository": { + "methods": [ + "delete_repository" + ] + }, + "MoveRepository": { + "methods": [ + "move_repository" + ] + }, + "CommitRepositoryChanges": { + "methods": [ + "commit_repository_changes" + ] + }, + "ReadRepositoryFile": { + "methods": [ + "read_repository_file" + ] + }, + "QueryRepositoryDirectoryContents": { + "methods": [ + "query_repository_directory_contents" + ] + }, + "FetchRepositoryHistory": { + "methods": [ + "fetch_repository_history" + ] + }, + "ComputeRepositoryAccessTokenStatus": { + "methods": [ + "compute_repository_access_token_status" + ] + }, + "FetchRemoteBranches": { + "methods": [ + "fetch_remote_branches" + ] + }, + "ListWorkspaces": { + "methods": [ + "list_workspaces" + ] + }, + "GetWorkspace": { + "methods": [ + "get_workspace" + ] + }, + "CreateWorkspace": { + "methods": [ + "create_workspace" + ] + }, + "DeleteWorkspace": { + "methods": [ + "delete_workspace" + ] + }, + "InstallNpmPackages": { + "methods": [ + "install_npm_packages" + ] + }, + "PullGitCommits": { + "methods": [ + "pull_git_commits" + ] + }, + "PushGitCommits": { + "methods": [ + "push_git_commits" + ] + }, + "FetchFileGitStatuses": { + "methods": [ + "fetch_file_git_statuses" + ] + }, + "FetchGitAheadBehind": { + "methods": [ + "fetch_git_ahead_behind" + ] + }, + "CommitWorkspaceChanges": { + "methods": [ + "commit_workspace_changes" + ] + }, + "ResetWorkspaceChanges": { + "methods": [ + "reset_workspace_changes" + ] + }, + "FetchFileDiff": { + "methods": [ + "fetch_file_diff" + ] + }, + "QueryDirectoryContents": { + "methods": [ + "query_directory_contents" + ] + }, + "SearchFiles": { + "methods": [ + "search_files" + ] + }, + "MakeDirectory": { + "methods": [ + "make_directory" + ] + }, + "RemoveDirectory": { + "methods": [ + "remove_directory" + ] + }, + "MoveDirectory": { + "methods": [ + "move_directory" + ] + }, + "ReadFile": { + "methods": [ + "read_file" + ] + }, + "RemoveFile": { + "methods": [ + "remove_file" + ] + }, + "MoveFile": { + "methods": [ + "move_file" + ] + }, + "WriteFile": { + "methods": [ + "write_file" + ] + }, + "ListReleaseConfigs": { + "methods": [ + "list_release_configs" + ] + }, + "GetReleaseConfig": { + "methods": [ + "get_release_config" + ] + }, + "CreateReleaseConfig": { + "methods": [ + "create_release_config" + ] + }, + "UpdateReleaseConfig": { + "methods": [ + "update_release_config" + ] + }, + "DeleteReleaseConfig": { + "methods": [ + "delete_release_config" + ] + }, + "ListCompilationResults": { + "methods": [ + "list_compilation_results" + ] + }, + "GetCompilationResult": { + "methods": [ + "get_compilation_result" + ] + }, + "CreateCompilationResult": { + "methods": [ + "create_compilation_result" + ] + }, + "QueryCompilationResultActions": { + "methods": [ + "query_compilation_result_actions" + ] + }, + "ListWorkflowConfigs": { + "methods": [ + "list_workflow_configs" + ] + }, + "GetWorkflowConfig": { + "methods": [ + "get_workflow_config" + ] + }, + "CreateWorkflowConfig": { + "methods": [ + "create_workflow_config" + ] + }, + "UpdateWorkflowConfig": { + "methods": [ + "update_workflow_config" + ] + }, + "DeleteWorkflowConfig": { + "methods": [ + "delete_workflow_config" + ] + }, + "ListWorkflowInvocations": { + "methods": [ + "list_workflow_invocations" + ] + }, + "GetWorkflowInvocation": { + "methods": [ + "get_workflow_invocation" + ] + }, + "CreateWorkflowInvocation": { + "methods": [ + "create_workflow_invocation" + ] + }, + "DeleteWorkflowInvocation": { + "methods": [ + "delete_workflow_invocation" + ] + }, + "CancelWorkflowInvocation": { + "methods": [ + "cancel_workflow_invocation" + ] + }, + "QueryWorkflowInvocationActions": { + "methods": [ + "query_workflow_invocation_actions" + ] + }, + "GetConfig": { + "methods": [ + "get_config" + ] + }, + "UpdateConfig": { + "methods": [ + "update_config" + ] + }, + "GetIamPolicy": { + "methods": [ + "get_iam_policy" + ] + }, + "SetIamPolicy": { + "methods": [ + "set_iam_policy" + ] + }, + "TestIamPermissions": { + "methods": [ + "test_iam_permissions" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec new file mode 100644 index 000000000000..76010660b167 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec @@ -0,0 +1,30 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/dataform/v1/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-dataform-v1" + gem.version = Google::Cloud::Dataform::V1::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details." + gem.summary = "Service to develop, version control, and operationalize SQL pipelines in BigQuery." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "google-cloud-location", "~> 1.0" + gem.add_dependency "google-iam-v1", "~> 1.3" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb new file mode 100644 index 000000000000..015820e39535 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/dataform/v1" +# require "google/longrunning" diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb new file mode 100644 index 000000000000..7a6071098191 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataform/v1/dataform" +require "google/cloud/dataform/v1/version" + +module Google + module Cloud + module Dataform + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/dataform/v1" + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/dataform/v1" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module V1 + end + end + end +end + +helper_path = ::File.join __dir__, "v1", "_helpers.rb" +require "google/cloud/dataform/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb new file mode 100644 index 000000000000..655e4a1eab49 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" + +module Google + module Cloud + module Dataform + ## + # @example Loading just the REST part of this package, including all its services, and instantiating a REST client + # + # require "google/cloud/dataform/v1/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module V1 + ## + # @private + # Initialize the mixin bindings configuration + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + + default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config + default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ + + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}/locations", + matches: [ + ["name", %r{^projects/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config + end + yield @configure if block_given? + @configure + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb new file mode 100644 index 000000000000..ac1adbd0da42 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" + +require "google/cloud/dataform/v1/dataform/credentials" +require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/operations" +require "google/cloud/dataform/v1/dataform/client" +require "google/cloud/dataform/v1/dataform/rest" + +module Google + module Cloud + module Dataform + module V1 + ## + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataform/v1/dataform" + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataform/v1/dataform/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module Dataform + end + end + end + end +end + +helper_path = ::File.join __dir__, "dataform", "helpers.rb" +require "google/cloud/dataform/v1/dataform/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb new file mode 100644 index 000000000000..632bdd44803f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb @@ -0,0 +1,7794 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/location" +require "google/iam/v1" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + ## + # Client for the Dataform service. + # + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dataform_stub + + ## + # Configure the Dataform Client class. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Dataform clients + # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dataform_stub.universe_domain + end + + ## + # Create a new Dataform client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Dataform client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/cloud/dataform/v1/dataform_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @dataform_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataform::V1::Dataform::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @dataform_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder&.name + header_params["team_folder.name"] = request.team_folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.team_folder + header_params["team_folder"] = request.team_folder + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.folder&.name + header_params["folder.name"] = request.folder.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.folder + header_params["folder"] = request.folder + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. + # + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Folder to a new Folder, TeamFolder, or the root location. + # + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Repositories in a given project and location. + # + # **Note:** *This method can return repositories not shown in the [Dataform + # UI](https://console.cloud.google.com/bigquery/dataform)*. + # + # @overload list_repositories(request, options = nil) + # Pass arguments to `list_repositories` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_repositories` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + # + # # Call the list_repositories method. + # result = client.list_repositories request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + # p item + # end + # + def list_repositories request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_repositories.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_repositories.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Repository. + # + # @overload get_repository(request, options = nil) + # Pass arguments to `get_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_repository(name: nil) + # Pass arguments to `get_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + # + # # Call the get_repository method. + # result = client.get_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def get_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Repository in a given project and location. + # + # @overload create_repository(request, options = nil) + # Pass arguments to `create_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_repository(parent: nil, repository: nil, repository_id: nil) + # Pass arguments to `create_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to create. + # @param repository_id [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + # + # # Call the create_repository method. + # result = client.create_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def create_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Repository. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_repository(request, options = nil) + # Pass arguments to `update_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_repository(update_mask: nil, repository: nil) + # Pass arguments to `update_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + # + # # Call the update_repository method. + # result = client.update_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def update_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.repository&.name + header_params["repository.name"] = request.repository.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Repository. + # + # @overload delete_repository(request, options = nil) + # Pass arguments to `delete_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_repository(name: nil, force: nil) + # Pass arguments to `delete_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param force [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + # + # # Call the delete_repository method. + # result = client.delete_repository request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit to a Repository. The Repository must not have a value + # for `git_remote_settings.url`. + # + # @overload commit_repository_changes(request, options = nil) + # Pass arguments to `commit_repository_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) + # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] + # Required. The changes to commit to the repository. + # @param required_head_commit_sha [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + # + # # Call the commit_repository_changes method. + # result = client.commit_repository_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + # p result + # + def commit_repository_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.commit_repository_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.commit_repository_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Repository). The Repository + # must not have a value for `git_remote_settings.url`. + # + # @overload read_repository_file(request, options = nil) + # Pass arguments to `read_repository_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) + # Pass arguments to `read_repository_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @param path [::String] + # Required. Full file path to read including filename, from repository root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + # + # # Call the read_repository_file method. + # result = client.read_repository_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + # p result + # + def read_repository_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.read_repository_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.read_repository_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Repository directory. The Repository must + # not have a value for `git_remote_settings.url`. + # + # @overload query_repository_directory_contents(request, options = nil) + # Pass arguments to `query_repository_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + # + # # Call the query_repository_directory_contents method. + # result = client.query_repository_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_repository_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's history of commits. The Repository must not have a + # value for `git_remote_settings.url`. + # + # @overload fetch_repository_history(request, options = nil) + # Pass arguments to `fetch_repository_history` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param page_size [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + # + # # Call the fetch_repository_history method. + # result = client.fetch_repository_history request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + # p item + # end + # + def fetch_repository_history request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_repository_history.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_repository_history.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Computes a Repository's Git access token status. + # + # @overload compute_repository_access_token_status(request, options = nil) + # Pass arguments to `compute_repository_access_token_status` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload compute_repository_access_token_status(name: nil) + # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + # + # # Call the compute_repository_access_token_status method. + # result = client.compute_repository_access_token_status request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + # p result + # + def compute_repository_access_token_status request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, + metadata: metadata, + retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's remote branches. + # + # @overload fetch_remote_branches(request, options = nil) + # Pass arguments to `fetch_remote_branches` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_remote_branches(name: nil) + # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + # + # # Call the fetch_remote_branches method. + # result = client.fetch_remote_branches request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + # p result + # + def fetch_remote_branches request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_remote_branches.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_remote_branches.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Workspaces in a given Repository. + # + # @overload list_workspaces(request, options = nil) + # Pass arguments to `list_workspaces` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workspaces` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + # + # # Call the list_workspaces method. + # result = client.list_workspaces request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + # p item + # end + # + def list_workspaces request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workspaces.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workspaces.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Workspace. + # + # @overload get_workspace(request, options = nil) + # Pass arguments to `get_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workspace(name: nil) + # Pass arguments to `get_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + # + # # Call the get_workspace method. + # result = client.get_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def get_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Workspace in a given Repository. + # + # @overload create_workspace(request, options = nil) + # Pass arguments to `create_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) + # Pass arguments to `create_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] + # Required. The workspace to create. + # @param workspace_id [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + # + # # Call the create_workspace method. + # result = client.create_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def create_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Workspace. + # + # @overload delete_workspace(request, options = nil) + # Pass arguments to `delete_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workspace(name: nil) + # Pass arguments to `delete_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + # + # # Call the delete_workspace method. + # result = client.delete_workspace request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Installs dependency NPM packages (inside a Workspace). + # + # @overload install_npm_packages(request, options = nil) + # Pass arguments to `install_npm_packages` via a request object, either of type + # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload install_npm_packages(workspace: nil) + # Pass arguments to `install_npm_packages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + # + # # Call the install_npm_packages method. + # result = client.install_npm_packages request + # + # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + # p result + # + def install_npm_packages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.install_npm_packages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, + metadata: metadata, + retry_policy: @config.rpcs.install_npm_packages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pulls Git commits from the Repository's remote into a Workspace. + # + # @overload pull_git_commits(request, options = nil) + # Pass arguments to `pull_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) + # Pass arguments to `pull_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + # + # # Call the pull_git_commits method. + # result = client.pull_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + # p result + # + def pull_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.pull_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, + metadata: metadata, + retry_policy: @config.rpcs.pull_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pushes Git commits from a Workspace to the Repository's remote. + # + # @overload push_git_commits(request, options = nil) + # Pass arguments to `push_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload push_git_commits(name: nil, remote_branch: nil) + # Pass arguments to `push_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + # + # # Call the push_git_commits method. + # result = client.push_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + # p result + # + def push_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.push_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, + metadata: metadata, + retry_policy: @config.rpcs.push_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git statuses for the files in a Workspace. + # + # @overload fetch_file_git_statuses(request, options = nil) + # Pass arguments to `fetch_file_git_statuses` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_file_git_statuses(name: nil) + # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + # + # # Call the fetch_file_git_statuses method. + # result = client.fetch_file_git_statuses request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + # p result + # + def fetch_file_git_statuses request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git ahead/behind against a remote branch. + # + # @overload fetch_git_ahead_behind(request, options = nil) + # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) + # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + # + # # Call the fetch_git_ahead_behind method. + # result = client.fetch_git_ahead_behind request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + # p result + # + def fetch_git_ahead_behind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit for uncommitted files in a Workspace. + # + # @overload commit_workspace_changes(request, options = nil) + # Pass arguments to `commit_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) + # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The commit's author. + # @param commit_message [::String] + # Optional. The commit's message. + # @param paths [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + # + # # Call the commit_workspace_changes method. + # result = client.commit_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + # p result + # + def commit_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.commit_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.commit_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a Git reset for uncommitted files in a Workspace. + # + # @overload reset_workspace_changes(request, options = nil) + # Pass arguments to `reset_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) + # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param paths [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @param clean [::Boolean] + # Optional. If set to true, untracked files will be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + # + # # Call the reset_workspace_changes method. + # result = client.reset_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + # p result + # + def reset_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.reset_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.reset_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git diff for an uncommitted file in a Workspace. + # + # @overload fetch_file_diff(request, options = nil) + # Pass arguments to `fetch_file_diff` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload fetch_file_diff(workspace: nil, path: nil) + # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + # + # # Call the fetch_file_diff method. + # result = client.fetch_file_diff request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + # p result + # + def fetch_file_diff request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.fetch_file_diff.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, + metadata: metadata, + retry_policy: @config.rpcs.fetch_file_diff.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Workspace directory. + # + # @overload query_directory_contents(request, options = nil) + # Pass arguments to `query_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `query_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + # + # # Call the query_directory_contents method. + # result = client.query_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Finds the contents of a given Workspace directory by filter. + # + # @overload search_files(request, options = nil) + # Pass arguments to `search_files` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `search_files` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param page_size [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param filter [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + # + # # Call the search_files method. + # result = client.search_files request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + # p item + # end + # + def search_files request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_files.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_files.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_files.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :search_files, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_files, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a directory inside a Workspace. + # + # @overload make_directory(request, options = nil) + # Pass arguments to `make_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload make_directory(workspace: nil, path: nil) + # Pass arguments to `make_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + # + # # Call the make_directory method. + # result = client.make_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + # p result + # + def make_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.make_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.make_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.make_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a directory (inside a Workspace) and all of its contents. + # + # @overload remove_directory(request, options = nil) + # Pass arguments to `remove_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_directory(workspace: nil, path: nil) + # Pass arguments to `remove_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + # + # # Call the remove_directory method. + # result = client.remove_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + # p result + # + def remove_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a directory (inside a Workspace), and all of its contents, to a new + # location. + # + # @overload move_directory(request, options = nil) + # Pass arguments to `move_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_directory(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @param new_path [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + # + # # Call the move_directory method. + # result = client.move_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + # p result + # + def move_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_directory.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Workspace). + # + # @overload read_file(request, options = nil) + # Pass arguments to `read_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload read_file(workspace: nil, path: nil, revision: nil) + # Pass arguments to `read_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param revision [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadFileRequest.new + # + # # Call the read_file method. + # result = client.read_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + # p result + # + def read_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.read_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.read_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.read_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :read_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a file (inside a Workspace). + # + # @overload remove_file(request, options = nil) + # Pass arguments to `remove_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_file(workspace: nil, path: nil) + # Pass arguments to `remove_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + # + # # Call the remove_file method. + # result = client.remove_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + # p result + # + def remove_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a file (inside a Workspace) to a new location. + # + # @overload move_file(request, options = nil) + # Pass arguments to `move_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload move_file(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param new_path [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFileRequest.new + # + # # Call the move_file method. + # result = client.move_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + # p result + # + def move_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.move_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.move_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.move_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :move_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Writes to a file (inside a Workspace). + # + # @overload write_file(request, options = nil) + # Pass arguments to `write_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload write_file(workspace: nil, path: nil, contents: nil) + # Pass arguments to `write_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file. + # @param contents [::String] + # Required. The file's contents. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::WriteFileRequest.new + # + # # Call the write_file method. + # result = client.write_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + # p result + # + def write_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.write_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workspace + header_params["workspace"] = request.workspace + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.write_file.timeout, + metadata: metadata, + retry_policy: @config.rpcs.write_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :write_file, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ReleaseConfigs in a given Repository. + # + # @overload list_release_configs(request, options = nil) + # Pass arguments to `list_release_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_release_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + # + # # Call the list_release_configs method. + # result = client.list_release_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + # p item + # end + # + def list_release_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_release_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_release_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single ReleaseConfig. + # + # @overload get_release_config(request, options = nil) + # Pass arguments to `get_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_release_config(name: nil) + # Pass arguments to `get_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + # + # # Call the get_release_config method. + # result = client.get_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def get_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ReleaseConfig in a given Repository. + # + # @overload create_release_config(request, options = nil) + # Pass arguments to `create_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) + # Pass arguments to `create_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to create. + # @param release_config_id [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + # + # # Call the create_release_config method. + # result = client.create_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def create_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single ReleaseConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_release_config(request, options = nil) + # Pass arguments to `update_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_release_config(update_mask: nil, release_config: nil) + # Pass arguments to `update_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + # + # # Call the update_release_config method. + # result = client.update_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def update_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.release_config&.name + header_params["release_config.name"] = request.release_config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ReleaseConfig. + # + # @overload delete_release_config(request, options = nil) + # Pass arguments to `delete_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_release_config(name: nil) + # Pass arguments to `delete_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + # + # # Call the delete_release_config method. + # result = client.delete_release_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CompilationResults in a given Repository. + # + # @overload list_compilation_results(request, options = nil) + # Pass arguments to `list_compilation_results` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_compilation_results` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + # + # # Call the list_compilation_results method. + # result = client.list_compilation_results request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + # p item + # end + # + def list_compilation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_compilation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_compilation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single CompilationResult. + # + # @overload get_compilation_result(request, options = nil) + # Pass arguments to `get_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_compilation_result(name: nil) + # Pass arguments to `get_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + # + # # Call the get_compilation_result method. + # result = client.get_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def get_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new CompilationResult in a given project and location. + # + # @overload create_compilation_result(request, options = nil) + # Pass arguments to `create_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_compilation_result(parent: nil, compilation_result: nil) + # Pass arguments to `create_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] + # Required. The compilation result to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + # + # # Call the create_compilation_result method. + # result = client.create_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def create_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns CompilationResultActions in a given CompilationResult. + # + # @overload query_compilation_result_actions(request, options = nil) + # Pass arguments to `query_compilation_result_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param filter [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + # + # # Call the query_compilation_result_actions method. + # result = client.query_compilation_result_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + # p item + # end + # + def query_compilation_result_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowConfigs in a given Repository. + # + # @overload list_workflow_configs(request, options = nil) + # Pass arguments to `list_workflow_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + # + # # Call the list_workflow_configs method. + # result = client.list_workflow_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + # p item + # end + # + def list_workflow_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workflow_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workflow_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowConfig. + # + # @overload get_workflow_config(request, options = nil) + # Pass arguments to `get_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workflow_config(name: nil) + # Pass arguments to `get_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + # + # # Call the get_workflow_config method. + # result = client.get_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def get_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowConfig in a given Repository. + # + # @overload create_workflow_config(request, options = nil) + # Pass arguments to `create_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) + # Pass arguments to `create_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to create. + # @param workflow_config_id [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + # + # # Call the create_workflow_config method. + # result = client.create_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def create_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single WorkflowConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_workflow_config(request, options = nil) + # Pass arguments to `update_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_workflow_config(update_mask: nil, workflow_config: nil) + # Pass arguments to `update_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + # + # # Call the update_workflow_config method. + # result = client.update_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def update_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.workflow_config&.name + header_params["workflow_config.name"] = request.workflow_config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowConfig. + # + # @overload delete_workflow_config(request, options = nil) + # Pass arguments to `delete_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workflow_config(name: nil) + # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + # + # # Call the delete_workflow_config method. + # result = client.delete_workflow_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowInvocations in a given Repository. + # + # @overload list_workflow_invocations(request, options = nil) + # Pass arguments to `list_workflow_invocations` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + # + # # Call the list_workflow_invocations method. + # result = client.list_workflow_invocations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + # p item + # end + # + def list_workflow_invocations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_workflow_invocations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_workflow_invocations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowInvocation. + # + # @overload get_workflow_invocation(request, options = nil) + # Pass arguments to `get_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_workflow_invocation(name: nil) + # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + # + # # Call the get_workflow_invocation method. + # result = client.get_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def get_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowInvocation in a given Repository. + # + # @overload create_workflow_invocation(request, options = nil) + # Pass arguments to `create_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) + # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] + # Required. The workflow invocation resource to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + # + # # Call the create_workflow_invocation method. + # result = client.create_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def create_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowInvocation. + # + # @overload delete_workflow_invocation(request, options = nil) + # Pass arguments to `delete_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_workflow_invocation(name: nil) + # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + # + # # Call the delete_workflow_invocation method. + # result = client.delete_workflow_invocation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests cancellation of a running WorkflowInvocation. + # + # @overload cancel_workflow_invocation(request, options = nil) + # Pass arguments to `cancel_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_workflow_invocation(name: nil) + # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + # + # # Call the cancel_workflow_invocation method. + # result = client.cancel_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + # p result + # + def cancel_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns WorkflowInvocationActions in a given WorkflowInvocation. + # + # @overload query_workflow_invocation_actions(request, options = nil) + # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation's name. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + # + # # Call the query_workflow_invocation_actions method. + # result = client.query_workflow_invocation_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + # p item + # end + # + def query_workflow_invocation_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get default config for a given project and location. + # + # @overload get_config(request, options = nil) + # Pass arguments to `get_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_config(name: nil) + # Pass arguments to `get_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The config name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetConfigRequest.new + # + # # Call the get_config method. + # result = client.get_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def get_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update default config for a given project and location. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_config(request, options = nil) + # Pass arguments to `update_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_config(config: nil, update_mask: nil) + # Pass arguments to `update_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] + # Required. The config to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the config. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + # + # # Call the update_config method. + # result = client.update_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def update_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.config&.name + header_params["config.name"] = request.config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :update_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::Policy] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.resource + header_params["resource"] = request.resource + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Dataform API. + # + # This class represents the configuration for Dataform, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_team_folder to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Dataform API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder + ## + # RPC-specific configuration for `list_repositories` + # @return [::Gapic::Config::Method] + # + attr_reader :list_repositories + ## + # RPC-specific configuration for `get_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :get_repository + ## + # RPC-specific configuration for `create_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :create_repository + ## + # RPC-specific configuration for `update_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :update_repository + ## + # RPC-specific configuration for `delete_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_repository + ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## + # RPC-specific configuration for `commit_repository_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_repository_changes + ## + # RPC-specific configuration for `read_repository_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_repository_file + ## + # RPC-specific configuration for `query_repository_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_repository_directory_contents + ## + # RPC-specific configuration for `fetch_repository_history` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_repository_history + ## + # RPC-specific configuration for `compute_repository_access_token_status` + # @return [::Gapic::Config::Method] + # + attr_reader :compute_repository_access_token_status + ## + # RPC-specific configuration for `fetch_remote_branches` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_remote_branches + ## + # RPC-specific configuration for `list_workspaces` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workspaces + ## + # RPC-specific configuration for `get_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workspace + ## + # RPC-specific configuration for `create_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workspace + ## + # RPC-specific configuration for `delete_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workspace + ## + # RPC-specific configuration for `install_npm_packages` + # @return [::Gapic::Config::Method] + # + attr_reader :install_npm_packages + ## + # RPC-specific configuration for `pull_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :pull_git_commits + ## + # RPC-specific configuration for `push_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :push_git_commits + ## + # RPC-specific configuration for `fetch_file_git_statuses` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_git_statuses + ## + # RPC-specific configuration for `fetch_git_ahead_behind` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_git_ahead_behind + ## + # RPC-specific configuration for `commit_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_workspace_changes + ## + # RPC-specific configuration for `reset_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :reset_workspace_changes + ## + # RPC-specific configuration for `fetch_file_diff` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_diff + ## + # RPC-specific configuration for `query_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_directory_contents + ## + # RPC-specific configuration for `search_files` + # @return [::Gapic::Config::Method] + # + attr_reader :search_files + ## + # RPC-specific configuration for `make_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :make_directory + ## + # RPC-specific configuration for `remove_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_directory + ## + # RPC-specific configuration for `move_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :move_directory + ## + # RPC-specific configuration for `read_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_file + ## + # RPC-specific configuration for `remove_file` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_file + ## + # RPC-specific configuration for `move_file` + # @return [::Gapic::Config::Method] + # + attr_reader :move_file + ## + # RPC-specific configuration for `write_file` + # @return [::Gapic::Config::Method] + # + attr_reader :write_file + ## + # RPC-specific configuration for `list_release_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_release_configs + ## + # RPC-specific configuration for `get_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release_config + ## + # RPC-specific configuration for `create_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release_config + ## + # RPC-specific configuration for `update_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release_config + ## + # RPC-specific configuration for `delete_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release_config + ## + # RPC-specific configuration for `list_compilation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :list_compilation_results + ## + # RPC-specific configuration for `get_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :get_compilation_result + ## + # RPC-specific configuration for `create_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :create_compilation_result + ## + # RPC-specific configuration for `query_compilation_result_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_compilation_result_actions + ## + # RPC-specific configuration for `list_workflow_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_configs + ## + # RPC-specific configuration for `get_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_config + ## + # RPC-specific configuration for `create_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_config + ## + # RPC-specific configuration for `update_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_workflow_config + ## + # RPC-specific configuration for `delete_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_config + ## + # RPC-specific configuration for `list_workflow_invocations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_invocations + ## + # RPC-specific configuration for `get_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_invocation + ## + # RPC-specific configuration for `create_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_invocation + ## + # RPC-specific configuration for `delete_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_invocation + ## + # RPC-specific configuration for `cancel_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_workflow_invocation + ## + # RPC-specific configuration for `query_workflow_invocation_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_workflow_invocation_actions + ## + # RPC-specific configuration for `get_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_config + ## + # RPC-specific configuration for `update_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + + # @private + def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config + list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories + @list_repositories = ::Gapic::Config::Method.new list_repositories_config + get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository + @get_repository = ::Gapic::Config::Method.new get_repository_config + create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository + @create_repository = ::Gapic::Config::Method.new create_repository_config + update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository + @update_repository = ::Gapic::Config::Method.new update_repository_config + delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository + @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config + commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes + @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config + read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file + @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config + query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents + @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config + fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history + @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config + compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status + @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config + fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches + @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config + list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces + @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config + get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace + @get_workspace = ::Gapic::Config::Method.new get_workspace_config + create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace + @create_workspace = ::Gapic::Config::Method.new create_workspace_config + delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace + @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config + install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages + @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config + pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits + @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config + push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits + @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config + fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses + @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config + fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind + @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config + commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes + @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config + reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes + @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config + fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff + @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config + query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents + @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config + search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files + @search_files = ::Gapic::Config::Method.new search_files_config + make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory + @make_directory = ::Gapic::Config::Method.new make_directory_config + remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory + @remove_directory = ::Gapic::Config::Method.new remove_directory_config + move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory + @move_directory = ::Gapic::Config::Method.new move_directory_config + read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file + @read_file = ::Gapic::Config::Method.new read_file_config + remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file + @remove_file = ::Gapic::Config::Method.new remove_file_config + move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file + @move_file = ::Gapic::Config::Method.new move_file_config + write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file + @write_file = ::Gapic::Config::Method.new write_file_config + list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs + @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config + get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config + @get_release_config = ::Gapic::Config::Method.new get_release_config_config + create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config + @create_release_config = ::Gapic::Config::Method.new create_release_config_config + update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config + @update_release_config = ::Gapic::Config::Method.new update_release_config_config + delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config + @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config + list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results + @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config + get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result + @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config + create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result + @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config + query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions + @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config + list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs + @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config + get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config + @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config + create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config + @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config + update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config + @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config + delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config + @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config + list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations + @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config + get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation + @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config + create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation + @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config + delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation + @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config + cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation + @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config + query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions + @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config + get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config + @get_config = ::Gapic::Config::Method.new get_config_config + update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config + @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb new file mode 100644 index 000000000000..a1cc0ba6afef --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Credentials for the Dataform API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb new file mode 100644 index 000000000000..8944966e5175 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb @@ -0,0 +1,841 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Dataform Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb new file mode 100644 index 000000000000..591bf0ee5afa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb @@ -0,0 +1,311 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataform + module V1 + module Dataform + # Path helper methods for the Dataform API. + module Paths + ## + # Create a fully-qualified CompilationResult resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param compilation_result [String] + # + # @return [::String] + def compilation_result_path project:, location:, repository:, compilation_result: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}" + end + + ## + # Create a fully-qualified Config resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/config` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def config_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}/config" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified CryptoKeyVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # @param crypto_key_version [String] + # + # @return [::String] + def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" + end + + ## + # Create a fully-qualified Folder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/folders/{folder}` + # + # @param project [String] + # @param location [String] + # @param folder [String] + # + # @return [::String] + def folder_path project:, location:, folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/folders/#{folder}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified NotebookRuntimeTemplate resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + # + # @param project [String] + # @param location [String] + # @param notebook_runtime_template [String] + # + # @return [::String] + def notebook_runtime_template_path project:, location:, notebook_runtime_template: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}" + end + + ## + # Create a fully-qualified ReleaseConfig resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param release_config [String] + # + # @return [::String] + def release_config_path project:, location:, repository:, release_config: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}" + end + + ## + # Create a fully-qualified Repository resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # + # @return [::String] + def repository_path project:, location:, repository: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}" + end + + ## + # Create a fully-qualified SecretVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/secrets/{secret}/versions/{version}` + # + # @param project [String] + # @param secret [String] + # @param version [String] + # + # @return [::String] + def secret_version_path project:, secret:, version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" + + "projects/#{project}/secrets/#{secret}/versions/#{version}" + end + + ## + # Create a fully-qualified TeamFolder resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/teamFolders/{team_folder}` + # + # @param project [String] + # @param location [String] + # @param team_folder [String] + # + # @return [::String] + def team_folder_path project:, location:, team_folder: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/teamFolders/#{team_folder}" + end + + ## + # Create a fully-qualified WorkflowConfig resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workflow_config [String] + # + # @return [::String] + def workflow_config_path project:, location:, repository:, workflow_config: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}" + end + + ## + # Create a fully-qualified WorkflowInvocation resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workflow_invocation [String] + # + # @return [::String] + def workflow_invocation_path project:, location:, repository:, workflow_invocation: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}" + end + + ## + # Create a fully-qualified Workspace resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}` + # + # @param project [String] + # @param location [String] + # @param repository [String] + # @param workspace [String] + # + # @return [::String] + def workspace_path project:, location:, repository:, workspace: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" + + "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}" + end + + extend self + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb new file mode 100644 index 000000000000..01b9b9f1cbed --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" +require "google/cloud/dataform/v1/bindings_override" + +require "google/cloud/dataform/v1/dataform/credentials" +require "google/cloud/dataform/v1/dataform/paths" +require "google/cloud/dataform/v1/dataform/rest/operations" +require "google/cloud/dataform/v1/dataform/rest/client" + +module Google + module Cloud + module Dataform + module V1 + ## + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataform/v1/dataform/rest" + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + module Dataform + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataform/v1/dataform/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb new file mode 100644 index 000000000000..b3bb6824d285 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb @@ -0,0 +1,7248 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform/rest/service_stub" +require "google/cloud/location/rest" +require "google/iam/v1/rest" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + ## + # REST client for the Dataform service. + # + # Dataform is a service to develop, create, document, test, and update curated + # tables in BigQuery. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :dataform_stub + + ## + # Configure the Dataform Client class. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Dataform clients + # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataform", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @dataform_stub.universe_domain + end + + ## + # Create a new Dataform REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Dataform client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @dataform_stub = ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @dataform_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @dataform_stub.endpoint + config.universe_domain = @dataform_stub.universe_domain + config.logger = @dataform_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::Dataform::V1::Dataform::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @dataform_stub.logger + end + + # Service calls + + ## + # Fetches a single TeamFolder. + # + # @overload get_team_folder(request, options = nil) + # Pass arguments to `get_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_team_folder(name: nil) + # Pass arguments to `get_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + # + # # Call the get_team_folder method. + # result = client.get_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def get_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new TeamFolder in a given project and location. + # + # @overload create_team_folder(request, options = nil) + # Pass arguments to `create_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_team_folder(parent: nil, team_folder: nil) + # Pass arguments to `create_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The TeamFolder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + # + # # Call the create_team_folder method. + # result = client.create_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def create_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single TeamFolder. + # + # @overload update_team_folder(request, options = nil) + # Pass arguments to `update_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_team_folder(update_mask: nil, team_folder: nil) + # Pass arguments to `update_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] + # Required. The updated TeamFolder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + # + # # Call the update_team_folder method. + # result = client.update_team_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + # p result + # + def update_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single TeamFolder. + # + # @overload delete_team_folder(request, options = nil) + # Pass arguments to `delete_team_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder(name: nil) + # Pass arguments to `delete_team_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + # + # # Call the delete_team_folder method. + # result = client.delete_team_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_team_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_team_folder_tree(request, options = nil) + # Pass arguments to `delete_team_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_team_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + # + # # Call the delete_team_folder_tree method. + # result = client.delete_team_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_team_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_team_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given TeamFolder. + # + # @overload query_team_folder_contents(request, options = nil) + # Pass arguments to `query_team_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param team_folder [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + # + # # Call the query_team_folder_contents method. + # result = client.query_team_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + # p item + # end + # + def query_team_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_team_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_team_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all TeamFolders in a given location that the caller has access to + # and match the provided filter. + # + # @overload search_team_folders(request, options = nil) + # Pass arguments to `search_team_folders` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `search_team_folders` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + # + # # Call the search_team_folders method. + # result = client.search_team_folders request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + # p item + # end + # + def search_team_folders request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_team_folders.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_team_folders.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.search_team_folders request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Folder. + # + # @overload get_folder(request, options = nil) + # Pass arguments to `get_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_folder(name: nil) + # Pass arguments to `get_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetFolderRequest.new + # + # # Call the get_folder method. + # result = client.get_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def get_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Folder in a given project and location. + # + # @overload create_folder(request, options = nil) + # Pass arguments to `create_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_folder(parent: nil, folder: nil) + # Pass arguments to `create_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The Folder to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + # + # # Call the create_folder method. + # result = client.create_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def create_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Folder. + # + # @overload update_folder(request, options = nil) + # Pass arguments to `update_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_folder(update_mask: nil, folder: nil) + # Pass arguments to `update_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] + # Required. The updated Folder. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + # + # # Call the update_folder method. + # result = client.update_folder request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Folder. + # p result + # + def update_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Folder. + # + # @overload delete_folder(request, options = nil) + # Pass arguments to `delete_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder(name: nil) + # Pass arguments to `delete_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + # + # # Call the delete_folder method. + # result = client.delete_folder request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Folder with its contents (Folders, Repositories, Workspaces, + # ReleaseConfigs, and WorkflowConfigs). + # + # @overload delete_folder_tree(request, options = nil) + # Pass arguments to `delete_folder_tree` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_folder_tree(name: nil, force: nil) + # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @param force [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + # + # # Call the delete_folder_tree method. + # result = client.delete_folder_tree request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_folder_tree request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_folder_tree.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_folder_tree request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Folder. + # + # @overload query_folder_contents(request, options = nil) + # Pass arguments to `query_folder_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_folder_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param folder [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + # + # # Call the query_folder_contents method. + # result = client.query_folder_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + # p item + # end + # + def query_folder_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_folder_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_folder_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_folder_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a caller's root folder in a given location. + # The root folder contains all resources that are created by the user and not + # contained in any other folder. + # + # @overload query_user_root_contents(request, options = nil) + # Pass arguments to `query_user_root_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param location [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param order_by [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @param filter [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + # + # # Call the query_user_root_contents method. + # result = client.query_user_root_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + # p item + # end + # + def query_user_root_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_user_root_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_user_root_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Folder to a new Folder, TeamFolder, or the root location. + # + # @overload move_folder(request, options = nil) + # Pass arguments to `move_folder` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_folder(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_folder` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the Folder to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + # + # # Call the move_folder method. + # result = client.move_folder request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_folder request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_folder.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_folder.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_folder.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_folder request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Repositories in a given project and location. + # + # **Note:** *This method can return repositories not shown in the [Dataform + # UI](https://console.cloud.google.com/bigquery/dataform)*. + # + # @overload list_repositories(request, options = nil) + # Pass arguments to `list_repositories` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_repositories` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @param page_size [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + # + # # Call the list_repositories method. + # result = client.list_repositories request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + # p item + # end + # + def list_repositories request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_repositories.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_repositories.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_repositories request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_repositories, "repositories", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Repository. + # + # @overload get_repository(request, options = nil) + # Pass arguments to `get_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_repository(name: nil) + # Pass arguments to `get_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + # + # # Call the get_repository method. + # result = client.get_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def get_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Repository in a given project and location. + # + # @overload create_repository(request, options = nil) + # Pass arguments to `create_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_repository(parent: nil, repository: nil, repository_id: nil) + # Pass arguments to `create_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to create. + # @param repository_id [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + # + # # Call the create_repository method. + # result = client.create_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def create_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Repository. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_repository(request, options = nil) + # Pass arguments to `update_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_repository(update_mask: nil, repository: nil) + # Pass arguments to `update_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] + # Required. The repository to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + # + # # Call the update_repository method. + # result = client.update_repository request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Repository. + # p result + # + def update_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Repository. + # + # @overload delete_repository(request, options = nil) + # Pass arguments to `delete_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_repository(name: nil, force: nil) + # Pass arguments to `delete_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param force [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + # + # # Call the delete_repository method. + # result = client.delete_repository request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_repository request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a Repository to a new location. + # + # @overload move_repository(request, options = nil) + # Pass arguments to `move_repository` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_repository(name: nil, destination_containing_folder: nil) + # Pass arguments to `move_repository` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The full resource name of the repository to move. + # @param destination_containing_folder [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + # + # # Call the move_repository method. + # result = client.move_repository request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def move_repository request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_repository.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_repository.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_repository.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_repository request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit to a Repository. The Repository must not have a value + # for `git_remote_settings.url`. + # + # @overload commit_repository_changes(request, options = nil) + # Pass arguments to `commit_repository_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) + # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] + # Required. The changes to commit to the repository. + # @param required_head_commit_sha [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + # + # # Call the commit_repository_changes method. + # result = client.commit_repository_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + # p result + # + def commit_repository_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.commit_repository_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.commit_repository_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Repository). The Repository + # must not have a value for `git_remote_settings.url`. + # + # @overload read_repository_file(request, options = nil) + # Pass arguments to `read_repository_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) + # Pass arguments to `read_repository_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @param path [::String] + # Required. Full file path to read including filename, from repository root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + # + # # Call the read_repository_file method. + # result = client.read_repository_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + # p result + # + def read_repository_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.read_repository_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.read_repository_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.read_repository_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Repository directory. The Repository must + # not have a value for `git_remote_settings.url`. + # + # @overload query_repository_directory_contents(request, options = nil) + # Pass arguments to `query_repository_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param commit_sha [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + # + # # Call the query_repository_directory_contents method. + # result = client.query_repository_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_repository_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_repository_directory_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's history of commits. The Repository must not have a + # value for `git_remote_settings.url`. + # + # @overload fetch_repository_history(request, options = nil) + # Pass arguments to `fetch_repository_history` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @param page_size [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + # + # # Call the fetch_repository_history method. + # result = client.fetch_repository_history request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + # p item + # end + # + def fetch_repository_history request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_repository_history.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_repository_history request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Computes a Repository's Git access token status. + # + # @overload compute_repository_access_token_status(request, options = nil) + # Pass arguments to `compute_repository_access_token_status` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload compute_repository_access_token_status(name: nil) + # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + # + # # Call the compute_repository_access_token_status method. + # result = client.compute_repository_access_token_status request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + # p result + # + def compute_repository_access_token_status request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.compute_repository_access_token_status request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a Repository's remote branches. + # + # @overload fetch_remote_branches(request, options = nil) + # Pass arguments to `fetch_remote_branches` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_remote_branches(name: nil) + # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The repository's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + # + # # Call the fetch_remote_branches method. + # result = client.fetch_remote_branches request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + # p result + # + def fetch_remote_branches request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_remote_branches.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_remote_branches request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Workspaces in a given Repository. + # + # @overload list_workspaces(request, options = nil) + # Pass arguments to `list_workspaces` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workspaces` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + # + # # Call the list_workspaces method. + # result = client.list_workspaces request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + # p item + # end + # + def list_workspaces request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workspaces.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workspaces.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workspaces request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workspaces, "workspaces", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single Workspace. + # + # @overload get_workspace(request, options = nil) + # Pass arguments to `get_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workspace(name: nil) + # Pass arguments to `get_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + # + # # Call the get_workspace method. + # result = client.get_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def get_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Workspace in a given Repository. + # + # @overload create_workspace(request, options = nil) + # Pass arguments to `create_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) + # Pass arguments to `create_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] + # Required. The workspace to create. + # @param workspace_id [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + # + # # Call the create_workspace method. + # result = client.create_workspace request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + # p result + # + def create_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Workspace. + # + # @overload delete_workspace(request, options = nil) + # Pass arguments to `delete_workspace` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workspace(name: nil) + # Pass arguments to `delete_workspace` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + # + # # Call the delete_workspace method. + # result = client.delete_workspace request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workspace request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workspace.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workspace.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workspace request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Installs dependency NPM packages (inside a Workspace). + # + # @overload install_npm_packages(request, options = nil) + # Pass arguments to `install_npm_packages` via a request object, either of type + # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload install_npm_packages(workspace: nil) + # Pass arguments to `install_npm_packages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + # + # # Call the install_npm_packages method. + # result = client.install_npm_packages request + # + # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + # p result + # + def install_npm_packages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.install_npm_packages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.install_npm_packages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.install_npm_packages request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pulls Git commits from the Repository's remote into a Workspace. + # + # @overload pull_git_commits(request, options = nil) + # Pass arguments to `pull_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) + # Pass arguments to `pull_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + # + # # Call the pull_git_commits method. + # result = client.pull_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + # p result + # + def pull_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.pull_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.pull_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.pull_git_commits request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Pushes Git commits from a Workspace to the Repository's remote. + # + # @overload push_git_commits(request, options = nil) + # Pass arguments to `push_git_commits` via a request object, either of type + # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload push_git_commits(name: nil, remote_branch: nil) + # Pass arguments to `push_git_commits` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + # + # # Call the push_git_commits method. + # result = client.push_git_commits request + # + # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + # p result + # + def push_git_commits request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.push_git_commits.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.push_git_commits.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.push_git_commits request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git statuses for the files in a Workspace. + # + # @overload fetch_file_git_statuses(request, options = nil) + # Pass arguments to `fetch_file_git_statuses` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_file_git_statuses(name: nil) + # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + # + # # Call the fetch_file_git_statuses method. + # result = client.fetch_file_git_statuses request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + # p result + # + def fetch_file_git_statuses request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_file_git_statuses request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git ahead/behind against a remote branch. + # + # @overload fetch_git_ahead_behind(request, options = nil) + # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) + # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param remote_branch [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + # + # # Call the fetch_git_ahead_behind method. + # result = client.fetch_git_ahead_behind request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + # p result + # + def fetch_git_ahead_behind request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_git_ahead_behind request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Applies a Git commit for uncommitted files in a Workspace. + # + # @overload commit_workspace_changes(request, options = nil) + # Pass arguments to `commit_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) + # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] + # Required. The commit's author. + # @param commit_message [::String] + # Optional. The commit's message. + # @param paths [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + # + # # Call the commit_workspace_changes method. + # result = client.commit_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + # p result + # + def commit_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.commit_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.commit_workspace_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Performs a Git reset for uncommitted files in a Workspace. + # + # @overload reset_workspace_changes(request, options = nil) + # Pass arguments to `reset_workspace_changes` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) + # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workspace's name. + # @param paths [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @param clean [::Boolean] + # Optional. If set to true, untracked files will be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + # + # # Call the reset_workspace_changes method. + # result = client.reset_workspace_changes request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + # p result + # + def reset_workspace_changes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.reset_workspace_changes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.reset_workspace_changes request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches Git diff for an uncommitted file in a Workspace. + # + # @overload fetch_file_diff(request, options = nil) + # Pass arguments to `fetch_file_diff` via a request object, either of type + # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload fetch_file_diff(workspace: nil, path: nil) + # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + # + # # Call the fetch_file_diff method. + # result = client.fetch_file_diff request + # + # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + # p result + # + def fetch_file_diff request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.fetch_file_diff.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.fetch_file_diff request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a given Workspace directory. + # + # @overload query_directory_contents(request, options = nil) + # Pass arguments to `query_directory_contents` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) + # Pass arguments to `query_directory_contents` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @param page_size [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @param page_token [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + # + # # Call the query_directory_contents method. + # result = client.query_directory_contents request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + # p item + # end + # + def query_directory_contents request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_directory_contents.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_directory_contents.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_directory_contents request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Finds the contents of a given Workspace directory by filter. + # + # @overload search_files(request, options = nil) + # Pass arguments to `search_files` via a request object, either of type + # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `search_files` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param page_size [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param filter [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + # + # # Call the search_files method. + # result = client.search_files request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + # p item + # end + # + def search_files request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_files.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_files.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_files.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.search_files request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_files, "search_results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a directory inside a Workspace. + # + # @overload make_directory(request, options = nil) + # Pass arguments to `make_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload make_directory(workspace: nil, path: nil) + # Pass arguments to `make_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + # + # # Call the make_directory method. + # result = client.make_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + # p result + # + def make_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.make_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.make_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.make_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.make_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a directory (inside a Workspace) and all of its contents. + # + # @overload remove_directory(request, options = nil) + # Pass arguments to `remove_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload remove_directory(workspace: nil, path: nil) + # Pass arguments to `remove_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + # + # # Call the remove_directory method. + # result = client.remove_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + # p result + # + def remove_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.remove_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.remove_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.remove_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a directory (inside a Workspace), and all of its contents, to a new + # location. + # + # @overload move_directory(request, options = nil) + # Pass arguments to `move_directory` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_directory(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_directory` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @param new_path [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + # + # # Call the move_directory method. + # result = client.move_directory request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + # p result + # + def move_directory request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_directory.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_directory.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_directory.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_directory request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the contents of a file (inside a Workspace). + # + # @overload read_file(request, options = nil) + # Pass arguments to `read_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload read_file(workspace: nil, path: nil, revision: nil) + # Pass arguments to `read_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param revision [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ReadFileRequest.new + # + # # Call the read_file method. + # result = client.read_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + # p result + # + def read_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.read_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.read_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.read_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.read_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a file (inside a Workspace). + # + # @overload remove_file(request, options = nil) + # Pass arguments to `remove_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload remove_file(workspace: nil, path: nil) + # Pass arguments to `remove_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + # + # # Call the remove_file method. + # result = client.remove_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + # p result + # + def remove_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.remove_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.remove_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.remove_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.remove_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Moves a file (inside a Workspace) to a new location. + # + # @overload move_file(request, options = nil) + # Pass arguments to `move_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload move_file(workspace: nil, path: nil, new_path: nil) + # Pass arguments to `move_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @param new_path [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::MoveFileRequest.new + # + # # Call the move_file method. + # result = client.move_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + # p result + # + def move_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.move_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.move_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.move_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.move_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Writes to a file (inside a Workspace). + # + # @overload write_file(request, options = nil) + # Pass arguments to `write_file` via a request object, either of type + # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload write_file(workspace: nil, path: nil, contents: nil) + # Pass arguments to `write_file` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param workspace [::String] + # Required. The workspace's name. + # @param path [::String] + # Required. The file. + # @param contents [::String] + # Required. The file's contents. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::WriteFileRequest.new + # + # # Call the write_file method. + # result = client.write_file request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + # p result + # + def write_file request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.write_file.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.write_file.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.write_file.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.write_file request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ReleaseConfigs in a given Repository. + # + # @overload list_release_configs(request, options = nil) + # Pass arguments to `list_release_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_release_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + # + # # Call the list_release_configs method. + # result = client.list_release_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + # p item + # end + # + def list_release_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_release_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_release_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_release_configs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_release_configs, "release_configs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single ReleaseConfig. + # + # @overload get_release_config(request, options = nil) + # Pass arguments to `get_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_release_config(name: nil) + # Pass arguments to `get_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + # + # # Call the get_release_config method. + # result = client.get_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def get_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ReleaseConfig in a given Repository. + # + # @overload create_release_config(request, options = nil) + # Pass arguments to `create_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) + # Pass arguments to `create_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to create. + # @param release_config_id [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + # + # # Call the create_release_config method. + # result = client.create_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def create_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single ReleaseConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_release_config(request, options = nil) + # Pass arguments to `update_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_release_config(update_mask: nil, release_config: nil) + # Pass arguments to `update_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] + # Required. The release config to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + # + # # Call the update_release_config method. + # result = client.update_release_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + # p result + # + def update_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ReleaseConfig. + # + # @overload delete_release_config(request, options = nil) + # Pass arguments to `delete_release_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_release_config(name: nil) + # Pass arguments to `delete_release_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The release config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + # + # # Call the delete_release_config method. + # result = client.delete_release_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_release_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_release_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_release_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_release_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CompilationResults in a given Repository. + # + # @overload list_compilation_results(request, options = nil) + # Pass arguments to `list_compilation_results` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_compilation_results` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + # + # # Call the list_compilation_results method. + # result = client.list_compilation_results request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + # p item + # end + # + def list_compilation_results request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_compilation_results.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_compilation_results.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_compilation_results request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_compilation_results, "compilation_results", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single CompilationResult. + # + # @overload get_compilation_result(request, options = nil) + # Pass arguments to `get_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_compilation_result(name: nil) + # Pass arguments to `get_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + # + # # Call the get_compilation_result method. + # result = client.get_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def get_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_compilation_result request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new CompilationResult in a given project and location. + # + # @overload create_compilation_result(request, options = nil) + # Pass arguments to `create_compilation_result` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_compilation_result(parent: nil, compilation_result: nil) + # Pass arguments to `create_compilation_result` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] + # Required. The compilation result to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + # + # # Call the create_compilation_result method. + # result = client.create_compilation_result request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + # p result + # + def create_compilation_result request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_compilation_result.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_compilation_result.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_compilation_result request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns CompilationResultActions in a given CompilationResult. + # + # @overload query_compilation_result_actions(request, options = nil) + # Pass arguments to `query_compilation_result_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The compilation result's name. + # @param page_size [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @param filter [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + # + # # Call the query_compilation_result_actions method. + # result = client.query_compilation_result_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + # p item + # end + # + def query_compilation_result_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_compilation_result_actions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowConfigs in a given Repository. + # + # @overload list_workflow_configs(request, options = nil) + # Pass arguments to `list_workflow_configs` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + # + # # Call the list_workflow_configs method. + # result = client.list_workflow_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + # p item + # end + # + def list_workflow_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workflow_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workflow_configs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_configs, "workflow_configs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowConfig. + # + # @overload get_workflow_config(request, options = nil) + # Pass arguments to `get_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workflow_config(name: nil) + # Pass arguments to `get_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + # + # # Call the get_workflow_config method. + # result = client.get_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def get_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowConfig in a given Repository. + # + # @overload create_workflow_config(request, options = nil) + # Pass arguments to `create_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) + # Pass arguments to `create_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to create. + # @param workflow_config_id [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + # + # # Call the create_workflow_config method. + # result = client.create_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def create_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single WorkflowConfig. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_workflow_config(request, options = nil) + # Pass arguments to `update_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_workflow_config(update_mask: nil, workflow_config: nil) + # Pass arguments to `update_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] + # Required. The workflow config to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + # + # # Call the update_workflow_config method. + # result = client.update_workflow_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + # p result + # + def update_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowConfig. + # + # @overload delete_workflow_config(request, options = nil) + # Pass arguments to `delete_workflow_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workflow_config(name: nil) + # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow config's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + # + # # Call the delete_workflow_config method. + # result = client.delete_workflow_config request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workflow_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workflow_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists WorkflowInvocations in a given Repository. + # + # @overload list_workflow_invocations(request, options = nil) + # Pass arguments to `list_workflow_invocations` via a request object, either of type + # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) + # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @param order_by [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @param filter [::String] + # Optional. Filter for the returned list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + # + # # Call the list_workflow_invocations method. + # result = client.list_workflow_invocations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + # p item + # end + # + def list_workflow_invocations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_workflow_invocations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.list_workflow_invocations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, "workflow_invocations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Fetches a single WorkflowInvocation. + # + # @overload get_workflow_invocation(request, options = nil) + # Pass arguments to `get_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_workflow_invocation(name: nil) + # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + # + # # Call the get_workflow_invocation method. + # result = client.get_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def get_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new WorkflowInvocation in a given Repository. + # + # @overload create_workflow_invocation(request, options = nil) + # Pass arguments to `create_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) + # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] + # Required. The workflow invocation resource to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + # + # # Call the create_workflow_invocation method. + # result = client.create_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + # p result + # + def create_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.create_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single WorkflowInvocation. + # + # @overload delete_workflow_invocation(request, options = nil) + # Pass arguments to `delete_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_workflow_invocation(name: nil) + # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + # + # # Call the delete_workflow_invocation method. + # result = client.delete_workflow_invocation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.delete_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests cancellation of a running WorkflowInvocation. + # + # @overload cancel_workflow_invocation(request, options = nil) + # Pass arguments to `cancel_workflow_invocation` via a request object, either of type + # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_workflow_invocation(name: nil) + # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation resource's name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + # + # # Call the cancel_workflow_invocation method. + # result = client.cancel_workflow_invocation request + # + # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + # p result + # + def cancel_workflow_invocation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.cancel_workflow_invocation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns WorkflowInvocationActions in a given WorkflowInvocation. + # + # @overload query_workflow_invocation_actions(request, options = nil) + # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type + # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) + # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The workflow invocation's name. + # @param page_size [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @param page_token [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + # + # # Call the query_workflow_invocation_actions method. + # result = client.query_workflow_invocation_actions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + # p item + # end + # + def query_workflow_invocation_actions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.query_workflow_invocation_actions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get default config for a given project and location. + # + # @overload get_config(request, options = nil) + # Pass arguments to `get_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_config(name: nil) + # Pass arguments to `get_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The config name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::GetConfigRequest.new + # + # # Call the get_config method. + # result = client.get_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def get_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Update default config for a given project and location. + # + # **Note:** *This method does not fully implement + # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated + # as a bad request, and when the `field_mask` is omitted, the request is + # treated as a full update on all modifiable fields.* + # + # @overload update_config(request, options = nil) + # Pass arguments to `update_config` via a request object, either of type + # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_config(config: nil, update_mask: nil) + # Pass arguments to `update_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] + # Required. The config to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. Specifies the fields to be updated in the config. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + # + # # Call the update_config method. + # result = client.update_config request + # + # # The returned object is of type Google::Cloud::Dataform::V1::Config. + # p result + # + def update_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.update_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the access control policy for a resource. + # Returns an empty policy if the resource exists and does not have a policy + # set. + # + # @overload get_iam_policy(request, options = nil) + # Pass arguments to `get_iam_policy` via a request object, either of type + # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_iam_policy(resource: nil, options: nil) + # Pass arguments to `get_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being requested. + # See the operation documentation for the appropriate value for this field. + # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] + # OPTIONAL: A `GetPolicyOptions` object for specifying options to + # `GetIamPolicy`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::GetIamPolicyRequest.new + # + # # Call the get_iam_policy method. + # result = client.get_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def get_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.get_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Sets the access control policy on the specified resource. Replaces any + # existing policy. + # + # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # + # @overload set_iam_policy(request, options = nil) + # Pass arguments to `set_iam_policy` via a request object, either of type + # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) + # Pass arguments to `set_iam_policy` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy is being specified. + # See the operation documentation for the appropriate value for this field. + # @param policy [::Google::Iam::V1::Policy, ::Hash] + # REQUIRED: The complete policy to be applied to the `resource`. The size of + # the policy is limited to a few 10s of KB. An empty policy is a + # valid policy but certain Cloud Platform services (such as Projects) + # might reject them. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only + # the fields in the mask will be modified. If no mask is provided, the + # following default mask is used: + # + # `paths: "bindings, etag"` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::SetIamPolicyRequest.new + # + # # Call the set_iam_policy method. + # result = client.set_iam_policy request + # + # # The returned object is of type Google::Iam::V1::Policy. + # p result + # + def set_iam_policy request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.set_iam_policy.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.set_iam_policy.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.set_iam_policy request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # 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. + # + # @overload test_iam_permissions(request, options = nil) + # Pass arguments to `test_iam_permissions` via a request object, either of type + # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. + # + # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload test_iam_permissions(resource: nil, permissions: nil) + # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param resource [::String] + # REQUIRED: The resource for which the policy detail is being requested. + # See the operation documentation for the appropriate value for this field. + # @param permissions [::Array<::String>] + # The set of permissions to check for the `resource`. Permissions with + # wildcards (such as '*' or 'storage.*') are not allowed. For more + # information see + # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataform/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Iam::V1::TestIamPermissionsRequest.new + # + # # Call the test_iam_permissions method. + # result = client.test_iam_permissions request + # + # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + # p result + # + def test_iam_permissions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.test_iam_permissions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @dataform_stub.test_iam_permissions request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Dataform REST API. + # + # This class represents the configuration for Dataform REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_team_folder to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_team_folder.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + # Overrides for http bindings for the RPCs of this service + # are only used when this service is used as mixin, and only + # by the host service. + # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] + config_attr :bindings_override, {}, ::Hash, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Dataform API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_team_folder + ## + # RPC-specific configuration for `create_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_team_folder + ## + # RPC-specific configuration for `update_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_team_folder + ## + # RPC-specific configuration for `delete_team_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder + ## + # RPC-specific configuration for `delete_team_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_team_folder_tree + ## + # RPC-specific configuration for `query_team_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_team_folder_contents + ## + # RPC-specific configuration for `search_team_folders` + # @return [::Gapic::Config::Method] + # + attr_reader :search_team_folders + ## + # RPC-specific configuration for `get_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :get_folder + ## + # RPC-specific configuration for `create_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :create_folder + ## + # RPC-specific configuration for `update_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :update_folder + ## + # RPC-specific configuration for `delete_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder + ## + # RPC-specific configuration for `delete_folder_tree` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_folder_tree + ## + # RPC-specific configuration for `query_folder_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_folder_contents + ## + # RPC-specific configuration for `query_user_root_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_user_root_contents + ## + # RPC-specific configuration for `move_folder` + # @return [::Gapic::Config::Method] + # + attr_reader :move_folder + ## + # RPC-specific configuration for `list_repositories` + # @return [::Gapic::Config::Method] + # + attr_reader :list_repositories + ## + # RPC-specific configuration for `get_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :get_repository + ## + # RPC-specific configuration for `create_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :create_repository + ## + # RPC-specific configuration for `update_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :update_repository + ## + # RPC-specific configuration for `delete_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_repository + ## + # RPC-specific configuration for `move_repository` + # @return [::Gapic::Config::Method] + # + attr_reader :move_repository + ## + # RPC-specific configuration for `commit_repository_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_repository_changes + ## + # RPC-specific configuration for `read_repository_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_repository_file + ## + # RPC-specific configuration for `query_repository_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_repository_directory_contents + ## + # RPC-specific configuration for `fetch_repository_history` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_repository_history + ## + # RPC-specific configuration for `compute_repository_access_token_status` + # @return [::Gapic::Config::Method] + # + attr_reader :compute_repository_access_token_status + ## + # RPC-specific configuration for `fetch_remote_branches` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_remote_branches + ## + # RPC-specific configuration for `list_workspaces` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workspaces + ## + # RPC-specific configuration for `get_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workspace + ## + # RPC-specific configuration for `create_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workspace + ## + # RPC-specific configuration for `delete_workspace` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workspace + ## + # RPC-specific configuration for `install_npm_packages` + # @return [::Gapic::Config::Method] + # + attr_reader :install_npm_packages + ## + # RPC-specific configuration for `pull_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :pull_git_commits + ## + # RPC-specific configuration for `push_git_commits` + # @return [::Gapic::Config::Method] + # + attr_reader :push_git_commits + ## + # RPC-specific configuration for `fetch_file_git_statuses` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_git_statuses + ## + # RPC-specific configuration for `fetch_git_ahead_behind` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_git_ahead_behind + ## + # RPC-specific configuration for `commit_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :commit_workspace_changes + ## + # RPC-specific configuration for `reset_workspace_changes` + # @return [::Gapic::Config::Method] + # + attr_reader :reset_workspace_changes + ## + # RPC-specific configuration for `fetch_file_diff` + # @return [::Gapic::Config::Method] + # + attr_reader :fetch_file_diff + ## + # RPC-specific configuration for `query_directory_contents` + # @return [::Gapic::Config::Method] + # + attr_reader :query_directory_contents + ## + # RPC-specific configuration for `search_files` + # @return [::Gapic::Config::Method] + # + attr_reader :search_files + ## + # RPC-specific configuration for `make_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :make_directory + ## + # RPC-specific configuration for `remove_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_directory + ## + # RPC-specific configuration for `move_directory` + # @return [::Gapic::Config::Method] + # + attr_reader :move_directory + ## + # RPC-specific configuration for `read_file` + # @return [::Gapic::Config::Method] + # + attr_reader :read_file + ## + # RPC-specific configuration for `remove_file` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_file + ## + # RPC-specific configuration for `move_file` + # @return [::Gapic::Config::Method] + # + attr_reader :move_file + ## + # RPC-specific configuration for `write_file` + # @return [::Gapic::Config::Method] + # + attr_reader :write_file + ## + # RPC-specific configuration for `list_release_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_release_configs + ## + # RPC-specific configuration for `get_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_release_config + ## + # RPC-specific configuration for `create_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_release_config + ## + # RPC-specific configuration for `update_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_release_config + ## + # RPC-specific configuration for `delete_release_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_release_config + ## + # RPC-specific configuration for `list_compilation_results` + # @return [::Gapic::Config::Method] + # + attr_reader :list_compilation_results + ## + # RPC-specific configuration for `get_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :get_compilation_result + ## + # RPC-specific configuration for `create_compilation_result` + # @return [::Gapic::Config::Method] + # + attr_reader :create_compilation_result + ## + # RPC-specific configuration for `query_compilation_result_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_compilation_result_actions + ## + # RPC-specific configuration for `list_workflow_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_configs + ## + # RPC-specific configuration for `get_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_config + ## + # RPC-specific configuration for `create_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_config + ## + # RPC-specific configuration for `update_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_workflow_config + ## + # RPC-specific configuration for `delete_workflow_config` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_config + ## + # RPC-specific configuration for `list_workflow_invocations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_workflow_invocations + ## + # RPC-specific configuration for `get_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_workflow_invocation + ## + # RPC-specific configuration for `create_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_workflow_invocation + ## + # RPC-specific configuration for `delete_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_workflow_invocation + ## + # RPC-specific configuration for `cancel_workflow_invocation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_workflow_invocation + ## + # RPC-specific configuration for `query_workflow_invocation_actions` + # @return [::Gapic::Config::Method] + # + attr_reader :query_workflow_invocation_actions + ## + # RPC-specific configuration for `get_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_config + ## + # RPC-specific configuration for `update_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_config + ## + # RPC-specific configuration for `get_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :get_iam_policy + ## + # RPC-specific configuration for `set_iam_policy` + # @return [::Gapic::Config::Method] + # + attr_reader :set_iam_policy + ## + # RPC-specific configuration for `test_iam_permissions` + # @return [::Gapic::Config::Method] + # + attr_reader :test_iam_permissions + + # @private + def initialize parent_rpcs = nil + get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder + @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config + create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder + @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config + update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder + @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config + delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder + @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config + delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree + @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config + query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents + @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config + search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders + @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config + get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder + @get_folder = ::Gapic::Config::Method.new get_folder_config + create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder + @create_folder = ::Gapic::Config::Method.new create_folder_config + update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder + @update_folder = ::Gapic::Config::Method.new update_folder_config + delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder + @delete_folder = ::Gapic::Config::Method.new delete_folder_config + delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree + @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config + query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents + @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config + query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents + @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config + move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder + @move_folder = ::Gapic::Config::Method.new move_folder_config + list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories + @list_repositories = ::Gapic::Config::Method.new list_repositories_config + get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository + @get_repository = ::Gapic::Config::Method.new get_repository_config + create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository + @create_repository = ::Gapic::Config::Method.new create_repository_config + update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository + @update_repository = ::Gapic::Config::Method.new update_repository_config + delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository + @delete_repository = ::Gapic::Config::Method.new delete_repository_config + move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository + @move_repository = ::Gapic::Config::Method.new move_repository_config + commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes + @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config + read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file + @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config + query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents + @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config + fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history + @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config + compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status + @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config + fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches + @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config + list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces + @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config + get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace + @get_workspace = ::Gapic::Config::Method.new get_workspace_config + create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace + @create_workspace = ::Gapic::Config::Method.new create_workspace_config + delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace + @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config + install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages + @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config + pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits + @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config + push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits + @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config + fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses + @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config + fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind + @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config + commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes + @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config + reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes + @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config + fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff + @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config + query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents + @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config + search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files + @search_files = ::Gapic::Config::Method.new search_files_config + make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory + @make_directory = ::Gapic::Config::Method.new make_directory_config + remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory + @remove_directory = ::Gapic::Config::Method.new remove_directory_config + move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory + @move_directory = ::Gapic::Config::Method.new move_directory_config + read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file + @read_file = ::Gapic::Config::Method.new read_file_config + remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file + @remove_file = ::Gapic::Config::Method.new remove_file_config + move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file + @move_file = ::Gapic::Config::Method.new move_file_config + write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file + @write_file = ::Gapic::Config::Method.new write_file_config + list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs + @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config + get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config + @get_release_config = ::Gapic::Config::Method.new get_release_config_config + create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config + @create_release_config = ::Gapic::Config::Method.new create_release_config_config + update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config + @update_release_config = ::Gapic::Config::Method.new update_release_config_config + delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config + @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config + list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results + @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config + get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result + @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config + create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result + @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config + query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions + @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config + list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs + @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config + get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config + @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config + create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config + @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config + update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config + @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config + delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config + @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config + list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations + @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config + get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation + @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config + create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation + @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config + delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation + @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config + cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation + @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config + query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions + @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config + get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config + @get_config = ::Gapic::Config::Method.new get_config_config + update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config + @update_config = ::Gapic::Config::Method.new update_config_config + get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy + @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config + set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy + @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config + test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions + @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb new file mode 100644 index 000000000000..1576b6fb66dd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb @@ -0,0 +1,925 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Dataform Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Dataform Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = OperationsServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataform.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + + ## + # @private + # REST service stub for the Longrunning Operations API. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + class OperationsServiceStub + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb new file mode 100644 index 000000000000..1f799e9394cc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb @@ -0,0 +1,4636 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataform/v1/dataform_pb" + +module Google + module Cloud + module Dataform + module V1 + module Dataform + module Rest + ## + # REST service stub for the Dataform service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def get_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def create_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A result object deserialized from the server's reply + def update_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_team_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_team_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_team_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_team_folder_tree request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_team_folder_tree", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_team_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] + # A result object deserialized from the server's reply + def query_team_folder_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_team_folder_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_team_folder_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the search_team_folders REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] + # A result object deserialized from the server's reply + def search_team_folders request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_search_team_folders_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "search_team_folders", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def get_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def create_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Folder] + # A result object deserialized from the server's reply + def update_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_folder_tree request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_folder_tree", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] + # A result object deserialized from the server's reply + def query_folder_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_folder_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_folder_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_user_root_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] + # A result object deserialized from the server's reply + def query_user_root_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_user_root_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_user_root_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def move_folder request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_folder_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_folder", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_repositories REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] + # A result object deserialized from the server's reply + def list_repositories request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_repositories", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def get_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def create_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Repository] + # A result object deserialized from the server's reply + def update_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def move_repository request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_repository_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_repository", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the commit_repository_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] + # A result object deserialized from the server's reply + def commit_repository_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "commit_repository_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the read_repository_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] + # A result object deserialized from the server's reply + def read_repository_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "read_repository_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_repository_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] + # A result object deserialized from the server's reply + def query_repository_directory_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_repository_directory_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_repository_history REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] + # A result object deserialized from the server's reply + def fetch_repository_history request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_repository_history", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the compute_repository_access_token_status REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] + # A result object deserialized from the server's reply + def compute_repository_access_token_status request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "compute_repository_access_token_status", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_remote_branches REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] + # A result object deserialized from the server's reply + def fetch_remote_branches request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_remote_branches", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workspaces REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] + # A result object deserialized from the server's reply + def list_workspaces request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workspaces", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # A result object deserialized from the server's reply + def get_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Workspace] + # A result object deserialized from the server's reply + def create_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workspace request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workspace", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the install_npm_packages REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] + # A result object deserialized from the server's reply + def install_npm_packages request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "install_npm_packages", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the pull_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] + # A result object deserialized from the server's reply + def pull_git_commits request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "pull_git_commits", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the push_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] + # A result object deserialized from the server's reply + def push_git_commits request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "push_git_commits", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_file_git_statuses REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] + # A result object deserialized from the server's reply + def fetch_file_git_statuses request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_file_git_statuses", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_git_ahead_behind REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] + # A result object deserialized from the server's reply + def fetch_git_ahead_behind request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_git_ahead_behind", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the commit_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] + # A result object deserialized from the server's reply + def commit_workspace_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "commit_workspace_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the reset_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] + # A result object deserialized from the server's reply + def reset_workspace_changes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "reset_workspace_changes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the fetch_file_diff REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] + # A result object deserialized from the server's reply + def fetch_file_diff request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "fetch_file_diff", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] + # A result object deserialized from the server's reply + def query_directory_contents request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_directory_contents", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the search_files REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] + # A result object deserialized from the server's reply + def search_files request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "search_files", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the make_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] + # A result object deserialized from the server's reply + def make_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "make_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the remove_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] + # A result object deserialized from the server's reply + def remove_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "remove_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] + # A result object deserialized from the server's reply + def move_directory request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_directory", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the read_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] + # A result object deserialized from the server's reply + def read_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "read_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the remove_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] + # A result object deserialized from the server's reply + def remove_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "remove_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the move_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] + # A result object deserialized from the server's reply + def move_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "move_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the write_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] + # A result object deserialized from the server's reply + def write_file request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "write_file", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_release_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] + # A result object deserialized from the server's reply + def list_release_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_release_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def get_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def create_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # A result object deserialized from the server's reply + def update_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_release_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_release_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_compilation_results REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] + # A result object deserialized from the server's reply + def list_compilation_results request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_compilation_results", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def get_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # A result object deserialized from the server's reply + def create_compilation_result request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_compilation_result", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_compilation_result_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] + # A result object deserialized from the server's reply + def query_compilation_result_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_compilation_result_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] + # A result object deserialized from the server's reply + def list_workflow_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def get_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def create_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # A result object deserialized from the server's reply + def update_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_workflow_invocations REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] + # A result object deserialized from the server's reply + def list_workflow_invocations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_workflow_invocations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def get_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # A result object deserialized from the server's reply + def create_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] + # A result object deserialized from the server's reply + def cancel_workflow_invocation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_workflow_invocation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the query_workflow_invocation_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] + # A result object deserialized from the server's reply + def query_workflow_invocation_actions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "query_workflow_invocation_actions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def get_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataform::V1::Config] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataform::V1::Config] + # A result object deserialized from the server's reply + def update_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def get_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::Policy] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::Policy] + # A result object deserialized from the server's reply + def set_iam_policy request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "set_iam_policy", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Iam::V1::TestIamPermissionsResponse] + # A result object deserialized from the server's reply + def test_iam_permissions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "test_iam_permissions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/teamFolders", + body: "team_folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{team_folder.name}", + body: "team_folder", + matches: [ + ["team_folder.name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_team_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_team_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_team_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_team_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{team_folder}:queryContents", + matches: [ + ["team_folder", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_team_folders REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_team_folders_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}/teamFolders:search", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/folders", + body: "folder", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{folder.name}", + body: "folder", + matches: [ + ["folder.name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_folder_tree REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_folder_tree_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:deleteTree", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_folder_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_folder_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{folder}:queryFolderContents", + matches: [ + ["folder", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_user_root_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_user_root_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{location}:queryUserRootContents", + matches: [ + ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_folder REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_folder_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_repositories REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_repositories_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/repositories", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/repositories", + body: "repository", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{repository.name}", + body: "repository", + matches: [ + ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_repository REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_repository_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:move", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the commit_repository_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_commit_repository_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:commit", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the read_repository_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_read_repository_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:readFile", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_repository_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_repository_directory_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:queryDirectoryContents", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_repository_history REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_repository_history_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchHistory", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the compute_repository_access_token_status REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_compute_repository_access_token_status_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:computeAccessTokenStatus", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_remote_branches REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_remote_branches_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchRemoteBranches", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workspaces REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workspaces_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workspaces", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workspaces", + body: "workspace", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workspace REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workspace_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the install_npm_packages REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_install_npm_packages_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:installNpmPackages", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the pull_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_pull_git_commits_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:pull", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the push_git_commits REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_push_git_commits_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:push", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_file_git_statuses REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_file_git_statuses_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchFileGitStatuses", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_git_ahead_behind REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_git_ahead_behind_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:fetchGitAheadBehind", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the commit_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_commit_workspace_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:commit", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the reset_workspace_changes REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_reset_workspace_changes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:reset", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the fetch_file_diff REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_fetch_file_diff_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:fetchFileDiff", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_directory_contents REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_directory_contents_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:queryDirectoryContents", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_files REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_files_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:searchFiles", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the make_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_make_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:makeDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the remove_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_remove_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:removeDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_directory REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_directory_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:moveDirectory", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the read_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_read_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{workspace}:readFile", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the remove_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_remove_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:removeFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the move_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_move_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:moveFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the write_file REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_write_file_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{workspace}:writeFile", + body: "*", + matches: [ + ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_release_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_release_configs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/releaseConfigs", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/releaseConfigs", + body: "release_config", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{release_config.name}", + body: "release_config", + matches: [ + ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_release_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_release_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_compilation_results REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_compilation_results_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/compilationResults", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_compilation_result_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_compilation_result REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_compilation_result_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/compilationResults", + body: "compilation_result", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_compilation_result_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_compilation_result_actions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:query", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workflow_configs REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workflow_configs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workflowConfigs", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workflowConfigs", + body: "workflow_config", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{workflow_config.name}", + body: "workflow_config", + matches: [ + ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workflow_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workflow_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_workflow_invocations REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_workflow_invocations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/workflowInvocations", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/workflowInvocations", + body: "workflow_invocation", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_workflow_invocation REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_workflow_invocation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the query_workflow_invocation_actions REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_query_workflow_invocation_actions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}:query", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_config REST call + # + # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{config.name}", + body: "config", + matches: [ + ["config.name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{resource}:getIamPolicy", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the set_iam_policy REST call + # + # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_set_iam_policy_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:setIamPolicy", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the test_iam_permissions REST call + # + # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_test_iam_permissions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{resource}:testIamPermissions", + body: "*", + matches: [ + ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb new file mode 100644 index 000000000000..d0223b594bff --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb @@ -0,0 +1,216 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/dataform/v1/dataform.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/iam/v1/iam_policy_pb' +require 'google/iam/v1/policy_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' +require 'google/rpc/status_pb' +require 'google/type/interval_pb' + + +descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0e\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12#\n\x11\x63ontaining_folder\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\"\n\x10team_folder_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_containing_folderB\x13\n\x11_team_folder_nameB\x14\n\x12_internal_metadata\"3\n\x17PrivateResourceMetadata\x12\x18\n\x0buser_scoped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa4\x01\n\x15MoveRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xff\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\x8b\x04\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rdisable_moves\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x08 \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadataB\x10\n\x0e_disable_moves\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xe5\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x05 \x01(\x0e\x32/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x12\x43\n\x08metadata\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\n\x05\x65ntry\"h\n\x17\x46ilesystemEntryMetadata\x12\x17\n\nsize_bytes\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xca\x08\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x0c \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa3\x1e\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xae\x0b\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\n\nconnection\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x0ctable_format\x18\x10 \x01(\x0e\x32\x46.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xe0\x41\x01\x12_\n\x0b\x66ile_format\x18\x11 \x01(\x0e\x32\x45.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xe0\x41\x01\x12\x18\n\x0bstorage_uri\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\"8\n\x0bTableFormat\x12\x1c\n\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07ICEBERG\x10\x01\"6\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xdc\x03\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x0equery_priority\x18\t \x01(\x0e\x32\x38.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xe0\x41\x01H\x00\x88\x01\x01\"K\n\rQueryPriority\x12\x1e\n\x1aQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINTERACTIVE\x10\x01\x12\t\n\x05\x42\x41TCH\x10\x02\x42\x11\n\x0f_query_priority\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\x94\x08\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\n \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x02\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfigB\x14\n\x12_internal_metadata\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcf\x03\n\x06\x46older\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x63ontaining_folder\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10team_folder_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:n\xea\x41k\n\x1e\x64\x61taform.googleapis.com/Folder\x12\x38projects/{project}/locations/{location}/folders/{folder}*\x07\x66olders2\x06\x66olderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x87\x01\n\x13\x43reateFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"\x9c\x01\n\x11MoveFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"H\n\x10GetFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"\x82\x01\n\x13UpdateFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"K\n\x13\x44\x65leteFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"c\n\x17\x44\x65leteFolderTreeRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x1b\x44\x65leteTeamFolderTreeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe2\x02\n\x18\x44\x65leteFolderTreeMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\"[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xb1\x01\n\x1aQueryFolderContentsRequest\x12\x36\n\x06\x66older\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1bQueryFolderContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8e\x01\n\x13\x46olderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb8\x01\n\x1cQueryUserRootContentsRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1dQueryUserRootContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8c\x01\n\x11RootContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xab\x03\n\nTeamFolder\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n\"dataform.googleapis.com/TeamFolder\x12\x41projects/{project}/locations/{location}/teamFolders/{team_folder}*\x0bteamFolders2\nteamFolderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x94\x01\n\x17\x43reateTeamFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"P\n\x14GetTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\x8f\x01\n\x17UpdateTeamFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"S\n\x17\x44\x65leteTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\xbe\x01\n\x1eQueryTeamFolderContentsRequest\x12?\n\x0bteam_folder\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb3\x02\n\x1fQueryTeamFolderContentsResponse\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x92\x01\n\x17TeamFolderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb4\x01\n\x18SearchTeamFoldersRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xf1\x01\n\x19SearchTeamFoldersResponse\x12[\n\x07results\x18\x01 \x03(\x0b\x32J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a^\n\x16TeamFolderSearchResult\x12;\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderH\x00\x42\x07\n\x05\x65ntry\"\xca\x02\n\x12MoveFolderMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xd2\x02\n\x16MoveRepositoryMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04*\x89\x01\n\x15\x44irectoryContentsView\x12\'\n#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1d\x44IRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12$\n DIRECTORY_CONTENTS_VIEW_METADATA\x10\x02\x32\xe3}\n\x08\x44\x61taform\x12\xa5\x01\n\rGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xc6\x01\n\x10\x43reateTeamFolder\x12\x31.google.cloud.dataform.v1.CreateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"Y\xda\x41\x12parent,team_folder\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0bteam_folder\x12\xd7\x01\n\x10UpdateTeamFolder\x12\x31.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"j\xda\x41\x17team_folder,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0bteam_folder\x12\x9d\x01\n\x10\x44\x65leteTeamFolder\x12\x31.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xf5\x01\n\x14\x44\x65leteTeamFolderTree\x12\x35.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xea\x01\n\x17QueryTeamFolderContents\x12\x38.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1a\x39.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xda\x41\x0bteam_folder\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xbe\x01\n\x11SearchTeamFolders\x12\x32.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1a\x33.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\n\tGetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1a .google.cloud.dataform.v1.Folder\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xac\x01\n\x0c\x43reateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"K\xda\x41\rparent,folder\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/folders:\x06\x66older\x12\xb8\x01\n\x0cUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"W\xda\x41\x12\x66older,update_mask\x82\xd3\xe4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06\x66older\x12\x91\x01\n\x0c\x44\x65leteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xe9\x01\n\x10\x44\x65leteFolderTree\x12\x31.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xd6\x01\n\x13QueryFolderContents\x12\x34.google.cloud.dataform.v1.QueryFolderContentsRequest\x1a\x35.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xda\x41\x06\x66older\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xd8\x01\n\x15QueryUserRootContents\x12\x36.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1a\x37.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xda\x41\x08location\x82\xd3\xe4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xe9\x01\n\nMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41+\n\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02\x35\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xfa\x01\n\x0eMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x12\xf7\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xab\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x99\x02\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb new file mode 100644 index 000000000000..7076d1962dc3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb @@ -0,0 +1,40 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Longrunning + module Operations + # Credentials for the Operations API. + class Credentials < ::Google::Auth::Credentials + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb new file mode 100644 index 000000000000..6b2d5f7cecff --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb @@ -0,0 +1,837 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Longrunning + module Operations + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Operations Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb new file mode 100644 index 000000000000..ff6597693b4e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataform/v1/version" +require "google/longrunning/bindings_override" + +require "google/longrunning/operations/credentials" +require "google/longrunning/operations/rest/operations" +require "google/longrunning/operations/rest/client" + +module Google + module Longrunning + ## + # Manages long-running operations with an API service. + # + # When an API method normally takes long time to complete, it can be designed + # to return {::Google::Longrunning::Operation Operation} to the client, and the + # client can use this interface to receive the real response asynchronously by + # polling the operation resource, or pass the operation resource to another API + # (such as Pub/Sub API) to receive the response. Any API service that returns + # long-running operations should implement the `Operations` interface so + # developers can have a consistent client experience. + # + # To load this service and instantiate a REST client: + # + # require "google/longrunning/operations/rest" + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + module Operations + # Client for the REST transport + module Rest + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/longrunning/operations/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb new file mode 100644 index 000000000000..088db9bb5d0c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb @@ -0,0 +1,776 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/longrunning/operations_pb" +require "google/longrunning/operations/rest/service_stub" +require "google/cloud/location/rest" +require "google/iam/v1/rest" + +module Google + module Longrunning + module Operations + module Rest + ## + # REST client for the Operations service. + # + # Manages long-running operations with an API service. + # + # When an API method normally takes long time to complete, it can be designed + # to return {::Google::Longrunning::Operation Operation} to the client, and the + # client can use this interface to receive the real response asynchronously by + # polling the operation resource, or pass the operation resource to another API + # (such as Pub/Sub API) to receive the response. Any API service that returns + # long-running operations should implement the `Operations` interface so + # developers can have a consistent client experience. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configure the Operations Client class. + # + # See {::Google::Longrunning::Operations::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Operations clients + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Longrunning"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Longrunning::Operations::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = ::Google::Longrunning::Operations::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @operations_stub = ::Google::Longrunning::Operations::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @operations_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @operations_stub.endpoint + config.universe_domain = @operations_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @operations_stub.logger if config.respond_to? :logger= + end + + @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @operations_stub.endpoint + config.universe_domain = @operations_stub.universe_domain + config.logger = @operations_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Longrunning::Operations::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # Get the associated client for mix-in of the IAMPolicy. + # + # @return [Google::Iam::V1::IAMPolicy::Rest::Client] + # + attr_reader :iam_policy_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @operations_stub.logger + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb new file mode 100644 index 000000000000..f5539db81ab3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb @@ -0,0 +1,921 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" + +module Google + module Longrunning + module Operations + module Rest + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the Operations Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the Operations Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = OperationsServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a long-running operation. This method indicates that the client is + # no longer interested in the operation result. It does not cancel the + # operation. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts asynchronous cancellation on a long-running operation. The server + # makes a best effort to cancel the operation, but success is not + # guaranteed. If the server doesn't support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataform::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "longrunning.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + + ## + # @private + # REST service stub for the Longrunning Operations API. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + class OperationsServiceStub + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb new file mode 100644 index 000000000000..0a616d856150 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb @@ -0,0 +1,322 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/longrunning/operations_pb" + +module Google + module Longrunning + module Operations + module Rest + ## + # REST service stub for the Operations service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb new file mode 100644 index 000000000000..1abb8352800b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/longrunning/operations/rest" +require "google/longrunning/bindings_override" +require "google/cloud/dataform/v1/version" + +module Google + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/longrunning/rest" + # client = ::Google::Longrunning::Operations::Rest::Client.new + # + module Longrunning + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md new file mode 100644 index 000000000000..a128eb6cf57a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md @@ -0,0 +1,4 @@ +# Dataform V1 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..3ab0b096d445 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb @@ -0,0 +1,593 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # + # Note: This feature should not be used in most cases. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb new file mode 100644 index 000000000000..71e821d33ab7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb @@ -0,0 +1,3308 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataform + module V1 + # Describes encryption state of a resource. + # @!attribute [rw] kms_key_version_name + # @return [::String] + # Required. The KMS key version name with which data of a resource is + # encrypted. + class DataEncryptionState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git repository. + # @!attribute [rw] name + # @return [::String] + # Identifier. The repository's name. + # @!attribute [rw] containing_folder + # @return [::String] + # Optional. The name of the containing folder of the repository. + # The field is immutable and it can be modified via a MoveRepository + # operation. + # Format: `projects/*/locations/*/folders/*`. or + # `projects/*/locations/*/teamFolders/*`. + # @!attribute [r] team_folder_name + # @return [::String] + # Output only. The resource name of the TeamFolder that this Repository is + # associated with. This should take the format: + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this + # is not set, the Repository is not associated with a TeamFolder. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the repository was created. + # @!attribute [rw] display_name + # @return [::String] + # Optional. The repository's user-friendly name. + # @!attribute [rw] git_remote_settings + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings] + # Optional. If set, configures this repository to be linked to a Git remote. + # @!attribute [rw] npmrc_environment_variables_secret_version + # @return [::String] + # Optional. The name of the Secret Manager secret version to be used to + # interpolate variables into the .npmrc file for package installation + # operations. Must be in the format `projects/*/secrets/*/versions/*`. The + # file itself must be in a JSON format. + # @!attribute [rw] workspace_compilation_overrides + # @return [::Google::Cloud::Dataform::V1::Repository::WorkspaceCompilationOverrides] + # Optional. If set, fields of `workspace_compilation_overrides` override the + # default compilation settings that are specified in dataform.json when + # creating workspace-scoped compilation results. See documentation for + # `WorkspaceCompilationOverrides` for more information. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Repository user labels. + # @!attribute [rw] set_authenticated_user_admin + # @return [::Boolean] + # Optional. Input only. If set to true, the authenticated user will be + # granted the roles/dataform.admin role on the created repository. + # @!attribute [rw] service_account + # @return [::String] + # Optional. The service account to run workflow invocations under. + # @!attribute [rw] kms_key_name + # @return [::String] + # Optional. The reference to a KMS encryption key. If provided, it will be + # used to encrypt user data in the repository and all child resources. It is + # not possible to add or update the encryption key after the repository is + # created. Example: + # `projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}` + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. A data encryption state of a Git repository if this Repository + # is protected by a KMS key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class Repository + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Controls Git remote configuration for a repository. + # @!attribute [rw] url + # @return [::String] + # Required. The Git remote's URL. + # @!attribute [rw] default_branch + # @return [::String] + # Required. The Git remote's default branch name. + # @!attribute [rw] authentication_token_secret_version + # @return [::String] + # Optional. The name of the Secret Manager secret version to use as an + # authentication token for Git operations. Must be in the format + # `projects/*/secrets/*/versions/*`. + # @!attribute [rw] ssh_authentication_config + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::SshAuthenticationConfig] + # Optional. Authentication fields for remote uris using SSH protocol. + # @!attribute [r] token_status + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::TokenStatus] + # Output only. Deprecated: The field does not contain any token status + # information. + class GitRemoteSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Configures fields for performing SSH authentication. + # @!attribute [rw] user_private_key_secret_version + # @return [::String] + # Required. The name of the Secret Manager secret version to use as a + # ssh private key for Git operations. + # Must be in the format `projects/*/secrets/*/versions/*`. + # @!attribute [rw] host_public_key + # @return [::String] + # Required. Content of a public SSH key to verify an identity of a remote + # Git host. + class SshAuthenticationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The status of the authentication token. + module TokenStatus + # Default value. This value is unused. + TOKEN_STATUS_UNSPECIFIED = 0 + + # The token could not be found in Secret Manager (or the Dataform + # Service Account did not have permission to access it). + NOT_FOUND = 1 + + # The token could not be used to authenticate against the Git remote. + INVALID = 2 + + # The token was used successfully to authenticate against the Git remote. + VALID = 3 + end + end + + # Configures workspace compilation overrides for a repository. + # @!attribute [rw] default_database + # @return [::String] + # Optional. The default database (Google Cloud project ID). + # @!attribute [rw] schema_suffix + # @return [::String] + # Optional. The suffix that should be appended to all schema (BigQuery + # dataset ID) names. + # @!attribute [rw] table_prefix + # @return [::String] + # Optional. The prefix that should be prepended to all table names. + class WorkspaceCompilationOverrides + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Metadata used to identify if a resource is user scoped. + # @!attribute [r] user_scoped + # @return [::Boolean] + # Output only. If true, this resource is user-scoped, meaning it is either a + # workspace or sourced from a workspace. + class PrivateResourceMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListRepositories` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to list repositories. Must be in the format + # `projects/*/locations/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of repositories to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListRepositories` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListRepositories`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListRepositoriesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListRepositories` response message. + # @!attribute [rw] repositories + # @return [::Array<::Google::Cloud::Dataform::V1::Repository>] + # List of repositories. + # @!attribute [rw] next_page_token + # @return [::String] + # A token which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListRepositoriesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The full resource name of the repository to move. + # @!attribute [rw] destination_containing_folder + # @return [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # repository to. Can be in the format of: "" to move into the root User + # folder, `projects/*/locations/*/folders/*`, + # `projects/*/locations/*/teamFolders/*` + class MoveRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class GetRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateRepository` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the repository. Must be in the + # format `projects/*/locations/*`. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # Required. The repository to create. + # @!attribute [rw] repository_id + # @return [::String] + # Required. The ID to use for the repository, which will become the final + # component of the repository's resource name. + class CreateRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateRepository` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the repository. If left + # unset, all fields will be updated. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # Required. The repository to update. + class UpdateRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteRepository` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If set to true, child resources of this repository (compilation + # results and workflow invocations) will also be deleted. Otherwise, the + # request will only succeed if the repository has no child resources. + # + # **Note:** *This flag doesn't support deletion of workspaces, release + # configs or workflow configs. If any of such resources exists in the + # repository, the request will fail.*. + class DeleteRepositoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitRepositoryChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_metadata + # @return [::Google::Cloud::Dataform::V1::CommitMetadata] + # Required. The changes to commit to the repository. + # @!attribute [rw] required_head_commit_sha + # @return [::String] + # Optional. The commit SHA which must be the repository's current HEAD before + # applying this commit; otherwise this request will fail. If unset, no + # validation on the current HEAD commit SHA is performed. + # @!attribute [rw] file_operations + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation}] + # Optional. A map to the path of the file to the operation. The path is the + # full file path including filename, from repository root. + class CommitRepositoryChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single file operation to the repository. + # @!attribute [rw] write_file + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::WriteFile] + # Represents the write operation. + # + # Note: The following fields are mutually exclusive: `write_file`, `delete_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] delete_file + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::DeleteFile] + # Represents the delete operation. + # + # Note: The following fields are mutually exclusive: `delete_file`, `write_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class FileOperation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the write file operation (for files added or modified). + # @!attribute [rw] contents + # @return [::String] + # The file's contents. + class WriteFile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the delete file operation. + class DeleteFile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation] + class FileOperationsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `CommitRepositoryChanges` response message. + # @!attribute [rw] commit_sha + # @return [::String] + # The commit SHA of the current commit. + class CommitRepositoryChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadRepositoryFile` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_sha + # @return [::String] + # Optional. The commit SHA for the commit to read from. If unset, the file + # will be read from HEAD. + # @!attribute [rw] path + # @return [::String] + # Required. Full file path to read including filename, from repository root. + class ReadRepositoryFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadRepositoryFile` response message. + # @!attribute [rw] contents + # @return [::String] + # The file's contents. + class ReadRepositoryFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryRepositoryDirectoryContents` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] commit_sha + # @return [::String] + # Optional. The Commit SHA for the commit to query from. If unset, the + # directory will be queried from HEAD. + # @!attribute [rw] path + # @return [::String] + # Optional. The directory's full path including directory name, relative to + # root. If left unset, the root is used. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must + # match the call that provided the page token. + class QueryRepositoryDirectoryContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryRepositoryDirectoryContents` response message. + # @!attribute [rw] directory_entries + # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # List of entries in the directory. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryRepositoryDirectoryContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRepositoryHistory` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of commits to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `FetchRepositoryHistory` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `FetchRepositoryHistory`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class FetchRepositoryHistoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRepositoryHistory` response message. + # @!attribute [rw] commits + # @return [::Array<::Google::Cloud::Dataform::V1::CommitLogEntry>] + # A list of commit logs, ordered by 'git log' default order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class FetchRepositoryHistoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single commit log. + # @!attribute [rw] commit_time + # @return [::Google::Protobuf::Timestamp] + # Commit timestamp. + # @!attribute [rw] commit_sha + # @return [::String] + # The commit SHA for this commit log entry. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # The commit author for this commit log entry. + # @!attribute [rw] commit_message + # @return [::String] + # The commit message for this commit log entry. + class CommitLogEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git commit. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The commit's author. + # @!attribute [rw] commit_message + # @return [::String] + # Optional. The commit's message. + class CommitMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ComputeRepositoryAccessTokenStatus` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class ComputeRepositoryAccessTokenStatusRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ComputeRepositoryAccessTokenStatus` response message. + # @!attribute [rw] token_status + # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse::TokenStatus] + # Indicates the status of the Git access token. + class ComputeRepositoryAccessTokenStatusResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the status of a Git authentication token. + module TokenStatus + # Default value. This value is unused. + TOKEN_STATUS_UNSPECIFIED = 0 + + # The token could not be found in Secret Manager (or the Dataform + # Service Account did not have permission to access it). + NOT_FOUND = 1 + + # The token could not be used to authenticate against the Git remote. + INVALID = 2 + + # The token was used successfully to authenticate against the Git remote. + VALID = 3 + + # The token is not accessible due to permission issues. + PERMISSION_DENIED = 4 + end + end + + # `FetchRemoteBranches` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The repository's name. + class FetchRemoteBranchesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchRemoteBranches` response message. + # @!attribute [rw] branches + # @return [::Array<::String>] + # The remote repository's branch names. + class FetchRemoteBranchesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Git workspace. + # @!attribute [rw] name + # @return [::String] + # Identifier. The workspace's name. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the workspace was created. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. A data encryption state of a Git repository if this Workspace + # is protected by a KMS key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [rw] disable_moves + # @return [::Boolean] + # Optional. If set to true, workspaces will not be moved if its linked + # Repository is moved. Instead, it will be deleted. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # Output only. Metadata indicating whether this resource is user-scoped. For + # `Workspace` resources, the `user_scoped` field is always `true`. + class Workspace + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkspaces` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list workspaces. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workspaces to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkspaces` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkspaces`, with + # the exception of `page_size`, must match the call that provided the page + # token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListWorkspacesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkspaces` response message. + # @!attribute [rw] workspaces + # @return [::Array<::Google::Cloud::Dataform::V1::Workspace>] + # List of workspaces. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkspacesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkspace` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + class GetWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkspace` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workspace. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workspace + # @return [::Google::Cloud::Dataform::V1::Workspace] + # Required. The workspace to create. + # @!attribute [rw] workspace_id + # @return [::String] + # Required. The ID to use for the workspace, which will become the final + # component of the workspace's resource name. + class CreateWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkspace` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace resource's name. + class DeleteWorkspaceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the author of a Git commit. + # @!attribute [rw] name + # @return [::String] + # Required. The commit author's name. + # @!attribute [rw] email_address + # @return [::String] + # Required. The commit author's email address. + class CommitAuthor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PullGitCommits` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote from which to pull + # commits. If left unset, the repository's default branch name will be used. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The author of any merge commit which may be created as a result + # of merging fetched Git commits into this workspace. + class PullGitCommitsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PullGitCommits` response message. + class PullGitCommitsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PushGitCommits` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote to which commits should + # be pushed. If left unset, the repository's default branch name will be + # used. + class PushGitCommitsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `PushGitCommits` response message. + class PushGitCommitsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileGitStatuses` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + class FetchFileGitStatusesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileGitStatuses` response message. + # @!attribute [rw] uncommitted_file_changes + # @return [::Array<::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange>] + # A list of all files which have uncommitted Git changes. There will only be + # a single entry for any given file. + class FetchFileGitStatusesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the Git state of a file with uncommitted changes. + # @!attribute [rw] path + # @return [::String] + # The file's full path including filename, relative to the workspace root. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange::State] + # Output only. Indicates the status of the file. + class UncommittedFileChange + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the status of an uncommitted file change. + module State + # Default value. This value is unused. + STATE_UNSPECIFIED = 0 + + # The file has been newly added. + ADDED = 1 + + # The file has been deleted. + DELETED = 2 + + # The file has been modified. + MODIFIED = 3 + + # The file contains merge conflicts. + HAS_CONFLICTS = 4 + end + end + end + + # `FetchGitAheadBehind` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] remote_branch + # @return [::String] + # Optional. The name of the branch in the Git remote against which this + # workspace should be compared. If left unset, the repository's default + # branch name will be used. + class FetchGitAheadBehindRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchGitAheadBehind` response message. + # @!attribute [rw] commits_ahead + # @return [::Integer] + # The number of commits in the remote branch that are not in the workspace. + # @!attribute [rw] commits_behind + # @return [::Integer] + # The number of commits in the workspace that are not in the remote branch. + class FetchGitAheadBehindResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitWorkspaceChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] author + # @return [::Google::Cloud::Dataform::V1::CommitAuthor] + # Required. The commit's author. + # @!attribute [rw] commit_message + # @return [::String] + # Optional. The commit's message. + # @!attribute [rw] paths + # @return [::Array<::String>] + # Optional. Full file paths to commit including filename, rooted at workspace + # root. If left empty, all files will be committed. + class CommitWorkspaceChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CommitWorkspaceChanges` response message. + class CommitWorkspaceChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ResetWorkspaceChanges` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] paths + # @return [::Array<::String>] + # Optional. Full file paths to reset back to their committed state including + # filename, rooted at workspace root. If left empty, all files will be reset. + # @!attribute [rw] clean + # @return [::Boolean] + # Optional. If set to true, untracked files will be deleted. + class ResetWorkspaceChangesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ResetWorkspaceChanges` response message. + class ResetWorkspaceChangesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileDiff` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + class FetchFileDiffRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `FetchFileDiff` response message. + # @!attribute [rw] formatted_diff + # @return [::String] + # The raw formatted Git diff for the file. + class FetchFileDiffResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryDirectoryContents` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Optional. The directory's full path including directory name, relative to + # the workspace root. If left unset, the workspace root is used. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryDirectoryContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryDirectoryContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataform::V1::DirectoryContentsView] + # Optional. Specifies the metadata to return for each directory entry. + # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + # CMEK-protected workspaces. + class QueryDirectoryContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryDirectoryContents` response message. + # @!attribute [rw] directory_entries + # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] + # List of entries in the directory. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryDirectoryContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single entry in a directory. + # @!attribute [rw] file + # @return [::String] + # A file in the directory. + # + # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] directory + # @return [::String] + # A child directory in the directory. + # + # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] metadata + # @return [::Google::Cloud::Dataform::V1::FilesystemEntryMetadata] + # Entry with metadata. + class DirectoryEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents metadata for a single entry in a filesystem. + # @!attribute [r] size_bytes + # @return [::Integer] + # Output only. Provides the size of the entry in bytes. For directories, this + # will be 0. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Represents the time of the last modification of the entry. + class FilesystemEntryMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Configuration containing file search request parameters. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of search results to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `SearchFilesRequest` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `SearchFilesRequest`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filter for the returned list in filtering format. + # Filtering is only currently supported on the `path` field. + # See https://google.aip.dev/160 for details. + class SearchFilesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a file search response. + # @!attribute [rw] search_results + # @return [::Array<::Google::Cloud::Dataform::V1::SearchResult>] + # List of matched results. + # @!attribute [rw] next_page_token + # @return [::String] + # Optional. A token, which can be sent as `page_token` to retrieve the next + # page. If this field is omitted, there are no subsequent pages. + class SearchFilesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a search result entry. + # @!attribute [rw] file + # @return [::Google::Cloud::Dataform::V1::FileSearchResult] + # Details when search result is a file. + # + # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] directory + # @return [::Google::Cloud::Dataform::V1::DirectorySearchResult] + # Details when search result is a directory. + # + # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class SearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a file entry in search results. + # @!attribute [rw] path + # @return [::String] + # File system path relative to the workspace root. + class FileSearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Client-facing representation of a directory entry in search results. + # @!attribute [rw] path + # @return [::String] + # File system path relative to the workspace root. + class DirectorySearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MakeDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + class MakeDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MakeDirectory` response message. + class MakeDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + class RemoveDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveDirectory` response message. + class RemoveDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveDirectory` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The directory's full path including directory name, relative to + # the workspace root. + # @!attribute [rw] new_path + # @return [::String] + # Required. The new path for the directory including directory name, rooted + # at workspace root. + class MoveDirectoryRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveDirectory` response message. + class MoveDirectoryResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @!attribute [rw] revision + # @return [::String] + # Optional. The Git revision of the file to return. If left empty, the + # current contents of `path` will be returned. + class ReadFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ReadFile` response message. + # @!attribute [rw] file_contents + # @return [::String] + # The file's contents. + class ReadFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + class RemoveFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `RemoveFile` response message. + class RemoveFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file's full path including filename, relative to the + # workspace root. + # @!attribute [rw] new_path + # @return [::String] + # Required. The file's new path including filename, relative to the workspace + # root. + class MoveFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFile` response message. + class MoveFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `WriteFile` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + # @!attribute [rw] path + # @return [::String] + # Required. The file. + # @!attribute [rw] contents + # @return [::String] + # Required. The file's contents. + class WriteFileRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `WriteFile` response message. + class WriteFileResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `InstallNpmPackages` request message. + # @!attribute [rw] workspace + # @return [::String] + # Required. The workspace's name. + class InstallNpmPackagesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `InstallNpmPackages` response message. + class InstallNpmPackagesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform release configuration. + # @!attribute [rw] name + # @return [::String] + # Identifier. The release config's name. + # @!attribute [rw] git_commitish + # @return [::String] + # Required. 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` + # @!attribute [rw] code_compilation_config + # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] + # Optional. If set, fields of `code_compilation_config` override the default + # compilation settings that are specified in dataform.json. + # @!attribute [rw] cron_schedule + # @return [::String] + # Optional. Optional schedule (in cron format) for automatic creation of + # compilation results. + # @!attribute [rw] time_zone + # @return [::String] + # 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. + # @!attribute [r] recent_scheduled_release_records + # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig::ScheduledReleaseRecord>] + # Output only. Records of the 10 most recent scheduled release attempts, + # ordered in descending order of `release_time`. Updated whenever automatic + # creation of a compilation result is triggered by cron_schedule. + # @!attribute [rw] release_compilation_result + # @return [::String] + # Optional. The name of the currently released compilation result for this + # release config. This value is updated when a compilation result is + # automatically created from this release config (using cron_schedule), or + # when this resource is updated by API call (perhaps to roll back to an + # earlier release). The compilation result must have been created using this + # release config. Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # @!attribute [rw] disabled + # @return [::Boolean] + # Optional. Disables automatic creation of compilation results. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class ReleaseConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A record of an attempt to create a compilation result for this release + # config. + # @!attribute [rw] compilation_result + # @return [::String] + # The name of the created compilation result, if one was successfully + # created. Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # + # Note: The following fields are mutually exclusive: `compilation_result`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] error_status + # @return [::Google::Rpc::Status] + # The error status encountered upon this attempt to create the + # compilation result, if the attempt was unsuccessful. + # + # Note: The following fields are mutually exclusive: `error_status`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] release_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of this release attempt. + class ScheduledReleaseRecord + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `ListReleaseConfigs` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list release configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of release configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListReleaseConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListReleaseConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class ListReleaseConfigsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListReleaseConfigs` response message. + # @!attribute [rw] release_configs + # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig>] + # List of release configs. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListReleaseConfigsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetReleaseConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The release config's name. + class GetReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateReleaseConfig` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the release config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] release_config + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # Required. The release config to create. + # @!attribute [rw] release_config_id + # @return [::String] + # Required. The ID to use for the release config, which will become the final + # component of the release config's resource name. + class CreateReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateReleaseConfig` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the release config. If left + # unset, all fields will be updated. + # @!attribute [rw] release_config + # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] + # Required. The release config to update. + class UpdateReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteReleaseConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The release config's name. + class DeleteReleaseConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the result of compiling a Dataform project. + # @!attribute [rw] git_commitish + # @return [::String] + # 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` + # + # Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] workspace + # @return [::String] + # Immutable. The name of the workspace to compile. Must be in the format + # `projects/*/locations/*/repositories/*/workspaces/*`. + # + # Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] release_config + # @return [::String] + # Immutable. The name of the release config to compile. Must be in the + # format `projects/*/locations/*/repositories/*/releaseConfigs/*`. + # + # Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] name + # @return [::String] + # Output only. The compilation result's name. + # @!attribute [rw] code_compilation_config + # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] + # Immutable. If set, fields of `code_compilation_config` override the default + # compilation settings that are specified in dataform.json. + # @!attribute [r] resolved_git_commit_sha + # @return [::String] + # Output only. The fully resolved Git commit SHA of the code that was + # compiled. Not set for compilation results whose source is a workspace. + # @!attribute [r] dataform_core_version + # @return [::String] + # Output only. The version of `@dataform/core` that was used for compilation. + # @!attribute [r] compilation_errors + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult::CompilationError>] + # Output only. Errors encountered during project compilation. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. Only set if the repository has a KMS Key. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the compilation result was created. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # Output only. Metadata indicating whether this resource is user-scoped. + # `CompilationResult` resource is `user_scoped` only if it is sourced + # from a workspace. + class CompilationResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # An error encountered when attempting to compile a Dataform project. + # @!attribute [r] message + # @return [::String] + # Output only. The error's top level message. + # @!attribute [r] stack + # @return [::String] + # Output only. The error's full stack trace. + # @!attribute [r] path + # @return [::String] + # Output only. The path of the file where this error occurred, if + # available, relative to the project root. + # @!attribute [r] action_target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. The identifier of the action where this error occurred, if + # available. + class CompilationError + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configures various aspects of Dataform code compilation. + # @!attribute [rw] default_database + # @return [::String] + # Optional. The default database (Google Cloud project ID). + # @!attribute [rw] default_schema + # @return [::String] + # Optional. The default schema (BigQuery dataset ID). + # @!attribute [rw] default_location + # @return [::String] + # Optional. The default BigQuery location to use. Defaults to "US". + # See the BigQuery docs for a full list of locations: + # https://cloud.google.com/bigquery/docs/locations. + # @!attribute [rw] assertion_schema + # @return [::String] + # Optional. The default schema (BigQuery dataset ID) for assertions. + # @!attribute [rw] vars + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. User-defined variables that are made available to project code + # during compilation. + # @!attribute [rw] database_suffix + # @return [::String] + # Optional. The suffix that should be appended to all database (Google Cloud + # project ID) names. + # @!attribute [rw] schema_suffix + # @return [::String] + # Optional. The suffix that should be appended to all schema (BigQuery + # dataset ID) names. + # @!attribute [rw] table_prefix + # @return [::String] + # Optional. The prefix that should be prepended to all table names. + # @!attribute [rw] builtin_assertion_name_prefix + # @return [::String] + # Optional. The prefix to prepend to built-in assertion names. + # @!attribute [rw] default_notebook_runtime_options + # @return [::Google::Cloud::Dataform::V1::NotebookRuntimeOptions] + # Optional. The default notebook runtime options. + class CodeCompilationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class VarsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configures various aspects of Dataform notebook runtime. + # @!attribute [rw] gcs_output_bucket + # @return [::String] + # Optional. The Google Cloud Storage location to upload the result to. + # Format: `gs://bucket-name`. + # @!attribute [rw] ai_platform_notebook_runtime_template + # @return [::String] + # Optional. The resource name of the [Colab runtime template] + # (https://cloud.google.com/colab/docs/runtimes), from which a runtime is + # created for notebook executions. If not specified, a runtime is created + # with Colab's default specifications. + class NotebookRuntimeOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListCompilationResults` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list compilation results. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListCompilationResults` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCompilationResults`, + # with the exception of `page_size`, must match the call that provided the + # page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name` and `create_time`. + # If unspecified, the server will choose the ordering. + # If specified, the default order is ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListCompilationResultsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListCompilationResults` response message. + # @!attribute [rw] compilation_results + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult>] + # List of compilation results. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListCompilationResultsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetCompilationResult` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The compilation result's name. + class GetCompilationResultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateCompilationResult` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the compilation result. Must be + # in the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] compilation_result + # @return [::Google::Cloud::Dataform::V1::CompilationResult] + # Required. The compilation result to create. + class CreateCompilationResultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents an action identifier. If the action writes output, the output + # will be written to the referenced database object. + # @!attribute [rw] database + # @return [::String] + # Optional. The action's database (Google Cloud project ID) . + # @!attribute [rw] schema + # @return [::String] + # Optional. The action's schema (BigQuery dataset ID), within `database`. + # @!attribute [rw] name + # @return [::String] + # Optional. The action's name, within `database` and `schema`. + class Target + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes a relation and its columns. + # @!attribute [rw] description + # @return [::String] + # A text description of the relation. + # @!attribute [rw] columns + # @return [::Array<::Google::Cloud::Dataform::V1::RelationDescriptor::ColumnDescriptor>] + # A list of descriptions of columns within the relation. + # @!attribute [rw] bigquery_labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # A set of BigQuery labels that should be applied to the relation. + class RelationDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes a column. + # @!attribute [rw] path + # @return [::Array<::String>] + # The identifier for the column. Each entry in `path` represents one level + # of nesting. + # @!attribute [rw] description + # @return [::String] + # A textual description of the column. + # @!attribute [rw] bigquery_policy_tags + # @return [::Array<::String>] + # A list of BigQuery policy tags that will be applied to the column. + class ColumnDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class BigqueryLabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents a single Dataform action in a compilation result. + # @!attribute [rw] relation + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation] + # The database relation created/updated by this action. + # + # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] operations + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Operations] + # The database operations executed by this action. + # + # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] assertion + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Assertion] + # The assertion executed by this action. + # + # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] declaration + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Declaration] + # The declaration declared by this action. + # + # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] notebook + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Notebook] + # The notebook executed by this action. + # + # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_preparation + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation] + # The data preparation executed by this action. + # + # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # This action's identifier. Unique within the compilation result. + # @!attribute [rw] canonical_target + # @return [::Google::Cloud::Dataform::V1::Target] + # The action's identifier if the project had been compiled without any + # overrides configured. Unique within the compilation result. + # @!attribute [rw] file_path + # @return [::String] + # The full path including filename in which this action is located, relative + # to the workspace root. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class CompilationResultAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a database relation. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the relation and its columns. + # @!attribute [rw] relation_type + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::RelationType] + # The type of this relation. + # @!attribute [rw] select_query + # @return [::String] + # The SELECT query which returns rows which this relation should contain. + # @!attribute [rw] pre_operations + # @return [::Array<::String>] + # SQL statements to be executed before creating the relation. + # @!attribute [rw] post_operations + # @return [::Array<::String>] + # SQL statements to be executed after creating the relation. + # @!attribute [rw] incremental_table_config + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::IncrementalTableConfig] + # Configures `INCREMENTAL_TABLE` settings for this relation. Only set if + # `relation_type` is `INCREMENTAL_TABLE`. + # @!attribute [rw] partition_expression + # @return [::String] + # The SQL expression used to partition the relation. + # @!attribute [rw] cluster_expressions + # @return [::Array<::String>] + # A list of columns or SQL expressions used to cluster the table. + # @!attribute [rw] partition_expiration_days + # @return [::Integer] + # Sets the partition expiration in days. + # @!attribute [rw] require_partition_filter + # @return [::Boolean] + # Specifies whether queries on this table must include a predicate filter + # that filters on the partitioning column. + # @!attribute [rw] additional_options + # @return [::Google::Protobuf::Map{::String => ::String}] + # Additional options that will be provided as key/value pairs into the + # options clause of a create table/view statement. See + # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language + # for more information on which options are supported. + # @!attribute [rw] connection + # @return [::String] + # Optional. The connection specifying the credentials to be used to read + # and write to external storage, such as Cloud Storage. The connection can + # have the form `{project}.{location}.{connection_id}` or + # `projects/{project}/locations/{location}/connections/{connection_id}`, + # or be set to DEFAULT. + # @!attribute [rw] table_format + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::TableFormat] + # Optional. The table format for the BigQuery table. + # @!attribute [rw] file_format + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::FileFormat] + # Optional. The file format for the BigQuery table. + # @!attribute [rw] storage_uri + # @return [::String] + # Optional. The fully qualified location prefix of the external folder + # where table data is stored. The URI should be in the format + # `gs://bucket/path_to_table/`. + class Relation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Contains settings for relations of type `INCREMENTAL_TABLE`. + # @!attribute [rw] incremental_select_query + # @return [::String] + # The SELECT query which returns rows which should be inserted into the + # relation if it already exists and is not being refreshed. + # @!attribute [rw] refresh_disabled + # @return [::Boolean] + # Whether this table should be protected from being refreshed. + # @!attribute [rw] unique_key_parts + # @return [::Array<::String>] + # A set of columns or SQL expressions used to define row uniqueness. + # If any duplicates are discovered (as defined by `unique_key_parts`), + # only the newly selected rows (as defined by `incremental_select_query`) + # will be included in the relation. + # @!attribute [rw] update_partition_filter + # @return [::String] + # A SQL expression conditional used to limit the set of existing rows + # considered for a merge operation (see `unique_key_parts` for more + # information). + # @!attribute [rw] incremental_pre_operations + # @return [::Array<::String>] + # SQL statements to be executed before inserting new rows into the + # relation. + # @!attribute [rw] incremental_post_operations + # @return [::Array<::String>] + # SQL statements to be executed after inserting new rows into the + # relation. + class IncrementalTableConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AdditionalOptionsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the type of this relation. + module RelationType + # Default value. This value is unused. + RELATION_TYPE_UNSPECIFIED = 0 + + # The relation is a table. + TABLE = 1 + + # The relation is a view. + VIEW = 2 + + # The relation is an incrementalized table. + INCREMENTAL_TABLE = 3 + + # The relation is a materialized view. + MATERIALIZED_VIEW = 4 + end + + # Supported table formats for BigQuery tables. + module TableFormat + # Default value. + TABLE_FORMAT_UNSPECIFIED = 0 + + # Apache Iceberg format. + ICEBERG = 1 + end + + # Supported file formats for BigQuery tables. + module FileFormat + # Default value. + FILE_FORMAT_UNSPECIFIED = 0 + + # Apache Parquet format. + PARQUET = 1 + end + end + + # Represents a list of arbitrary database operations. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for any output relation and its columns. Only set if + # `has_output` is true. + # @!attribute [rw] queries + # @return [::Array<::String>] + # A list of arbitrary SQL statements that will be executed without + # alteration. + # @!attribute [rw] has_output + # @return [::Boolean] + # Whether these operations produce an output relation. + class Operations + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents an assertion upon a SQL query which is required return zero + # rows. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] parent_action + # @return [::Google::Cloud::Dataform::V1::Target] + # The parent action of this assertion. Only set if this assertion was + # automatically generated. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + # @!attribute [rw] select_query + # @return [::String] + # The SELECT query which must return zero rows in order for this assertion + # to succeed. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the assertion's automatically-generated view and its + # columns. + class Assertion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a relation which is not managed by Dataform but which may be + # referenced by Dataform actions. + # @!attribute [rw] relation_descriptor + # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] + # Descriptor for the relation and its columns. Used as documentation only, + # i.e. values here will result in no changes to the relation's metadata. + class Declaration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a notebook. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] contents + # @return [::String] + # The contents of the notebook. + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + class Notebook + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a compiled Data Preparation entity + # @!attribute [rw] contents_yaml + # @return [::String] + # The data preparation definition, stored as a YAML string. + # + # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] contents_sql + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::SqlDefinition] + # SQL definition for a Data Preparation. Contains a SQL query and + # additional context information. + # + # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] dependency_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # A list of actions that this action depends on. + # @!attribute [rw] disabled + # @return [::Boolean] + # Whether this action is disabled (i.e. should not be run). + # @!attribute [rw] tags + # @return [::Array<::String>] + # Arbitrary, user-defined tags on this action. + class DataPreparation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Definition of a SQL Data Preparation + # @!attribute [rw] query + # @return [::String] + # The SQL query representing the data preparation steps. Formatted as a + # Pipe SQL query statement. + # @!attribute [rw] error_table + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::ErrorTable] + # Error table configuration, + # @!attribute [rw] load + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::LoadConfig] + # Load configuration. + class SqlDefinition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Error table information, used to write error data into a BigQuery + # table. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Error Table target. + # @!attribute [rw] retention_days + # @return [::Integer] + # Error table partition expiration in days. Only positive values are + # allowed. + class ErrorTable + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Simplified load configuration for actions + # @!attribute [rw] replace + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] + # Replace destination table + # + # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] append + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] + # Append into destination table + # + # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] maximum + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] + # Insert records where the value exceeds the previous maximum value for a + # column in the destination table + # + # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] unique + # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] + # Insert records where the value of a column is not already present in + # the destination table + # + # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class LoadConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simple load definition + class SimpleLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Load definition for incremental load modes + # @!attribute [rw] column + # @return [::String] + # Column name for incremental load modes + class IncrementalLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `QueryCompilationResultActions` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The compilation result's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of compilation results to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryCompilationResultActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryCompilationResultActions`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filter for the returned list. Filtering is only + # currently supported on the `file_path` field. + class QueryCompilationResultActionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryCompilationResultActions` response message. + # @!attribute [rw] compilation_result_actions + # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResultAction>] + # List of compilation result actions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryCompilationResultActionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform workflow configuration. + # @!attribute [rw] name + # @return [::String] + # Identifier. The workflow config's name. + # @!attribute [rw] release_config + # @return [::String] + # Required. The name of the release config whose release_compilation_result + # should be executed. Must be in the format + # `projects/*/locations/*/repositories/*/releaseConfigs/*`. + # @!attribute [rw] invocation_config + # @return [::Google::Cloud::Dataform::V1::InvocationConfig] + # Optional. If left unset, a default InvocationConfig will be used. + # @!attribute [rw] cron_schedule + # @return [::String] + # Optional. Optional schedule (in cron format) for automatic execution of + # this workflow config. + # @!attribute [rw] time_zone + # @return [::String] + # 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. + # @!attribute [r] recent_scheduled_execution_records + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig::ScheduledExecutionRecord>] + # Output only. Records of the 10 most recent scheduled execution attempts, + # ordered in descending order of `execution_time`. Updated whenever automatic + # creation of a workflow invocation is triggered by cron_schedule. + # @!attribute [rw] disabled + # @return [::Boolean] + # Optional. Disables automatic creation of workflow invocations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the WorkflowConfig was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the WorkflowConfig was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class WorkflowConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A record of an attempt to create a workflow invocation for this workflow + # config. + # @!attribute [rw] workflow_invocation + # @return [::String] + # The name of the created workflow invocation, if one was successfully + # created. Must be in the format + # `projects/*/locations/*/repositories/*/workflowInvocations/*`. + # + # Note: The following fields are mutually exclusive: `workflow_invocation`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] error_status + # @return [::Google::Rpc::Status] + # The error status encountered upon this attempt to create the + # workflow invocation, if the attempt was unsuccessful. + # + # Note: The following fields are mutually exclusive: `error_status`, `workflow_invocation`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] execution_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of this execution attempt. + class ScheduledExecutionRecord + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Includes various configuration options for a workflow invocation. + # If both `included_targets` and `included_tags` are unset, all actions + # will be included. + # @!attribute [rw] included_targets + # @return [::Array<::Google::Cloud::Dataform::V1::Target>] + # Optional. The set of action identifiers to include. + # @!attribute [rw] included_tags + # @return [::Array<::String>] + # Optional. The set of tags to include. + # @!attribute [rw] transitive_dependencies_included + # @return [::Boolean] + # Optional. When set to true, transitive dependencies of included actions + # will be executed. + # @!attribute [rw] transitive_dependents_included + # @return [::Boolean] + # Optional. When set to true, transitive dependents of included actions will + # be executed. + # @!attribute [rw] fully_refresh_incremental_tables_enabled + # @return [::Boolean] + # Optional. When set to true, any incremental tables will be fully refreshed. + # @!attribute [rw] service_account + # @return [::String] + # Optional. The service account to run workflow invocations under. + # @!attribute [rw] query_priority + # @return [::Google::Cloud::Dataform::V1::InvocationConfig::QueryPriority] + # Optional. Specifies the priority for query execution in BigQuery. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#queries. + class InvocationConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Types of priority for query execution in BigQuery. + module QueryPriority + # Default value. This value is unused. + QUERY_PRIORITY_UNSPECIFIED = 0 + + # Query will be executed in BigQuery with interactive priority. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#queries. + INTERACTIVE = 1 + + # Query will be executed in BigQuery with batch priority. + # More information can be found at + # https://cloud.google.com/bigquery/docs/running-queries#batchqueries. + BATCH = 2 + end + end + + # `ListWorkflowConfigs` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to list workflow configs. Must be in the + # format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow configs to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkflowConfigs` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListWorkflowConfigs`, + # with the exception of `page_size`, must match the call that provided the + # page token. + class ListWorkflowConfigsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkflowConfigs` response message. + # @!attribute [rw] workflow_configs + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig>] + # List of workflow configs. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkflowConfigsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkflowConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow config's name. + class GetWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkflowConfig` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workflow config. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workflow_config + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # Required. The workflow config to create. + # @!attribute [rw] workflow_config_id + # @return [::String] + # Required. The ID to use for the workflow config, which will become the + # final component of the workflow config's resource name. + class CreateWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateWorkflowConfig` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the workflow config. If + # left unset, all fields will be updated. + # @!attribute [rw] workflow_config + # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] + # Required. The workflow config to update. + class UpdateWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkflowConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow config's name. + class DeleteWorkflowConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single invocation of a compilation result. + # @!attribute [rw] compilation_result + # @return [::String] + # Immutable. The name of the compilation result to use for this invocation. + # Must be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # + # Note: The following fields are mutually exclusive: `compilation_result`, `workflow_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] workflow_config + # @return [::String] + # Immutable. The name of the workflow config to invoke. Must be in the + # format `projects/*/locations/*/repositories/*/workflowConfigs/*`. + # + # Note: The following fields are mutually exclusive: `workflow_config`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] name + # @return [::String] + # Output only. The workflow invocation's name. + # @!attribute [rw] invocation_config + # @return [::Google::Cloud::Dataform::V1::InvocationConfig] + # Immutable. If left unset, a default InvocationConfig will be used. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation::State] + # Output only. This workflow invocation's current state. + # @!attribute [r] invocation_timing + # @return [::Google::Type::Interval] + # Output only. This workflow invocation's timing details. + # @!attribute [r] resolved_compilation_result + # @return [::String] + # Output only. The resolved compilation result that was used to create this + # invocation. Will be in the format + # `projects/*/locations/*/repositories/*/compilationResults/*`. + # @!attribute [r] data_encryption_state + # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] + # Output only. Only set if the repository has a KMS Key. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] private_resource_metadata + # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] + # 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. + class WorkflowInvocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents the current state of a workflow invocation. + module State + # Default value. This value is unused. + STATE_UNSPECIFIED = 0 + + # The workflow invocation is currently running. + RUNNING = 1 + + # The workflow invocation succeeded. A terminal state. + SUCCEEDED = 2 + + # The workflow invocation was cancelled. A terminal state. + CANCELLED = 3 + + # The workflow invocation failed. A terminal state. + FAILED = 4 + + # The workflow invocation is being cancelled, but some actions are still + # running. + CANCELING = 5 + end + end + + # `ListWorkflowInvocations` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource of the WorkflowInvocation type. Must be in + # the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `ListWorkflowInvocations` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListWorkflowInvocations`, with the exception of `page_size`, must match + # the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. This field only supports ordering by `name`. If unspecified, the + # server will choose the ordering. If specified, the default order is + # ascending for the `name` field. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter for the returned list. + class ListWorkflowInvocationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListWorkflowInvocations` response message. + # @!attribute [rw] workflow_invocations + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocation>] + # List of workflow invocations. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Locations which could not be reached. + class ListWorkflowInvocationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class GetWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateWorkflowInvocation` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The repository in which to create the workflow invocation. Must + # be in the format `projects/*/locations/*/repositories/*`. + # @!attribute [rw] workflow_invocation + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] + # Required. The workflow invocation resource to create. + class CreateWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class DeleteWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CancelWorkflowInvocation` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation resource's name. + class CancelWorkflowInvocationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CancelWorkflowInvocation` response message. + class CancelWorkflowInvocationResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a single action in a workflow invocation. + # @!attribute [r] bigquery_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::BigQueryAction] + # Output only. The workflow action's bigquery action details. + # + # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] notebook_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::NotebookAction] + # Output only. The workflow action's notebook action details. + # + # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] data_preparation_action + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction] + # Output only. The workflow action's data preparation action details. + # + # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. This action's identifier. Unique within the workflow + # invocation. + # @!attribute [r] canonical_target + # @return [::Google::Cloud::Dataform::V1::Target] + # Output only. The action's identifier if the project had been compiled + # without any overrides configured. Unique within the compilation result. + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::State] + # Output only. This action's current state. + # @!attribute [r] failure_reason + # @return [::String] + # Output only. If and only if action's state is FAILED a failure reason is + # set. + # @!attribute [r] invocation_timing + # @return [::Google::Type::Interval] + # Output only. This action's timing details. + # `start_time` will be set if the action is in [RUNNING, SUCCEEDED, + # CANCELLED, FAILED] state. + # `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] + # state. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class WorkflowInvocationAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a workflow action that will run against BigQuery. + # @!attribute [r] sql_script + # @return [::String] + # Output only. The generated BigQuery SQL script that will be executed. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the BigQuery job that executed the SQL in + # sql_script. Only set once the job has started to run. + class BigQueryAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a workflow action that will run against a Notebook runtime. + # @!attribute [r] contents + # @return [::String] + # Output only. The code contents of a Notebook to be run. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the Vertex 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. + class NotebookAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a workflow action that will run a Data Preparation. + # @!attribute [r] contents_yaml + # @return [::String] + # Output only. YAML representing the contents of the data preparation. + # Can be used to show the customer what the input was to their workflow. + # + # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] contents_sql + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition] + # SQL definition for a Data Preparation. Contains a SQL query and + # additional context information. + # + # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [r] generated_sql + # @return [::String] + # Output only. The generated BigQuery SQL script that will be executed. For + # reference only. + # @!attribute [r] job_id + # @return [::String] + # Output only. The ID of the BigQuery job that executed the SQL in + # sql_script. Only set once the job has started to run. + class DataPreparationAction + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Definition of a SQL Data Preparation + # @!attribute [rw] query + # @return [::String] + # The SQL query representing the data preparation steps. Formatted as a + # Pipe SQL query statement. + # @!attribute [rw] error_table + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionErrorTable] + # Error table configuration, + # @!attribute [rw] load_config + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionLoadConfig] + # Load configuration. + class ActionSqlDefinition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Error table information, used to write error data into a BigQuery + # table. + # @!attribute [rw] target + # @return [::Google::Cloud::Dataform::V1::Target] + # Error Table target. + # @!attribute [rw] retention_days + # @return [::Integer] + # Error table partition expiration in days. Only positive values are + # allowed. + class ActionErrorTable + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simplified load configuration for actions + # @!attribute [rw] replace + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] + # Replace destination table + # + # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] append + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] + # Append into destination table + # + # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] maximum + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] + # Insert records where the value exceeds the previous maximum value for + # a column in the destination table + # + # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] unique + # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] + # Insert records where the value of a column is not already present in + # the destination table + # + # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class ActionLoadConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Simple load definition + class ActionSimpleLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Load definition for incremental load modes + # @!attribute [rw] column + # @return [::String] + # Column name for incremental load modes + class ActionIncrementalLoadMode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents the current state of a workflow invocation action. + module State + # The action has not yet been considered for invocation. + PENDING = 0 + + # The action is currently running. + RUNNING = 1 + + # Execution of the action was skipped because upstream dependencies did not + # all complete successfully. A terminal state. + SKIPPED = 2 + + # Execution of the action was disabled as per the configuration of the + # corresponding compilation result action. A terminal state. + DISABLED = 3 + + # The action succeeded. A terminal state. + SUCCEEDED = 4 + + # The action was cancelled. A terminal state. + CANCELLED = 5 + + # The action failed. A terminal state. + FAILED = 6 + end + end + + # `QueryWorkflowInvocationActions` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The workflow invocation's name. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of workflow invocations to return. The server may + # return fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous + # `QueryWorkflowInvocationActions` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must + # match the call that provided the page token. + class QueryWorkflowInvocationActionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryWorkflowInvocationActions` response message. + # @!attribute [rw] workflow_invocation_actions + # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] + # List of workflow invocation actions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryWorkflowInvocationActionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Config for all repositories in a given project and location. + # @!attribute [rw] name + # @return [::String] + # Identifier. The config name. + # @!attribute [rw] default_kms_key_name + # @return [::String] + # Optional. The default KMS key that is used if no encryption key is provided + # when a repository is created. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + class Config + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetConfig` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The config name. + class GetConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateConfig` request message. + # @!attribute [rw] config + # @return [::Google::Cloud::Dataform::V1::Config] + # Required. The config to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the config. + class UpdateConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Dataform Folder. This is a resource that is used to organize + # Files and other Folders and provide hierarchical access controls. + # @!attribute [rw] name + # @return [::String] + # Identifier. The Folder's name. + # @!attribute [rw] display_name + # @return [::String] + # Required. The Folder's user-friendly name. + # @!attribute [rw] containing_folder + # @return [::String] + # Optional. The containing Folder resource name. This should take + # the format: projects/\\{project}/locations/\\{location}/folders/\\{folder}, + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}, or just + # projects/\\{project}/locations/\\{location} if this is a root Folder. This + # field can only be updated through MoveFolder. + # @!attribute [r] team_folder_name + # @return [::String] + # Output only. The resource name of the TeamFolder that this Folder is + # associated with. This should take the format: + # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this + # is not set, the Folder is not associated with a TeamFolder and is a + # UserFolder. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the Folder was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the Folder was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] creator_iam_principal + # @return [::String] + # Output only. The IAM principal identifier of the creator of the Folder. + class Folder + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateFolder` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the Folder. Must be in the format + # `projects/*/locations/*`. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # Required. The Folder to create. + class CreateFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `MoveFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The full resource name of the Folder to move. + # @!attribute [rw] destination_containing_folder + # @return [::String] + # Optional. The name of the Folder, TeamFolder, or root location to move the + # Folder to. Can be in the format of: "" to move into the root User folder, + # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` + class MoveFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + class GetFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateFolder` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields that can be updated, will be updated. A few fields cannot be + # updated and will be ignored if specified in the update_mask (e.g. + # parent_name, team_folder_name). + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # Required. The updated Folder. + class UpdateFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + class DeleteFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteFolderTree` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The Folder's name. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + class DeleteFolderTreeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteTeamFolderTree` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If `false` (default): The operation will fail if any + # Repository within the folder hierarchy has associated Release Configs or + # Workflow Configs. + # + # If `true`: The operation will attempt to delete everything, including any + # Release Configs and Workflow Configs linked to Repositories within the + # folder hierarchy. This permanently removes schedules and resources. + class DeleteTeamFolderTreeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Contains metadata about the progress of the DeleteFolderTree Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Resource name of the target of the operation. + # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} or + # projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} + # @!attribute [r] state + # @return [::Google::Cloud::Dataform::V1::DeleteFolderTreeMetadata::State] + # Output only. The state of the operation. + # @!attribute [r] percent_complete + # @return [::Integer] + # Output only. Percent complete of the operation [0, 100]. + class DeleteFolderTreeMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the DeleteFolderTree operation. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The operation was initialized and recorded by the server, but not yet + # started. + INITIALIZED = 1 + + # The operation is in progress. + IN_PROGRESS = 2 + + # The operation has completed successfully. + SUCCEEDED = 3 + + # The operation has failed. + FAILED = 4 + end + end + + # `QueryFolderContents` request message. + # @!attribute [rw] folder + # @return [::String] + # Required. Name of the folder whose contents to list. + # Format: projects/*/locations/*/folders/* + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryFolderContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryFolderContents`, with the exception of `page_size`, must match the + # call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), create_time, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryFolderContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryFolderContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class FolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `QueryUserRootContents` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location of the user root folder whose contents to list. + # Format: projects/*/locations/* + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryUserRootContents` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryUserRootFolderContents`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: display_name (default), created_at, + # last_modified_at. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryUserRootContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryUserRootContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] + # List of entries in the folder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryUserRootContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class RootContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Represents a Dataform TeamFolder. This is a resource that sits at the project + # level and is used to organize Repositories and Folders with hierarchical + # access controls. They provide a team context and stricter access controls. + # @!attribute [rw] name + # @return [::String] + # Identifier. The TeamFolder's name. + # @!attribute [rw] display_name + # @return [::String] + # Required. The TeamFolder's user-friendly name. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the TeamFolder was last updated. + # @!attribute [r] internal_metadata + # @return [::String] + # 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. + # @!attribute [r] creator_iam_principal + # @return [::String] + # Output only. The IAM principal identifier of the creator of the TeamFolder. + class TeamFolder + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `CreateTeamFolder` request message. + # @!attribute [rw] parent + # @return [::String] + # Required. The location in which to create the TeamFolder. Must be in the + # format `projects/*/locations/*`. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The TeamFolder to create. + class CreateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `GetTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class GetTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `UpdateTeamFolder` request message. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. Specifies the fields to be updated in the Folder. If left unset, + # all fields will be updated. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # Required. The updated TeamFolder. + class UpdateTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `DeleteTeamFolder` request message. + # @!attribute [rw] name + # @return [::String] + # Required. The TeamFolder's name. + class DeleteTeamFolderRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` request message. + # @!attribute [rw] team_folder + # @return [::String] + # Required. Name of the team_folder whose contents to list. + # Format: `projects/*/locations/*/teamFolders/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of paths to return. The server may return fewer + # items than requested. If unspecified, the server will pick an appropriate + # default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `QueryTeamFolderContents` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `QueryTeamFolderContents`, with the exception of `page_size`, must match + # the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Will order Folders before Repositories, and then by `order_by` in ascending + # order. Supported keywords: `display_name` (default), `create_time`, + # last_modified_time. + # Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class QueryTeamFolderContentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `QueryTeamFolderContents` response message. + # @!attribute [rw] entries + # @return [::Array<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] + # List of entries in the TeamFolder. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class QueryTeamFolderContentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] folder + # @return [::Google::Cloud::Dataform::V1::Folder] + # A subfolder. + # + # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] repository + # @return [::Google::Cloud::Dataform::V1::Repository] + # A repository. + # + # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class TeamFolderContentsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `SearchTeamFolders` request message. + # @!attribute [rw] location + # @return [::String] + # Required. Location in which to query TeamFolders. + # Format: `projects/*/locations/*`. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Maximum number of TeamFolders to return. The server may return + # fewer items than requested. If unspecified, the server will pick an + # appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. Page token received from a previous `SearchTeamFolders` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `SearchTeamFolders`, with the exception of `page_size`, must + # match the call that provided the page token. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Field to additionally sort results by. + # Supported keywords: `display_name` (default), `create_time`, + # `last_modified_time`. Examples: + # - `orderBy="display_name"` + # - `orderBy="display_name desc"` + # @!attribute [rw] filter + # @return [::String] + # Optional. Optional filtering for the returned list. Filtering is currently + # only supported on the `display_name` field. + # + # Example: + # - `filter="display_name="MyFolder""` + class SearchTeamFoldersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `SearchTeamFolders` response message. + # @!attribute [rw] results + # @return [::Array<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] + # List of TeamFolders that match the search query. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class SearchTeamFoldersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a single content entry. + # @!attribute [rw] team_folder + # @return [::Google::Cloud::Dataform::V1::TeamFolder] + # A TeamFolder resource that is in the project / location. + class TeamFolderSearchResult + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Contains metadata about the progress of the MoveFolder Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveFolderMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveFolderMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Contains metadata about the progress of the MoveRepository Long-running + # operations. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataform::V1::MoveRepositoryMetadata::State] + # The state of the move. + # @!attribute [rw] percent_complete + # @return [::Integer] + # Percent complete of the move [0, 100]. + class MoveRepositoryMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different states of the move. + module State + # The state is unspecified. + STATE_UNSPECIFIED = 0 + + # The move was initialized and recorded by the server, but not yet started. + INITIALIZED = 1 + + # The move is in progress. + IN_PROGRESS = 2 + + # The move has completed successfully. + SUCCESS = 3 + + # The move has failed. + FAILED = 4 + end + end + + # Represents the level of detail to return for directory contents. + module DirectoryContentsView + # The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0 + + # Includes only the file or directory name. This is the default behavior. + DIRECTORY_CONTENTS_VIEW_BASIC = 1 + + # Includes all metadata for each file or directory. Currently not supported + # by CMEK-protected workspaces. + DIRECTORY_CONTENTS_VIEW_METADATA = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb new file mode 100644 index 000000000000..53e7733b6592 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a textual expression in the Common Expression Language (CEL) + # syntax. CEL is a C-like expression language. The syntax and semantics of CEL + # are documented at https://github.com/google/cel-spec. + # + # Example (Comparison): + # + # title: "Summary size limit" + # description: "Determines if a summary is less than 100 chars" + # expression: "document.summary.size() < 100" + # + # Example (Equality): + # + # title: "Requestor is owner" + # description: "Determines if requestor is the document owner" + # expression: "document.owner == request.auth.claims.email" + # + # Example (Logic): + # + # title: "Public documents" + # description: "Determine whether the document should be publicly visible" + # expression: "document.type != 'private' && document.type != 'internal'" + # + # Example (Data Manipulation): + # + # title: "Notification string" + # description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" + # + # The exact variables and functions that may be referenced within an expression + # are determined by the service that evaluates it. See the service + # documentation for additional information. + # @!attribute [rw] expression + # @return [::String] + # Textual representation of an expression in Common Expression Language + # syntax. + # @!attribute [rw] title + # @return [::String] + # Optional. Title for the expression, i.e. a short string describing + # its purpose. This can be used e.g. in UIs which allow to enter the + # expression. + # @!attribute [rw] description + # @return [::String] + # Optional. Description of the expression. This is a longer text which + # describes the expression, e.g. when hovered over it in a UI. + # @!attribute [rw] location + # @return [::String] + # Optional. String indicating the location of the expression for error + # reporting, e.g. a file name and a position in the file. + class Expr + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb new file mode 100644 index 000000000000..9350ca479005 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a time interval, encoded as a Timestamp start (inclusive) and a + # Timestamp end (exclusive). + # + # The start must be less than or equal to the end. + # When the start equals the end, the interval is empty (matches no time). + # When both start and end are unspecified, the interval matches any time. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Inclusive start of the interval. + # + # If specified, a Timestamp matching this interval will have to be the same + # or after the start. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # Optional. Exclusive end of the interval. + # + # If specified, a Timestamp matching this interval will have to be before the + # end. + class Interval + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile new file mode 100644 index 000000000000..89707fd03706 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-dataform-v1", path: "../" +else + gem "google-cloud-dataform-v1" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb new file mode 100644 index 000000000000..c4a4e55aa460 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the cancel_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation. +# +def cancel_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new + + # Call the cancel_workflow_invocation method. + result = client.cancel_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. + p result +end +# [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb new file mode 100644 index 000000000000..b31e885c5837 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the commit_repository_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes. +# +def commit_repository_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new + + # Call the commit_repository_changes method. + result = client.commit_repository_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb new file mode 100644 index 000000000000..de4ddc10f8e4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the commit_workspace_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes. +# +def commit_workspace_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new + + # Call the commit_workspace_changes method. + result = client.commit_workspace_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb new file mode 100644 index 000000000000..4aaf8f3d74f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the compute_repository_access_token_status call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status. +# +def compute_repository_access_token_status + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new + + # Call the compute_repository_access_token_status method. + result = client.compute_repository_access_token_status request + + # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. + p result +end +# [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb new file mode 100644 index 000000000000..2a34f5cac7f6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateCompilationResult_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_compilation_result call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result. +# +def create_compilation_result + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new + + # Call the create_compilation_result method. + result = client.create_compilation_result request + + # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + p result +end +# [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb new file mode 100644 index 000000000000..3c2f8f0e4f94 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_folder. +# +def create_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateFolderRequest.new + + # Call the create_folder method. + result = client.create_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb new file mode 100644 index 000000000000..46e5de64b5d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_release_config. +# +def create_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new + + # Call the create_release_config method. + result = client.create_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb new file mode 100644 index 000000000000..186c81061421 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_repository. +# +def create_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new + + # Call the create_repository method. + result = client.create_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb new file mode 100644 index 000000000000..4cb79ef5ac63 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder. +# +def create_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new + + # Call the create_team_folder method. + result = client.create_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb new file mode 100644 index 000000000000..446e1c2e93bb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config. +# +def create_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new + + # Call the create_workflow_config method. + result = client.create_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb new file mode 100644 index 000000000000..ad915149df4d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation. +# +def create_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new + + # Call the create_workflow_invocation method. + result = client.create_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb new file mode 100644 index 000000000000..89e20592d4f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_CreateWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the create_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#create_workspace. +# +def create_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new + + # Call the create_workspace method. + result = client.create_workspace request + + # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + p result +end +# [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb new file mode 100644 index 000000000000..b77ee48d1380 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder. +# +def delete_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new + + # Call the delete_folder method. + result = client.delete_folder request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb new file mode 100644 index 000000000000..b2e3907a8605 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteFolderTree_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_folder_tree call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree. +# +def delete_folder_tree + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new + + # Call the delete_folder_tree method. + result = client.delete_folder_tree request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb new file mode 100644 index 000000000000..b21bc0f0a3fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config. +# +def delete_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new + + # Call the delete_release_config method. + result = client.delete_release_config request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb new file mode 100644 index 000000000000..c7267ab8814d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_repository. +# +def delete_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new + + # Call the delete_repository method. + result = client.delete_repository request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb new file mode 100644 index 000000000000..45cfe3a54207 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder. +# +def delete_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new + + # Call the delete_team_folder method. + result = client.delete_team_folder request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb new file mode 100644 index 000000000000..9ef55af12135 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_team_folder_tree call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree. +# +def delete_team_folder_tree + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new + + # Call the delete_team_folder_tree method. + result = client.delete_team_folder_tree request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb new file mode 100644 index 000000000000..68073c51b458 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config. +# +def delete_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new + + # Call the delete_workflow_config method. + result = client.delete_workflow_config request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb new file mode 100644 index 000000000000..656f44075001 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation. +# +def delete_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new + + # Call the delete_workflow_invocation method. + result = client.delete_workflow_invocation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb new file mode 100644 index 000000000000..56e820984467 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_DeleteWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the delete_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace. +# +def delete_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new + + # Call the delete_workspace method. + result = client.delete_workspace request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb new file mode 100644 index 000000000000..8730eefe3970 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchFileDiff_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_file_diff call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff. +# +def fetch_file_diff + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new + + # Call the fetch_file_diff method. + result = client.fetch_file_diff request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb new file mode 100644 index 000000000000..4715c81828c0 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_file_git_statuses call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses. +# +def fetch_file_git_statuses + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new + + # Call the fetch_file_git_statuses method. + result = client.fetch_file_git_statuses request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb new file mode 100644 index 000000000000..0fc4c454effd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_git_ahead_behind call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind. +# +def fetch_git_ahead_behind + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new + + # Call the fetch_git_ahead_behind method. + result = client.fetch_git_ahead_behind request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb new file mode 100644 index 000000000000..3c55465ceb19 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchRemoteBranches_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_remote_branches call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches. +# +def fetch_remote_branches + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new + + # Call the fetch_remote_branches method. + result = client.fetch_remote_branches request + + # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. + p result +end +# [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb new file mode 100644 index 000000000000..da57dd87c79e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the fetch_repository_history call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history. +# +def fetch_repository_history + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new + + # Call the fetch_repository_history method. + result = client.fetch_repository_history request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb new file mode 100644 index 000000000000..999fd435d184 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetCompilationResult_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_compilation_result call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result. +# +def get_compilation_result + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new + + # Call the get_compilation_result method. + result = client.get_compilation_result request + + # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. + p result +end +# [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb new file mode 100644 index 000000000000..e783c6e72d27 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_config. +# +def get_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetConfigRequest.new + + # Call the get_config method. + result = client.get_config request + + # The returned object is of type Google::Cloud::Dataform::V1::Config. + p result +end +# [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb new file mode 100644 index 000000000000..689877e96673 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_folder. +# +def get_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetFolderRequest.new + + # Call the get_folder method. + result = client.get_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb new file mode 100644 index 000000000000..df48c36f2d16 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetIamPolicy_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_iam_policy call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy. +# +def get_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::GetIamPolicyRequest.new + + # Call the get_iam_policy method. + result = client.get_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END dataform_v1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb new file mode 100644 index 000000000000..a84831df98d5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_release_config. +# +def get_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new + + # Call the get_release_config method. + result = client.get_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb new file mode 100644 index 000000000000..c5072fb2408f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_repository. +# +def get_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new + + # Call the get_repository method. + result = client.get_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb new file mode 100644 index 000000000000..287238e52743 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder. +# +def get_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new + + # Call the get_team_folder method. + result = client.get_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb new file mode 100644 index 000000000000..f381745b38fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config. +# +def get_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new + + # Call the get_workflow_config method. + result = client.get_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb new file mode 100644 index 000000000000..7a4356138297 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workflow_invocation call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation. +# +def get_workflow_invocation + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new + + # Call the get_workflow_invocation method. + result = client.get_workflow_invocation request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb new file mode 100644 index 000000000000..06b3bd6fe5eb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_GetWorkspace_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the get_workspace call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#get_workspace. +# +def get_workspace + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new + + # Call the get_workspace method. + result = client.get_workspace request + + # The returned object is of type Google::Cloud::Dataform::V1::Workspace. + p result +end +# [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb new file mode 100644 index 000000000000..921bd63946d7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_InstallNpmPackages_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the install_npm_packages call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages. +# +def install_npm_packages + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new + + # Call the install_npm_packages method. + result = client.install_npm_packages request + + # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. + p result +end +# [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb new file mode 100644 index 000000000000..593c43c2b30e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListCompilationResults_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_compilation_results call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results. +# +def list_compilation_results + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new + + # Call the list_compilation_results method. + result = client.list_compilation_results request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. + p item + end +end +# [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb new file mode 100644 index 000000000000..8ea574eff2a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListReleaseConfigs_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_release_configs call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs. +# +def list_release_configs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new + + # Call the list_release_configs method. + result = client.list_release_configs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. + p item + end +end +# [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb new file mode 100644 index 000000000000..321b0cf9c512 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListRepositories_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_repositories call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_repositories. +# +def list_repositories + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new + + # Call the list_repositories method. + result = client.list_repositories request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::Repository. + p item + end +end +# [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb new file mode 100644 index 000000000000..cc9629d319fb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workflow_configs call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs. +# +def list_workflow_configs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new + + # Call the list_workflow_configs method. + result = client.list_workflow_configs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb new file mode 100644 index 000000000000..13e62b798423 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workflow_invocations call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations. +# +def list_workflow_invocations + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new + + # Call the list_workflow_invocations method. + result = client.list_workflow_invocations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb new file mode 100644 index 000000000000..8f9be608db55 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ListWorkspaces_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the list_workspaces call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces. +# +def list_workspaces + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new + + # Call the list_workspaces method. + result = client.list_workspaces request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. + p item + end +end +# [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb new file mode 100644 index 000000000000..47f391f846c6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MakeDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the make_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#make_directory. +# +def make_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new + + # Call the make_directory method. + result = client.make_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb new file mode 100644 index 000000000000..fb67af9605e9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_directory. +# +def move_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new + + # Call the move_directory method. + result = client.move_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb new file mode 100644 index 000000000000..4f22d16e6721 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_file. +# +def move_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveFileRequest.new + + # Call the move_file method. + result = client.move_file request + + # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb new file mode 100644 index 000000000000..eebe84d46640 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_folder. +# +def move_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveFolderRequest.new + + # Call the move_folder method. + result = client.move_folder request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb new file mode 100644 index 000000000000..4eca8dd9c54f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_MoveRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the move_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#move_repository. +# +def move_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new + + # Call the move_repository method. + result = client.move_repository request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb new file mode 100644 index 000000000000..d929a9ff389b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_PullGitCommits_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the pull_git_commits call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits. +# +def pull_git_commits + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new + + # Call the pull_git_commits method. + result = client.pull_git_commits request + + # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. + p result +end +# [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb new file mode 100644 index 000000000000..a68f07194b2b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_PushGitCommits_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the push_git_commits call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits. +# +def push_git_commits + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new + + # Call the push_git_commits method. + result = client.push_git_commits request + + # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. + p result +end +# [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb new file mode 100644 index 000000000000..5639fdf8046b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_compilation_result_actions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions. +# +def query_compilation_result_actions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new + + # Call the query_compilation_result_actions method. + result = client.query_compilation_result_actions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb new file mode 100644 index 000000000000..b369a3508ead --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_directory_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents. +# +def query_directory_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new + + # Call the query_directory_contents method. + result = client.query_directory_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb new file mode 100644 index 000000000000..ad16707edc04 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryFolderContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_folder_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents. +# +def query_folder_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new + + # Call the query_folder_contents method. + result = client.query_folder_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb new file mode 100644 index 000000000000..60f03d3438fe --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_repository_directory_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents. +# +def query_repository_directory_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new + + # Call the query_repository_directory_contents method. + result = client.query_repository_directory_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb new file mode 100644 index 000000000000..90a3760b3221 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_team_folder_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents. +# +def query_team_folder_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new + + # Call the query_team_folder_contents method. + result = client.query_team_folder_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb new file mode 100644 index 000000000000..d070b3379fd4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryUserRootContents_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_user_root_contents call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents. +# +def query_user_root_contents + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new + + # Call the query_user_root_contents method. + result = client.query_user_root_contents request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb new file mode 100644 index 000000000000..d44f575db9f2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the query_workflow_invocation_actions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions. +# +def query_workflow_invocation_actions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new + + # Call the query_workflow_invocation_actions method. + result = client.query_workflow_invocation_actions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. + p item + end +end +# [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb new file mode 100644 index 000000000000..9d32a0e63b2e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ReadFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the read_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#read_file. +# +def read_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ReadFileRequest.new + + # Call the read_file method. + result = client.read_file request + + # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb new file mode 100644 index 000000000000..52f0945b9d40 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ReadRepositoryFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the read_repository_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file. +# +def read_repository_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new + + # Call the read_repository_file method. + result = client.read_repository_file request + + # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb new file mode 100644 index 000000000000..797de4b0ddad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_RemoveDirectory_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the remove_directory call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#remove_directory. +# +def remove_directory + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new + + # Call the remove_directory method. + result = client.remove_directory request + + # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. + p result +end +# [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb new file mode 100644 index 000000000000..7e1ae41d3621 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_RemoveFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the remove_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#remove_file. +# +def remove_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::RemoveFileRequest.new + + # Call the remove_file method. + result = client.remove_file request + + # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb new file mode 100644 index 000000000000..3e320ac0b35b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the reset_workspace_changes call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes. +# +def reset_workspace_changes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new + + # Call the reset_workspace_changes method. + result = client.reset_workspace_changes request + + # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. + p result +end +# [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb new file mode 100644 index 000000000000..d6359d3370f5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SearchFiles_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the search_files call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#search_files. +# +def search_files + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::SearchFilesRequest.new + + # Call the search_files method. + result = client.search_files request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. + p item + end +end +# [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb new file mode 100644 index 000000000000..4a5fa15a73e6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SearchTeamFolders_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the search_team_folders call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders. +# +def search_team_folders + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new + + # Call the search_team_folders method. + result = client.search_team_folders request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. + p item + end +end +# [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb new file mode 100644 index 000000000000..335c8370204f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_SetIamPolicy_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the set_iam_policy call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy. +# +def set_iam_policy + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::SetIamPolicyRequest.new + + # Call the set_iam_policy method. + result = client.set_iam_policy request + + # The returned object is of type Google::Iam::V1::Policy. + p result +end +# [END dataform_v1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb new file mode 100644 index 000000000000..9c833d143ff9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_TestIamPermissions_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the test_iam_permissions call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions. +# +def test_iam_permissions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Iam::V1::TestIamPermissionsRequest.new + + # Call the test_iam_permissions method. + result = client.test_iam_permissions request + + # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. + p result +end +# [END dataform_v1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb new file mode 100644 index 000000000000..cda3be7976e1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_config. +# +def update_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new + + # Call the update_config method. + result = client.update_config request + + # The returned object is of type Google::Cloud::Dataform::V1::Config. + p result +end +# [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb new file mode 100644 index 000000000000..f2f0cfad66fd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_folder. +# +def update_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new + + # Call the update_folder method. + result = client.update_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::Folder. + p result +end +# [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb new file mode 100644 index 000000000000..67f11c154df8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_release_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_release_config. +# +def update_release_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new + + # Call the update_release_config method. + result = client.update_release_config request + + # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. + p result +end +# [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb new file mode 100644 index 000000000000..35f7462d0dac --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateRepository_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_repository call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_repository. +# +def update_repository + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new + + # Call the update_repository method. + result = client.update_repository request + + # The returned object is of type Google::Cloud::Dataform::V1::Repository. + p result +end +# [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb new file mode 100644 index 000000000000..b98113a24978 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateTeamFolder_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_team_folder call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder. +# +def update_team_folder + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new + + # Call the update_team_folder method. + result = client.update_team_folder request + + # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. + p result +end +# [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb new file mode 100644 index 000000000000..570ff222440b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the update_workflow_config call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config. +# +def update_workflow_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new + + # Call the update_workflow_config method. + result = client.update_workflow_config request + + # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. + p result +end +# [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb new file mode 100644 index 000000000000..75fabd872e56 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Dataform_WriteFile_sync] +require "google/cloud/dataform/v1" + +## +# Snippet for the write_file call in the Dataform service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataform::V1::Dataform::Client#write_file. +# +def write_file + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataform::V1::Dataform::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataform::V1::WriteFileRequest.new + + # Call the write_file method. + result = client.write_file request + + # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. + p result +end +# [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb new file mode 100644 index 000000000000..ac17556a7c35 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_CancelOperation_sync] +require "google/longrunning" + +## +# Snippet for the cancel_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#cancel_operation. +# +def cancel_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::CancelOperationRequest.new + + # Call the cancel_operation method. + result = client.cancel_operation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Operations_CancelOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb new file mode 100644 index 000000000000..5a5ca99c1168 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_DeleteOperation_sync] +require "google/longrunning" + +## +# Snippet for the delete_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#delete_operation. +# +def delete_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::DeleteOperationRequest.new + + # Call the delete_operation method. + result = client.delete_operation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END dataform_v1_generated_Operations_DeleteOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb new file mode 100644 index 000000000000..cd1170168513 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_GetOperation_sync] +require "google/longrunning" + +## +# Snippet for the get_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#get_operation. +# +def get_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::GetOperationRequest.new + + # Call the get_operation method. + result = client.get_operation request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Operations_GetOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb new file mode 100644 index 000000000000..f9b07ec66d86 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_ListOperations_sync] +require "google/longrunning" + +## +# Snippet for the list_operations call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#list_operations. +# +def list_operations + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::ListOperationsRequest.new + + # Call the list_operations method. + result = client.list_operations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Longrunning::Operation. + p item + end +end +# [END dataform_v1_generated_Operations_ListOperations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb new file mode 100644 index 000000000000..bbec9a28ddd7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataform_v1_generated_Operations_WaitOperation_sync] +require "google/longrunning" + +## +# Snippet for the wait_operation call in the Operations service +# +# 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. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Longrunning::Operations::Client#wait_operation. +# +def wait_operation + # Create a client object. The client can be reused for multiple calls. + client = Google::Longrunning::Operations::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Longrunning::WaitOperationRequest.new + + # Call the wait_operation method. + result = client.wait_operation request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END dataform_v1_generated_Operations_WaitOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json new file mode 100644 index 000000000000..6ded7292abaa --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json @@ -0,0 +1,2935 @@ +{ + "client_library": { + "name": "google-cloud-dataform-v1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.cloud.dataform.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "region_tag": "dataform_v1_generated_Dataform_GetTeamFolder_sync", + "title": "Snippet for the get_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder.", + "file": "dataform/get_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateTeamFolder_sync", + "title": "Snippet for the create_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder.", + "file": "dataform/create_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateTeamFolder_sync", + "title": "Snippet for the update_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder.", + "file": "dataform/update_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolder_sync", + "title": "Snippet for the delete_team_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder.", + "file": "dataform/delete_team_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync", + "title": "Snippet for the delete_team_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree.", + "file": "dataform/delete_team_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_team_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteTeamFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_sync", + "title": "Snippet for the query_team_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents.", + "file": "dataform/query_team_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_team_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryTeamFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SearchTeamFolders_sync", + "title": "Snippet for the search_team_folders call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders.", + "file": "dataform/search_team_folders.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_team_folders", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SearchTeamFolders", + "full_name": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetFolder_sync", + "title": "Snippet for the get_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_folder.", + "file": "dataform/get_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetFolder", + "full_name": "google.cloud.dataform.v1.Dataform.GetFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateFolder_sync", + "title": "Snippet for the create_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_folder.", + "file": "dataform/create_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.CreateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateFolder_sync", + "title": "Snippet for the update_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_folder.", + "file": "dataform/update_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Folder", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateFolder", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolder_sync", + "title": "Snippet for the delete_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder.", + "file": "dataform/delete_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolder", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteFolderTree_sync", + "title": "Snippet for the delete_folder_tree call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree.", + "file": "dataform/delete_folder_tree.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_folder_tree", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteFolderTree", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryFolderContents_sync", + "title": "Snippet for the query_folder_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents.", + "file": "dataform/query_folder_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_folder_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryFolderContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryFolderContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryFolderContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryFolderContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryUserRootContents_sync", + "title": "Snippet for the query_user_root_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents.", + "file": "dataform/query_user_root_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_user_root_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryUserRootContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveFolder_sync", + "title": "Snippet for the move_folder call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_folder.", + "file": "dataform/move_folder.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_folder", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_folder", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveFolderRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveFolder", + "full_name": "google.cloud.dataform.v1.Dataform.MoveFolder", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListRepositories_sync", + "title": "Snippet for the list_repositories call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_repositories.", + "file": "dataform/list_repositories.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_repositories", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_repositories", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListRepositoriesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListRepositoriesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListRepositories", + "full_name": "google.cloud.dataform.v1.Dataform.ListRepositories", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetRepository_sync", + "title": "Snippet for the get_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_repository.", + "file": "dataform/get_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetRepository", + "full_name": "google.cloud.dataform.v1.Dataform.GetRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateRepository_sync", + "title": "Snippet for the create_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_repository.", + "file": "dataform/create_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateRepository", + "full_name": "google.cloud.dataform.v1.Dataform.CreateRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateRepository_sync", + "title": "Snippet for the update_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_repository.", + "file": "dataform/update_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Repository", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateRepository", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteRepository_sync", + "title": "Snippet for the delete_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_repository.", + "file": "dataform/delete_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteRepository", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveRepository_sync", + "title": "Snippet for the move_repository call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_repository.", + "file": "dataform/move_repository.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_repository", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_repository", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveRepositoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveRepository", + "full_name": "google.cloud.dataform.v1.Dataform.MoveRepository", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_sync", + "title": "Snippet for the commit_repository_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes.", + "file": "dataform/commit_repository_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "commit_repository_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CommitRepositoryChanges", + "full_name": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ReadRepositoryFile_sync", + "title": "Snippet for the read_repository_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file.", + "file": "dataform/read_repository_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "read_repository_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ReadRepositoryFile", + "full_name": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync", + "title": "Snippet for the query_repository_directory_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents.", + "file": "dataform/query_repository_directory_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_repository_directory_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryRepositoryDirectoryContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchRepositoryHistory_sync", + "title": "Snippet for the fetch_repository_history call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history.", + "file": "dataform/fetch_repository_history.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_repository_history", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchRepositoryHistory", + "full_name": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync", + "title": "Snippet for the compute_repository_access_token_status call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status.", + "file": "dataform/compute_repository_access_token_status.rb", + "language": "RUBY", + "client_method": { + "short_name": "compute_repository_access_token_status", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ComputeRepositoryAccessTokenStatus", + "full_name": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchRemoteBranches_sync", + "title": "Snippet for the fetch_remote_branches call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches.", + "file": "dataform/fetch_remote_branches.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_remote_branches", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchRemoteBranches", + "full_name": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkspaces_sync", + "title": "Snippet for the list_workspaces call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces.", + "file": "dataform/list_workspaces.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workspaces", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkspacesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkspacesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkspaces", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkspaces", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkspace_sync", + "title": "Snippet for the get_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workspace.", + "file": "dataform/get_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Workspace", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkspace_sync", + "title": "Snippet for the create_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workspace.", + "file": "dataform/create_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Workspace", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkspace_sync", + "title": "Snippet for the delete_workspace call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace.", + "file": "dataform/delete_workspace.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workspace", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkspace", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_InstallNpmPackages_sync", + "title": "Snippet for the install_npm_packages call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages.", + "file": "dataform/install_npm_packages.rb", + "language": "RUBY", + "client_method": { + "short_name": "install_npm_packages", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "InstallNpmPackages", + "full_name": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_PullGitCommits_sync", + "title": "Snippet for the pull_git_commits call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits.", + "file": "dataform/pull_git_commits.rb", + "language": "RUBY", + "client_method": { + "short_name": "pull_git_commits", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::PullGitCommitsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::PullGitCommitsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "PullGitCommits", + "full_name": "google.cloud.dataform.v1.Dataform.PullGitCommits", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_PushGitCommits_sync", + "title": "Snippet for the push_git_commits call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits.", + "file": "dataform/push_git_commits.rb", + "language": "RUBY", + "client_method": { + "short_name": "push_git_commits", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::PushGitCommitsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::PushGitCommitsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "PushGitCommits", + "full_name": "google.cloud.dataform.v1.Dataform.PushGitCommits", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchFileGitStatuses_sync", + "title": "Snippet for the fetch_file_git_statuses call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses.", + "file": "dataform/fetch_file_git_statuses.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_file_git_statuses", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchFileGitStatuses", + "full_name": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchGitAheadBehind_sync", + "title": "Snippet for the fetch_git_ahead_behind call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind.", + "file": "dataform/fetch_git_ahead_behind.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_git_ahead_behind", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchGitAheadBehind", + "full_name": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync", + "title": "Snippet for the commit_workspace_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes.", + "file": "dataform/commit_workspace_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "commit_workspace_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CommitWorkspaceChanges", + "full_name": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync", + "title": "Snippet for the reset_workspace_changes call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes.", + "file": "dataform/reset_workspace_changes.rb", + "language": "RUBY", + "client_method": { + "short_name": "reset_workspace_changes", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ResetWorkspaceChanges", + "full_name": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_FetchFileDiff_sync", + "title": "Snippet for the fetch_file_diff call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff.", + "file": "dataform/fetch_file_diff.rb", + "language": "RUBY", + "client_method": { + "short_name": "fetch_file_diff", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::FetchFileDiffRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::FetchFileDiffResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "FetchFileDiff", + "full_name": "google.cloud.dataform.v1.Dataform.FetchFileDiff", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryDirectoryContents_sync", + "title": "Snippet for the query_directory_contents call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents.", + "file": "dataform/query_directory_contents.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_directory_contents", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryDirectoryContents", + "full_name": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SearchFiles_sync", + "title": "Snippet for the search_files call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_files.", + "file": "dataform/search_files.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_files", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_files", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::SearchFilesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::SearchFilesResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SearchFiles", + "full_name": "google.cloud.dataform.v1.Dataform.SearchFiles", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MakeDirectory_sync", + "title": "Snippet for the make_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#make_directory.", + "file": "dataform/make_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "make_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#make_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MakeDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MakeDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MakeDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.MakeDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_RemoveDirectory_sync", + "title": "Snippet for the remove_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_directory.", + "file": "dataform/remove_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "remove_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::RemoveDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::RemoveDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "RemoveDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.RemoveDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveDirectory_sync", + "title": "Snippet for the move_directory call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_directory.", + "file": "dataform/move_directory.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_directory", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_directory", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveDirectoryRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MoveDirectoryResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveDirectory", + "full_name": "google.cloud.dataform.v1.Dataform.MoveDirectory", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ReadFile_sync", + "title": "Snippet for the read_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_file.", + "file": "dataform/read_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "read_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ReadFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReadFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ReadFile", + "full_name": "google.cloud.dataform.v1.Dataform.ReadFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_RemoveFile_sync", + "title": "Snippet for the remove_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_file.", + "file": "dataform/remove_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "remove_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::RemoveFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::RemoveFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "RemoveFile", + "full_name": "google.cloud.dataform.v1.Dataform.RemoveFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_MoveFile_sync", + "title": "Snippet for the move_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_file.", + "file": "dataform/move_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "move_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::MoveFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::MoveFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "MoveFile", + "full_name": "google.cloud.dataform.v1.Dataform.MoveFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_WriteFile_sync", + "title": "Snippet for the write_file call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#write_file.", + "file": "dataform/write_file.rb", + "language": "RUBY", + "client_method": { + "short_name": "write_file", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#write_file", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::WriteFileRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WriteFileResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "WriteFile", + "full_name": "google.cloud.dataform.v1.Dataform.WriteFile", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListReleaseConfigs_sync", + "title": "Snippet for the list_release_configs call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs.", + "file": "dataform/list_release_configs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_release_configs", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListReleaseConfigs", + "full_name": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetReleaseConfig_sync", + "title": "Snippet for the get_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_release_config.", + "file": "dataform/get_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateReleaseConfig_sync", + "title": "Snippet for the create_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_release_config.", + "file": "dataform/create_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateReleaseConfig_sync", + "title": "Snippet for the update_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_release_config.", + "file": "dataform/update_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteReleaseConfig_sync", + "title": "Snippet for the delete_release_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config.", + "file": "dataform/delete_release_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_release_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteReleaseConfig", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListCompilationResults_sync", + "title": "Snippet for the list_compilation_results call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results.", + "file": "dataform/list_compilation_results.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_compilation_results", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListCompilationResultsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListCompilationResultsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListCompilationResults", + "full_name": "google.cloud.dataform.v1.Dataform.ListCompilationResults", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetCompilationResult_sync", + "title": "Snippet for the get_compilation_result call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result.", + "file": "dataform/get_compilation_result.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_compilation_result", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetCompilationResultRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetCompilationResult", + "full_name": "google.cloud.dataform.v1.Dataform.GetCompilationResult", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateCompilationResult_sync", + "title": "Snippet for the create_compilation_result call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result.", + "file": "dataform/create_compilation_result.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_compilation_result", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateCompilationResultRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateCompilationResult", + "full_name": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryCompilationResultActions_sync", + "title": "Snippet for the query_compilation_result_actions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions.", + "file": "dataform/query_compilation_result_actions.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_compilation_result_actions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryCompilationResultActions", + "full_name": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkflowConfigs_sync", + "title": "Snippet for the list_workflow_configs call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs.", + "file": "dataform/list_workflow_configs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workflow_configs", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkflowConfigs", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkflowConfig_sync", + "title": "Snippet for the get_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config.", + "file": "dataform/get_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowConfig_sync", + "title": "Snippet for the create_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config.", + "file": "dataform/create_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync", + "title": "Snippet for the update_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config.", + "file": "dataform/update_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync", + "title": "Snippet for the delete_workflow_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config.", + "file": "dataform/delete_workflow_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workflow_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkflowConfig", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_ListWorkflowInvocations_sync", + "title": "Snippet for the list_workflow_invocations call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations.", + "file": "dataform/list_workflow_invocations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_workflow_invocations", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "ListWorkflowInvocations", + "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetWorkflowInvocation_sync", + "title": "Snippet for the get_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation.", + "file": "dataform/get_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync", + "title": "Snippet for the create_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation.", + "file": "dataform/create_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CreateWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync", + "title": "Snippet for the delete_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation.", + "file": "dataform/delete_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "DeleteWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync", + "title": "Snippet for the cancel_workflow_invocation call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation.", + "file": "dataform/cancel_workflow_invocation.rb", + "language": "RUBY", + "client_method": { + "short_name": "cancel_workflow_invocation", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "CancelWorkflowInvocation", + "full_name": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync", + "title": "Snippet for the query_workflow_invocation_actions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions.", + "file": "dataform/query_workflow_invocation_actions.rb", + "language": "RUBY", + "client_method": { + "short_name": "query_workflow_invocation_actions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "QueryWorkflowInvocationActions", + "full_name": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetConfig_sync", + "title": "Snippet for the get_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_config.", + "file": "dataform/get_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::GetConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Config", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetConfig", + "full_name": "google.cloud.dataform.v1.Dataform.GetConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_UpdateConfig_sync", + "title": "Snippet for the update_config call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_config.", + "file": "dataform/update_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_config", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_config", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataform::V1::UpdateConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataform::V1::Config", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "UpdateConfig", + "full_name": "google.cloud.dataform.v1.Dataform.UpdateConfig", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_GetIamPolicy_sync", + "title": "Snippet for the get_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy.", + "file": "dataform/get_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::GetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "GetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.GetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_SetIamPolicy_sync", + "title": "Snippet for the set_iam_policy call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy.", + "file": "dataform/set_iam_policy.rb", + "language": "RUBY", + "client_method": { + "short_name": "set_iam_policy", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::SetIamPolicyRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::Policy", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "SetIamPolicy", + "full_name": "google.cloud.dataform.v1.Dataform.SetIamPolicy", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Dataform_TestIamPermissions_sync", + "title": "Snippet for the test_iam_permissions call in the Dataform service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions.", + "file": "dataform/test_iam_permissions.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_iam_permissions", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions", + "async": false, + "parameters": [ + { + "type": "::Google::Iam::V1::TestIamPermissionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", + "client": { + "short_name": "Dataform::Client", + "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" + }, + "method": { + "short_name": "TestIamPermissions", + "full_name": "google.cloud.dataform.v1.Dataform.TestIamPermissions", + "service": { + "short_name": "Dataform", + "full_name": "google.cloud.dataform.v1.Dataform" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json new file mode 100644 index 000000000000..ae5311ef4402 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json @@ -0,0 +1,215 @@ +{ + "client_library": { + "name": "google-cloud-dataform-v1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.longrunning", + "version": "longrunning" + } + ] + }, + "snippets": [ + { + "region_tag": "dataform_v1_generated_Operations_ListOperations_sync", + "title": "Snippet for the list_operations call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#list_operations.", + "file": "operations/list_operations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_operations", + "full_name": "::Google::Longrunning::Operations::Client#list_operations", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::ListOperationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::ListOperationsResponse", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "ListOperations", + "full_name": "google.longrunning.Operations.ListOperations", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_GetOperation_sync", + "title": "Snippet for the get_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#get_operation.", + "file": "operations/get_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_operation", + "full_name": "::Google::Longrunning::Operations::Client#get_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::GetOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "GetOperation", + "full_name": "google.longrunning.Operations.GetOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_DeleteOperation_sync", + "title": "Snippet for the delete_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#delete_operation.", + "file": "operations/delete_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_operation", + "full_name": "::Google::Longrunning::Operations::Client#delete_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::DeleteOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "DeleteOperation", + "full_name": "google.longrunning.Operations.DeleteOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_CancelOperation_sync", + "title": "Snippet for the cancel_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#cancel_operation.", + "file": "operations/cancel_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "cancel_operation", + "full_name": "::Google::Longrunning::Operations::Client#cancel_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::CancelOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "CancelOperation", + "full_name": "google.longrunning.Operations.CancelOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataform_v1_generated_Operations_WaitOperation_sync", + "title": "Snippet for the wait_operation call in the Operations service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#wait_operation.", + "file": "operations/wait_operation.rb", + "language": "RUBY", + "client_method": { + "short_name": "wait_operation", + "full_name": "::Google::Longrunning::Operations::Client#wait_operation", + "async": false, + "parameters": [ + { + "type": "::Google::Longrunning::WaitOperationRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "Operations::Client", + "full_name": "::Google::Longrunning::Operations::Client" + }, + "method": { + "short_name": "WaitOperation", + "full_name": "google.longrunning.Operations.WaitOperation", + "service": { + "short_name": "Operations", + "full_name": "google.longrunning.Operations" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb new file mode 100644 index 000000000000..98458c3d1dbd --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform_services_pb" +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb new file mode 100644 index 000000000000..1843f1d3cb44 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb @@ -0,0 +1,211 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_compilation_result_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.compilation_result_path project: "value0", location: "value1", repository: "value2", compilation_result: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/compilationResults/value3", path + end + end + + def test_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.config_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1/config", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_crypto_key_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path + end + end + + def test_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.folder_path project: "value0", location: "value1", folder: "value2" + assert_equal "projects/value0/locations/value1/folders/value2", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_notebook_runtime_template_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.notebook_runtime_template_path project: "value0", location: "value1", notebook_runtime_template: "value2" + assert_equal "projects/value0/locations/value1/notebookRuntimeTemplates/value2", path + end + end + + def test_release_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.release_config_path project: "value0", location: "value1", repository: "value2", release_config: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/releaseConfigs/value3", path + end + end + + def test_repository_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.repository_path project: "value0", location: "value1", repository: "value2" + assert_equal "projects/value0/locations/value1/repositories/value2", path + end + end + + def test_secret_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.secret_version_path project: "value0", secret: "value1", version: "value2" + assert_equal "projects/value0/secrets/value1/versions/value2", path + end + end + + def test_team_folder_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.team_folder_path project: "value0", location: "value1", team_folder: "value2" + assert_equal "projects/value0/locations/value1/teamFolders/value2", path + end + end + + def test_workflow_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workflow_config_path project: "value0", location: "value1", repository: "value2", workflow_config: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workflowConfigs/value3", path + end + end + + def test_workflow_invocation_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workflow_invocation_path project: "value0", location: "value1", repository: "value2", workflow_invocation: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workflowInvocations/value3", path + end + end + + def test_workspace_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.workspace_path project: "value0", location: "value1", repository: "value2", workspace: "value3" + assert_equal "projects/value0/locations/value1/repositories/value2/workspaces/value3", path + end + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb new file mode 100644 index 000000000000..07fde9553884 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb @@ -0,0 +1,4148 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform/rest" + + +class ::Google::Cloud::Dataform::V1::Dataform::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_count + end + end + end + + def test_create_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_count + end + end + end + + def test_update_team_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_count + end + end + end + + def test_delete_team_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_count + end + end + end + + def test_query_team_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_team_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_count + end + end + end + + def test_search_team_folders + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_team_folders_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_count + end + end + end + + def test_get_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_count + end + end + end + + def test_create_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_count + end + end + end + + def test_update_folder + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Folder.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_count + end + end + end + + def test_delete_folder + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_count + end + end + end + + def test_delete_folder_tree + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_tree_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_count + end + end + end + + def test_query_folder_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_folder_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_count + end + end + end + + def test_query_user_root_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_user_root_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_count + end + end + end + + def test_move_folder + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_folder_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_count + end + end + end + + def test_list_repositories + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_repositories_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_repositories_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_repositories_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_repositories_client_stub.call_count + end + end + end + + def test_get_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_repository({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_repository name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_repository({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_repository_client_stub.call_count + end + end + end + + def test_create_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + repository = {} + repository_id = "hello world" + + create_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_repository parent: parent, repository: repository, repository_id: repository_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_repository_client_stub.call_count + end + end + end + + def test_update_repository + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Repository.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + repository = {} + + update_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_repository({ update_mask: update_mask, repository: repository }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_repository update_mask: update_mask, repository: repository do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_repository({ update_mask: update_mask, repository: repository }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_repository_client_stub.call_count + end + end + end + + def test_delete_repository + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_repository({ name: name, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_repository name: name, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_repository({ name: name, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_repository_client_stub.call_count + end + end + end + + def test_move_repository + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_repository_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_count + end + end + end + + def test_commit_repository_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_metadata = {} + required_head_commit_sha = "hello world" + file_operations = {} + + commit_repository_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_repository_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, commit_repository_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, commit_repository_changes_client_stub.call_count + end + end + end + + def test_read_repository_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + + read_repository_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_repository_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, read_repository_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.read_repository_file name: name, commit_sha: commit_sha, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, read_repository_file_client_stub.call_count + end + end + end + + def test_query_repository_directory_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + + query_repository_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_repository_directory_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_repository_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_repository_directory_contents_client_stub.call_count + end + end + end + + def test_fetch_repository_history + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + fetch_repository_history_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_repository_history_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_repository_history_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_repository_history_client_stub.call_count + end + end + end + + def test_compute_repository_access_token_status + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + compute_repository_access_token_status_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_compute_repository_access_token_status_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, compute_repository_access_token_status_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.compute_repository_access_token_status({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.compute_repository_access_token_status name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.compute_repository_access_token_status({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, compute_repository_access_token_status_client_stub.call_count + end + end + end + + def test_fetch_remote_branches + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_remote_branches_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_remote_branches_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_remote_branches_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_remote_branches({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_remote_branches name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_remote_branches({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_remote_branches_client_stub.call_count + end + end + end + + def test_list_workspaces + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workspaces_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workspaces_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workspaces_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workspaces_client_stub.call_count + end + end + end + + def test_get_workspace + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Workspace.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workspace({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workspace name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workspace({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workspace_client_stub.call_count + end + end + end + + def test_create_workspace + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Workspace.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workspace = {} + workspace_id = "hello world" + + create_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workspace_client_stub.call_count + end + end + end + + def test_delete_workspace + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workspace_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workspace({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workspace name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workspace({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workspace_client_stub.call_count + end + end + end + + def test_install_npm_packages + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + + install_npm_packages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_install_npm_packages_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, install_npm_packages_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.install_npm_packages({ workspace: workspace }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.install_npm_packages workspace: workspace do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.install_npm_packages({ workspace: workspace }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, install_npm_packages_client_stub.call_count + end + end + end + + def test_pull_git_commits + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + author = {} + + pull_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_pull_git_commits_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, pull_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, pull_git_commits_client_stub.call_count + end + end + end + + def test_push_git_commits + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + push_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_push_git_commits_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, push_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.push_git_commits({ name: name, remote_branch: remote_branch }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.push_git_commits name: name, remote_branch: remote_branch do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.push_git_commits({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, push_git_commits_client_stub.call_count + end + end + end + + def test_fetch_file_git_statuses + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_file_git_statuses_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_git_statuses_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_file_git_statuses_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_file_git_statuses({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_file_git_statuses name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_file_git_statuses({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_file_git_statuses_client_stub.call_count + end + end + end + + def test_fetch_git_ahead_behind + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + fetch_git_ahead_behind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_git_ahead_behind_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_git_ahead_behind_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_git_ahead_behind_client_stub.call_count + end + end + end + + def test_commit_workspace_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + author = {} + commit_message = "hello world" + paths = ["hello world"] + + commit_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_workspace_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, commit_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, commit_workspace_changes_client_stub.call_count + end + end + end + + def test_reset_workspace_changes + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + paths = ["hello world"] + clean = true + + reset_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_reset_workspace_changes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, reset_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.reset_workspace_changes name: name, paths: paths, clean: clean do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, reset_workspace_changes_client_stub.call_count + end + end + end + + def test_fetch_file_diff + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + fetch_file_diff_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_diff_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, fetch_file_diff_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.fetch_file_diff({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.fetch_file_diff workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.fetch_file_diff({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, fetch_file_diff_client_stub.call_count + end + end + end + + def test_query_directory_contents + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + + query_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_directory_contents_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_directory_contents_client_stub.call_count + end + end + end + + def test_search_files + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + search_files_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_files_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_files_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_files_client_stub.call_count + end + end + end + + def test_make_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + make_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_make_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, make_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.make_directory({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.make_directory workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.make_directory({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, make_directory_client_stub.call_count + end + end + end + + def test_remove_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, remove_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.remove_directory({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.remove_directory workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.remove_directory({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, remove_directory_client_stub.call_count + end + end + end + + def test_move_directory + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_directory_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_directory workspace: workspace, path: path, new_path: new_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_directory({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_directory_client_stub.call_count + end + end + end + + def test_read_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReadFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + revision = "hello world" + + read_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, read_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.read_file({ workspace: workspace, path: path, revision: revision }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.read_file workspace: workspace, path: path, revision: revision do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.read_file({ workspace: workspace, path: path, revision: revision }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, read_file_client_stub.call_count + end + end + end + + def test_remove_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, remove_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.remove_file({ workspace: workspace, path: path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.remove_file workspace: workspace, path: path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.remove_file({ workspace: workspace, path: path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, remove_file_client_stub.call_count + end + end + end + + def test_move_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::MoveFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, move_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.move_file workspace: workspace, path: path, new_path: new_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.move_file({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, move_file_client_stub.call_count + end + end + end + + def test_write_file + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WriteFileResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + contents = "hello world" + + write_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_write_file_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, write_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.write_file({ workspace: workspace, path: path, contents: contents }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.write_file workspace: workspace, path: path, contents: contents do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.write_file({ workspace: workspace, path: path, contents: contents }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, write_file_client_stub.call_count + end + end + end + + def test_list_release_configs + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_release_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_release_configs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_release_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_release_configs_client_stub.call_count + end + end + end + + def test_get_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_release_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_release_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_release_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_release_config_client_stub.call_count + end + end + end + + def test_create_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_config = {} + release_config_id = "hello world" + + create_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_release_config_client_stub.call_count + end + end + end + + def test_update_release_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + release_config = {} + + update_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_release_config update_mask: update_mask, release_config: release_config do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_release_config({ update_mask: update_mask, release_config: release_config }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_release_config_client_stub.call_count + end + end + end + + def test_delete_release_config + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_release_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_release_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_release_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_release_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_release_config_client_stub.call_count + end + end + end + + def test_list_compilation_results + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_compilation_results_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_compilation_results_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_compilation_results_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_compilation_results_client_stub.call_count + end + end + end + + def test_get_compilation_result + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_compilation_result_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_compilation_result({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_compilation_result name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_compilation_result({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_compilation_result_client_stub.call_count + end + end + end + + def test_create_compilation_result + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + compilation_result = {} + + create_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_compilation_result_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_compilation_result parent: parent, compilation_result: compilation_result do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_compilation_result_client_stub.call_count + end + end + end + + def test_query_compilation_result_actions + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + query_compilation_result_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_compilation_result_actions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_compilation_result_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_compilation_result_actions_client_stub.call_count + end + end + end + + def test_list_workflow_configs + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_workflow_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_configs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workflow_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workflow_configs_client_stub.call_count + end + end + end + + def test_get_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workflow_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workflow_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workflow_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workflow_config_client_stub.call_count + end + end + end + + def test_create_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_config = {} + workflow_config_id = "hello world" + + create_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workflow_config_client_stub.call_count + end + end + end + + def test_update_workflow_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + workflow_config = {} + + update_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_workflow_config_client_stub.call_count + end + end + end + + def test_delete_workflow_config + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workflow_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workflow_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workflow_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workflow_config_client_stub.call_count + end + end + end + + def test_list_workflow_invocations + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workflow_invocations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_invocations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_workflow_invocations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_workflow_invocations_client_stub.call_count + end + end + end + + def test_get_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_workflow_invocation_client_stub.call_count + end + end + end + + def test_create_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_invocation = {} + + create_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_workflow_invocation_client_stub.call_count + end + end + end + + def test_delete_workflow_invocation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_workflow_invocation_client_stub.call_count + end + end + end + + def test_cancel_workflow_invocation + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_cancel_workflow_invocation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, cancel_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.cancel_workflow_invocation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.cancel_workflow_invocation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.cancel_workflow_invocation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, cancel_workflow_invocation_client_stub.call_count + end + end + end + + def test_query_workflow_invocation_actions + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + query_workflow_invocation_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_workflow_invocation_actions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, query_workflow_invocation_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, query_workflow_invocation_actions_client_stub.call_count + end + end + end + + def test_get_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Config.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_config_client_stub.call_count + end + end + end + + def test_update_config + # Create test objects. + client_result = ::Google::Cloud::Dataform::V1::Config.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + config = {} + update_mask = {} + + update_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_config({ config: config, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_config config: config, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_config({ config: config, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_config_client_stub.call_count + end + end + end + + def test_get_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_count + end + end + end + + def test_set_iam_policy + # Create test objects. + client_result = ::Google::Iam::V1::Policy.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_set_iam_policy_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_count + end + end + end + + def test_test_iam_permissions + # Create test objects. + client_result = ::Google::Iam::V1::TestIamPermissionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_test_iam_permissions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb new file mode 100644 index 000000000000..83dcd399b121 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb @@ -0,0 +1,4668 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/dataform/v1/dataform_pb" +require "google/cloud/dataform/v1/dataform" + +class ::Google::Cloud::Dataform::V1::Dataform::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_team_folder_client_stub.call_rpc_count + end + end + + def test_create_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + team_folder = {} + + create_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_team_folder({ parent: parent, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_team_folder parent: parent, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_team_folder({ parent: parent, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_team_folder_client_stub.call_rpc_count + end + end + + def test_update_team_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + team_folder = {} + + update_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_team_folder update_mask: update_mask, team_folder: team_folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_client_stub.call_rpc_count + end + end + + def test_delete_team_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_team_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_team_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_team_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_team_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_team_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_team_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_team_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_team_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + team_folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_team_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_team_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, request + assert_equal "hello world", request["team_folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_team_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_team_folder_contents_client_stub.call_rpc_count + end + end + + def test_search_team_folders + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + search_team_folders_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_team_folders, name + assert_kind_of ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_team_folders_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_team_folders_client_stub.call_rpc_count + end + end + + def test_get_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_folder_client_stub.call_rpc_count + end + end + + def test_create_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + folder = {} + + create_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateFolderRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_folder({ parent: parent, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_folder parent: parent, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_folder({ parent: parent, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_folder_client_stub.call_rpc_count + end + end + + def test_update_folder + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Folder.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + folder = {} + + update_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateFolderRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_folder({ update_mask: update_mask, folder: folder }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_folder update_mask: update_mask, folder: folder do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_folder({ update_mask: update_mask, folder: folder }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_client_stub.call_rpc_count + end + end + + def test_delete_folder_tree + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_folder_tree, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_folder_tree_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_folder_tree({ name: name, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_folder_tree name: name, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_folder_tree_client_stub.call_rpc_count + end + end + + def test_query_folder_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + folder = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_folder_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, request + assert_equal "hello world", request["folder"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_folder_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_folder_contents_client_stub.call_rpc_count + end + end + + def test_query_user_root_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + location = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + query_user_root_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_user_root_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, request + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_user_root_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_user_root_contents_client_stub.call_rpc_count + end + end + + def test_move_folder + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_folder, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveFolderRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_folder_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_folder name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_folder_client_stub.call_rpc_count + end + end + + def test_list_repositories + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_repositories_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_repositories, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListRepositoriesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_repositories_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_repositories_client_stub.call_rpc_count + end + end + + def test_get_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetRepositoryRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_repository({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_repository name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_repository({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_repository_client_stub.call_rpc_count + end + end + + def test_create_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + repository = {} + repository_id = "hello world" + + create_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateRepositoryRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] + assert_equal "hello world", request["repository_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_repository parent: parent, repository: repository, repository_id: repository_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_repository_client_stub.call_rpc_count + end + end + + def test_update_repository + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Repository.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + repository = {} + + update_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_repository({ update_mask: update_mask, repository: repository }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_repository update_mask: update_mask, repository: repository do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_repository({ update_mask: update_mask, repository: repository }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_repository_client_stub.call_rpc_count + end + end + + def test_delete_repository + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + force = true + + delete_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, request + assert_equal "hello world", request["name"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_repository({ name: name, force: force }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_repository name: name, force: force do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_repository({ name: name, force: force }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_repository_client_stub.call_rpc_count + end + end + + def test_move_repository + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + destination_containing_folder = "hello world" + + move_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_repository, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveRepositoryRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["destination_containing_folder"] + assert request.has_destination_containing_folder? + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_repository_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_repository name: name, destination_containing_folder: destination_containing_folder do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_repository_client_stub.call_rpc_count + end + end + + def test_commit_repository_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_metadata = {} + required_head_commit_sha = "hello world" + file_operations = {} + + commit_repository_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :commit_repository_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitMetadata), request["commit_metadata"] + assert_equal "hello world", request["required_head_commit_sha"] + assert_equal({}, request["file_operations"].to_h) + refute_nil options + end + + Gapic::ServiceStub.stub :new, commit_repository_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, commit_repository_changes_client_stub.call_rpc_count + end + end + + def test_read_repository_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + + read_repository_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :read_repository_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["commit_sha"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, read_repository_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.read_repository_file name: name, commit_sha: commit_sha, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, read_repository_file_client_stub.call_rpc_count + end + end + + def test_query_repository_directory_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + commit_sha = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + + query_repository_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_repository_directory_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["commit_sha"] + assert_equal "hello world", request["path"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_repository_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_repository_directory_contents_client_stub.call_rpc_count + end + end + + def test_fetch_repository_history + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + fetch_repository_history_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_repository_history, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_repository_history_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_repository_history_client_stub.call_rpc_count + end + end + + def test_compute_repository_access_token_status + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + compute_repository_access_token_status_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :compute_repository_access_token_status, name + assert_kind_of ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, compute_repository_access_token_status_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.compute_repository_access_token_status({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.compute_repository_access_token_status name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.compute_repository_access_token_status({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, compute_repository_access_token_status_client_stub.call_rpc_count + end + end + + def test_fetch_remote_branches + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_remote_branches_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_remote_branches, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_remote_branches_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_remote_branches({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_remote_branches name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_remote_branches({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_remote_branches_client_stub.call_rpc_count + end + end + + def test_list_workspaces + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workspaces_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workspaces, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkspacesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workspaces_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workspaces_client_stub.call_rpc_count + end + end + + def test_get_workspace + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkspaceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workspace({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workspace name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workspace({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workspace_client_stub.call_rpc_count + end + end + + def test_create_workspace + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workspace = {} + workspace_id = "hello world" + + create_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Workspace), request["workspace"] + assert_equal "hello world", request["workspace_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workspace_client_stub.call_rpc_count + end + end + + def test_delete_workspace + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workspace, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workspace_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workspace({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workspace name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workspace({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workspace_client_stub.call_rpc_count + end + end + + def test_install_npm_packages + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + + install_npm_packages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :install_npm_packages, name + assert_kind_of ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, request + assert_equal "hello world", request["workspace"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, install_npm_packages_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.install_npm_packages({ workspace: workspace }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.install_npm_packages workspace: workspace do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.install_npm_packages({ workspace: workspace }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, install_npm_packages_client_stub.call_rpc_count + end + end + + def test_pull_git_commits + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + author = {} + + pull_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :pull_git_commits, name + assert_kind_of ::Google::Cloud::Dataform::V1::PullGitCommitsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, pull_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, pull_git_commits_client_stub.call_rpc_count + end + end + + def test_push_git_commits + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + push_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :push_git_commits, name + assert_kind_of ::Google::Cloud::Dataform::V1::PushGitCommitsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, push_git_commits_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.push_git_commits({ name: name, remote_branch: remote_branch }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.push_git_commits name: name, remote_branch: remote_branch do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.push_git_commits({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, push_git_commits_client_stub.call_rpc_count + end + end + + def test_fetch_file_git_statuses + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + fetch_file_git_statuses_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_file_git_statuses, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_file_git_statuses_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_file_git_statuses({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_file_git_statuses name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_file_git_statuses({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_file_git_statuses_client_stub.call_rpc_count + end + end + + def test_fetch_git_ahead_behind + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + remote_branch = "hello world" + + fetch_git_ahead_behind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_git_ahead_behind, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["remote_branch"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_git_ahead_behind_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_git_ahead_behind_client_stub.call_rpc_count + end + end + + def test_commit_workspace_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + author = {} + commit_message = "hello world" + paths = ["hello world"] + + commit_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :commit_workspace_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] + assert_equal "hello world", request["commit_message"] + assert_equal ["hello world"], request["paths"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, commit_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, commit_workspace_changes_client_stub.call_rpc_count + end + end + + def test_reset_workspace_changes + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + paths = ["hello world"] + clean = true + + reset_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :reset_workspace_changes, name + assert_kind_of ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, request + assert_equal "hello world", request["name"] + assert_equal ["hello world"], request["paths"] + assert_equal true, request["clean"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, reset_workspace_changes_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.reset_workspace_changes name: name, paths: paths, clean: clean do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, reset_workspace_changes_client_stub.call_rpc_count + end + end + + def test_fetch_file_diff + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + fetch_file_diff_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :fetch_file_diff, name + assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileDiffRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, fetch_file_diff_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.fetch_file_diff({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.fetch_file_diff workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.fetch_file_diff({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, fetch_file_diff_client_stub.call_rpc_count + end + end + + def test_query_directory_contents + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + page_size = 42 + page_token = "hello world" + view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + + query_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_directory_contents, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED, request["view"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_directory_contents_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_directory_contents_client_stub.call_rpc_count + end + end + + def test_search_files + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + search_files_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_files, name + assert_kind_of ::Google::Cloud::Dataform::V1::SearchFilesRequest, request + assert_equal "hello world", request["workspace"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_files_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_files_client_stub.call_rpc_count + end + end + + def test_make_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + make_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :make_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::MakeDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, make_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.make_directory({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.make_directory workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.make_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, make_directory_client_stub.call_rpc_count + end + end + + def test_remove_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :remove_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, remove_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.remove_directory({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.remove_directory workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.remove_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, remove_directory_client_stub.call_rpc_count + end + end + + def test_move_directory + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_directory, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveDirectoryRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["new_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_directory_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_directory workspace: workspace, path: path, new_path: new_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_directory({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_directory_client_stub.call_rpc_count + end + end + + def test_read_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReadFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + revision = "hello world" + + read_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :read_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::ReadFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["revision"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, read_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.read_file({ workspace: workspace, path: path, revision: revision }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.read_file workspace: workspace, path: path, revision: revision do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.read_file({ workspace: workspace, path: path, revision: revision }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, read_file_client_stub.call_rpc_count + end + end + + def test_remove_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + + remove_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :remove_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::RemoveFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, remove_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.remove_file({ workspace: workspace, path: path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.remove_file workspace: workspace, path: path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.remove_file({ workspace: workspace, path: path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, remove_file_client_stub.call_rpc_count + end + end + + def test_move_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::MoveFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + new_path = "hello world" + + move_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :move_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::MoveFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["new_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, move_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.move_file workspace: workspace, path: path, new_path: new_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.move_file({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, move_file_client_stub.call_rpc_count + end + end + + def test_write_file + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WriteFileResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + workspace = "hello world" + path = "hello world" + contents = "hello world" + + write_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :write_file, name + assert_kind_of ::Google::Cloud::Dataform::V1::WriteFileRequest, request + assert_equal "hello world", request["workspace"] + assert_equal "hello world", request["path"] + assert_equal "hello world", request["contents"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, write_file_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.write_file({ workspace: workspace, path: path, contents: contents }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.write_file workspace: workspace, path: path, contents: contents do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.write_file({ workspace: workspace, path: path, contents: contents }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, write_file_client_stub.call_rpc_count + end + end + + def test_list_release_configs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_release_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_release_configs, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_release_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_release_configs_client_stub.call_rpc_count + end + end + + def test_get_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_release_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_release_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_release_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_release_config_client_stub.call_rpc_count + end + end + + def test_create_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + release_config = {} + release_config_id = "hello world" + + create_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] + assert_equal "hello world", request["release_config_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_release_config_client_stub.call_rpc_count + end + end + + def test_update_release_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + release_config = {} + + update_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_release_config update_mask: update_mask, release_config: release_config do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_release_config({ update_mask: update_mask, release_config: release_config }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_release_config_client_stub.call_rpc_count + end + end + + def test_delete_release_config + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_release_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_release_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_release_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_release_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_release_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_release_config_client_stub.call_rpc_count + end + end + + def test_list_compilation_results + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_compilation_results_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_compilation_results, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_compilation_results_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_compilation_results_client_stub.call_rpc_count + end + end + + def test_get_compilation_result + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_compilation_result, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetCompilationResultRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_compilation_result({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_compilation_result name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_compilation_result({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_compilation_result_client_stub.call_rpc_count + end + end + + def test_create_compilation_result + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + compilation_result = {} + + create_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_compilation_result, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CompilationResult), request["compilation_result"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_compilation_result_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_compilation_result parent: parent, compilation_result: compilation_result do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_compilation_result_client_stub.call_rpc_count + end + end + + def test_query_compilation_result_actions + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + query_compilation_result_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_compilation_result_actions, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_compilation_result_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_compilation_result_actions_client_stub.call_rpc_count + end + end + + def test_list_workflow_configs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_workflow_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workflow_configs, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workflow_configs_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workflow_configs_client_stub.call_rpc_count + end + end + + def test_get_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workflow_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workflow_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workflow_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workflow_config_client_stub.call_rpc_count + end + end + + def test_create_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_config = {} + workflow_config_id = "hello world" + + create_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] + assert_equal "hello world", request["workflow_config_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workflow_config_client_stub.call_rpc_count + end + end + + def test_update_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + workflow_config = {} + + update_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_workflow_config_client_stub.call_rpc_count + end + end + + def test_delete_workflow_config + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workflow_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workflow_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workflow_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workflow_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workflow_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workflow_config_client_stub.call_rpc_count + end + end + + def test_list_workflow_invocations + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + order_by = "hello world" + filter = "hello world" + + list_workflow_invocations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_workflow_invocations, name + assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["order_by"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_workflow_invocations_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_workflow_invocations_client_stub.call_rpc_count + end + end + + def test_get_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_create_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + workflow_invocation = {} + + create_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowInvocation), request["workflow_invocation"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_delete_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_cancel_workflow_invocation + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_workflow_invocation, name + assert_kind_of ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_workflow_invocation_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_workflow_invocation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_workflow_invocation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_workflow_invocation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_workflow_invocation_client_stub.call_rpc_count + end + end + + def test_query_workflow_invocation_actions + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + page_size = 42 + page_token = "hello world" + + query_workflow_invocation_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :query_workflow_invocation_actions, name + assert_kind_of ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, request + assert_equal "hello world", request["name"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, query_workflow_invocation_actions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, query_workflow_invocation_actions_client_stub.call_rpc_count + end + end + + def test_get_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Config.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::GetConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_config_client_stub.call_rpc_count + end + end + + def test_update_config + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataform::V1::Config.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + config = {} + update_mask = {} + + update_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_config, name + assert_kind_of ::Google::Cloud::Dataform::V1::UpdateConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Config), request["config"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_config_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_config({ config: config, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_config config: config, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_config({ config: config, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_config_client_stub.call_rpc_count + end + end + + def test_get_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + options = {} + + get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_iam_policy, name + assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_iam_policy({ resource: resource, options: options }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_iam_policy resource: resource, options: options do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_iam_policy_client_stub.call_rpc_count + end + end + + def test_set_iam_policy + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::Policy.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + policy = {} + update_mask = {} + + set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :set_iam_policy, name + assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request + assert_equal "hello world", request["resource"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, set_iam_policy_client_stub.call_rpc_count + end + end + + def test_test_iam_permissions + # Create GRPC objects. + grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + resource = "hello world" + permissions = ["hello world"] + + test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_iam_permissions, name + assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request + assert_equal "hello world", request["resource"] + assert_equal ["hello world"], request["permissions"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do + # Create client + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_iam_permissions_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb new file mode 100644 index 000000000000..61e4289027f4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/longrunning/operations_pb" +require "google/longrunning/operations_services_pb" +require "google/longrunning/operations" + +class ::Google::Longrunning::Operations::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb new file mode 100644 index 000000000000..deeeeee2c568 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb @@ -0,0 +1,319 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/longrunning/operations_pb" +require "google/longrunning/operations/rest" + + +class ::Google::Longrunning::Operations::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create test objects. + client_result = ::Google::Longrunning::ListOperationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_list_operations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_count + end + end + end + + def test_get_operation + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_get_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_count + end + end + end + + def test_delete_operation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_delete_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_count + end + end + end + + def test_cancel_operation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_cancel_operation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.cancel_operation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.cancel_operation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.cancel_operation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb new file mode 100644 index 000000000000..72ed015901db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb @@ -0,0 +1,433 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/longrunning/operations_pb" +require "google/longrunning/operations" + +class ::Google::Longrunning::Operations::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Longrunning::Operations::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Longrunning::Operations::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Longrunning::Operations::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Longrunning::Operations::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From df963aa9399c70ee2cf4e9ec3a101c76491e15c0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 1 Apr 2026 08:06:44 +0000 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../proto_docs/google/api/client.rb | 4 + .../google-cloud-dataform-v1/.gitignore | 22 - .../.repo-metadata.json | 17 - .../google-cloud-dataform-v1/.rubocop.yml | 33 - .../google-cloud-dataform-v1/.toys.rb | 28 - .../google-cloud-dataform-v1/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../google-cloud-dataform-v1/CHANGELOG.md | 2 - .../google-cloud-dataform-v1/Gemfile | 14 - .../google-cloud-dataform-v1/LICENSE.md | 201 - .../google-cloud-dataform-v1/README.md | 154 - .../google-cloud-dataform-v1/Rakefile | 169 - .../gapic_metadata.json | 383 - .../google-cloud-dataform-v1.gemspec | 30 - .../lib/google-cloud-dataform-v1.rb | 22 - .../lib/google/cloud/dataform/v1.rb | 45 - .../cloud/dataform/v1/bindings_override.rb | 75 - .../lib/google/cloud/dataform/v1/dataform.rb | 57 - .../cloud/dataform/v1/dataform/client.rb | 7794 ----------------- .../cloud/dataform/v1/dataform/credentials.rb | 48 - .../cloud/dataform/v1/dataform/operations.rb | 841 -- .../cloud/dataform/v1/dataform/paths.rb | 311 - .../google/cloud/dataform/v1/dataform/rest.rb | 55 - .../cloud/dataform/v1/dataform/rest/client.rb | 7248 --------------- .../dataform/v1/dataform/rest/operations.rb | 925 -- .../dataform/v1/dataform/rest/service_stub.rb | 4636 ---------- .../google/cloud/dataform/v1/dataform_pb.rb | 216 - .../cloud/dataform/v1/dataform_services_pb.rb | 234 - .../lib/google/cloud/dataform/v1/rest.rb | 38 - .../lib/google/cloud/dataform/v1/version.rb | 28 - .../lib/google/longrunning.rb | 41 - .../google/longrunning/bindings_override.rb | 71 - .../lib/google/longrunning/operations.rb | 59 - .../google/longrunning/operations/client.rb | 952 -- .../longrunning/operations/credentials.rb | 40 - .../longrunning/operations/operations.rb | 837 -- .../lib/google/longrunning/operations/rest.rb | 57 - .../longrunning/operations/rest/client.rb | 776 -- .../longrunning/operations/rest/operations.rb | 921 -- .../operations/rest/service_stub.rb | 322 - .../lib/google/longrunning/rest.rb | 34 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 593 -- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../google/cloud/dataform/v1/dataform.rb | 3308 ------- .../google/longrunning/operations.rb | 191 - .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/expr.rb | 75 - .../proto_docs/google/type/interval.rb | 45 - .../google-cloud-dataform-v1/snippets/Gemfile | 32 - .../dataform/cancel_workflow_invocation.rb | 47 - .../dataform/commit_repository_changes.rb | 47 - .../dataform/commit_workspace_changes.rb | 47 - .../compute_repository_access_token_status.rb | 47 - .../dataform/create_compilation_result.rb | 47 - .../snippets/dataform/create_folder.rb | 47 - .../dataform/create_release_config.rb | 47 - .../snippets/dataform/create_repository.rb | 47 - .../snippets/dataform/create_team_folder.rb | 47 - .../dataform/create_workflow_config.rb | 47 - .../dataform/create_workflow_invocation.rb | 47 - .../snippets/dataform/create_workspace.rb | 47 - .../snippets/dataform/delete_folder.rb | 47 - .../snippets/dataform/delete_folder_tree.rb | 54 - .../dataform/delete_release_config.rb | 47 - .../snippets/dataform/delete_repository.rb | 47 - .../snippets/dataform/delete_team_folder.rb | 47 - .../dataform/delete_team_folder_tree.rb | 54 - .../dataform/delete_workflow_config.rb | 47 - .../dataform/delete_workflow_invocation.rb | 47 - .../snippets/dataform/delete_workspace.rb | 47 - .../snippets/dataform/fetch_file_diff.rb | 47 - .../dataform/fetch_file_git_statuses.rb | 47 - .../dataform/fetch_git_ahead_behind.rb | 47 - .../dataform/fetch_remote_branches.rb | 47 - .../dataform/fetch_repository_history.rb | 51 - .../dataform/get_compilation_result.rb | 47 - .../snippets/dataform/get_config.rb | 47 - .../snippets/dataform/get_folder.rb | 47 - .../snippets/dataform/get_iam_policy.rb | 47 - .../snippets/dataform/get_release_config.rb | 47 - .../snippets/dataform/get_repository.rb | 47 - .../snippets/dataform/get_team_folder.rb | 47 - .../snippets/dataform/get_workflow_config.rb | 47 - .../dataform/get_workflow_invocation.rb | 47 - .../snippets/dataform/get_workspace.rb | 47 - .../snippets/dataform/install_npm_packages.rb | 47 - .../dataform/list_compilation_results.rb | 51 - .../snippets/dataform/list_release_configs.rb | 51 - .../snippets/dataform/list_repositories.rb | 51 - .../dataform/list_workflow_configs.rb | 51 - .../dataform/list_workflow_invocations.rb | 51 - .../snippets/dataform/list_workspaces.rb | 51 - .../snippets/dataform/make_directory.rb | 47 - .../snippets/dataform/move_directory.rb | 47 - .../snippets/dataform/move_file.rb | 47 - .../snippets/dataform/move_folder.rb | 54 - .../snippets/dataform/move_repository.rb | 54 - .../snippets/dataform/pull_git_commits.rb | 47 - .../snippets/dataform/push_git_commits.rb | 47 - .../query_compilation_result_actions.rb | 51 - .../dataform/query_directory_contents.rb | 51 - .../dataform/query_folder_contents.rb | 51 - .../query_repository_directory_contents.rb | 51 - .../dataform/query_team_folder_contents.rb | 51 - .../dataform/query_user_root_contents.rb | 51 - .../query_workflow_invocation_actions.rb | 51 - .../snippets/dataform/read_file.rb | 47 - .../snippets/dataform/read_repository_file.rb | 47 - .../snippets/dataform/remove_directory.rb | 47 - .../snippets/dataform/remove_file.rb | 47 - .../dataform/reset_workspace_changes.rb | 47 - .../snippets/dataform/search_files.rb | 51 - .../snippets/dataform/search_team_folders.rb | 51 - .../snippets/dataform/set_iam_policy.rb | 47 - .../snippets/dataform/test_iam_permissions.rb | 47 - .../snippets/dataform/update_config.rb | 47 - .../snippets/dataform/update_folder.rb | 47 - .../dataform/update_release_config.rb | 47 - .../snippets/dataform/update_repository.rb | 47 - .../snippets/dataform/update_team_folder.rb | 47 - .../dataform/update_workflow_config.rb | 47 - .../snippets/dataform/write_file.rb | 47 - .../snippets/operations/cancel_operation.rb | 47 - .../snippets/operations/delete_operation.rb | 47 - .../snippets/operations/get_operation.rb | 54 - .../snippets/operations/list_operations.rb | 51 - .../snippets/operations/wait_operation.rb | 54 - ...pet_metadata_google.cloud.dataform.v1.json | 2935 ------- .../snippet_metadata_google.longrunning.json | 215 - .../dataform/v1/dataform_operations_test.rb | 400 - .../cloud/dataform/v1/dataform_paths_test.rb | 211 - .../cloud/dataform/v1/dataform_rest_test.rb | 4148 --------- .../google/cloud/dataform/v1/dataform_test.rb | 4668 ---------- .../longrunning/operations_operations_test.rb | 400 - .../longrunning/operations_rest_test.rb | 319 - .../google/longrunning/operations_test.rb | 433 - .../google-cloud-dataform-v1/test/helper.rb | 26 - 145 files changed, 4 insertions(+), 50713 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.gitignore delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/.yardopts delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/README.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/Rakefile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/version.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/bindings_override.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataform-v1/test/helper.rb diff --git a/google-cloud-dataform-v1/proto_docs/google/api/client.rb b/google-cloud-dataform-v1/proto_docs/google/api/client.rb index 25b227e61cdc..30c954fb0d5c 100644 --- a/google-cloud-dataform-v1/proto_docs/google/api/client.rb +++ b/google-cloud-dataform-v1/proto_docs/google/api/client.rb @@ -31,6 +31,8 @@ module Api # @!attribute [rw] selective_gapic_generation # @return [::Google::Api::SelectiveGapicGeneration] # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. class CommonLanguageSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -441,6 +443,8 @@ class LongRunning # This message is used to configure the generation of a subset of the RPCs in # a service for client libraries. + # + # Note: This feature should not be used in most cases. # @!attribute [rw] methods # @return [::Array<::String>] # An allowlist of the fully qualified names of RPCs that should be included diff --git a/owl-bot-staging/google-cloud-dataform-v1/.gitignore b/owl-bot-staging/google-cloud-dataform-v1/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json deleted file mode 100644 index 637d61a979b2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_id": "dataform.googleapis.com", - "api_shortname": "dataform", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest", - "distribution_name": "google-cloud-dataform-v1", - "is_cloud": true, - "language": "ruby", - "name": "dataform", - "name_pretty": "Dataform V1 API", - "product_documentation": "https://cloud.google.com/dataform/docs/overview", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details.", - "ruby-cloud-product-url": "https://cloud.google.com/dataform/docs/overview", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml b/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml deleted file mode 100644 index 6f84a6d0a78b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-dataform-v1.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-dataform-v1.rb" diff --git a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb b/owl-bot-staging/google-cloud-dataform-v1/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/.yardopts b/owl-bot-staging/google-cloud-dataform-v1/.yardopts deleted file mode 100644 index f98df5dcdd6e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Dataform V1 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md deleted file mode 100644 index 91f83b42e5fa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-dataform-v1 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-dataform-v1 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/dataform/v1" - -client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/dataform/v1" - -::Google::Longrunning::Operations::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Longrunning::Operations::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-dataform-v1 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/dataform/v1" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Longrunning::Operations::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-dataform-v1/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md b/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataform-v1/README.md b/owl-bot-staging/google-cloud-dataform-v1/README.md deleted file mode 100644 index bd989cf181ba..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Dataform V1 API - -Service to develop, version control, and operationalize SQL pipelines in BigQuery. - -Service to develop, version control, and operationalize SQL pipelines in BigQuery. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Dataform V1 API. Most users should consider using -the main client gem, -[google-cloud-dataform](https://rubygems.org/gems/google-cloud-dataform). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-dataform-v1 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/dataform.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/dataform/v1" - -client = ::Google::Longrunning::Operations::Client.new -request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...) -response = client.list_operations request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/dataform/docs/overview) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/dataform/v1" -require "logger" - -client = ::Google::Longrunning::Operations::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-dataform`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-dataform-v1`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-dataform`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-dataform-v1`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataform-v1/Rakefile b/owl-bot-staging/google-cloud-dataform-v1/Rakefile deleted file mode 100644 index 5a65a0a061e8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-dataform-v1 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["GOOGLE_CLOUD_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/longrunning/operations/credentials" - ::Google::Longrunning::Operations::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["GOOGLE_CLOUD_PROJECT"] = project - ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project - ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-dataform-v1 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataform-v1 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataform-v1 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-dataform-v1 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-dataform-v1" - header "google-cloud-dataform-v1 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-dataform-v1 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-dataform-v1 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-dataform-v1 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-dataform-v1 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json deleted file mode 100644 index da5082c37f30..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/gapic_metadata.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.cloud.dataform.v1", - "libraryPackage": "::Google::Cloud::Dataform::V1", - "services": { - "Dataform": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataform::V1::Dataform::Client", - "rpcs": { - "GetTeamFolder": { - "methods": [ - "get_team_folder" - ] - }, - "CreateTeamFolder": { - "methods": [ - "create_team_folder" - ] - }, - "UpdateTeamFolder": { - "methods": [ - "update_team_folder" - ] - }, - "DeleteTeamFolder": { - "methods": [ - "delete_team_folder" - ] - }, - "DeleteTeamFolderTree": { - "methods": [ - "delete_team_folder_tree" - ] - }, - "QueryTeamFolderContents": { - "methods": [ - "query_team_folder_contents" - ] - }, - "SearchTeamFolders": { - "methods": [ - "search_team_folders" - ] - }, - "GetFolder": { - "methods": [ - "get_folder" - ] - }, - "CreateFolder": { - "methods": [ - "create_folder" - ] - }, - "UpdateFolder": { - "methods": [ - "update_folder" - ] - }, - "DeleteFolder": { - "methods": [ - "delete_folder" - ] - }, - "DeleteFolderTree": { - "methods": [ - "delete_folder_tree" - ] - }, - "QueryFolderContents": { - "methods": [ - "query_folder_contents" - ] - }, - "QueryUserRootContents": { - "methods": [ - "query_user_root_contents" - ] - }, - "MoveFolder": { - "methods": [ - "move_folder" - ] - }, - "ListRepositories": { - "methods": [ - "list_repositories" - ] - }, - "GetRepository": { - "methods": [ - "get_repository" - ] - }, - "CreateRepository": { - "methods": [ - "create_repository" - ] - }, - "UpdateRepository": { - "methods": [ - "update_repository" - ] - }, - "DeleteRepository": { - "methods": [ - "delete_repository" - ] - }, - "MoveRepository": { - "methods": [ - "move_repository" - ] - }, - "CommitRepositoryChanges": { - "methods": [ - "commit_repository_changes" - ] - }, - "ReadRepositoryFile": { - "methods": [ - "read_repository_file" - ] - }, - "QueryRepositoryDirectoryContents": { - "methods": [ - "query_repository_directory_contents" - ] - }, - "FetchRepositoryHistory": { - "methods": [ - "fetch_repository_history" - ] - }, - "ComputeRepositoryAccessTokenStatus": { - "methods": [ - "compute_repository_access_token_status" - ] - }, - "FetchRemoteBranches": { - "methods": [ - "fetch_remote_branches" - ] - }, - "ListWorkspaces": { - "methods": [ - "list_workspaces" - ] - }, - "GetWorkspace": { - "methods": [ - "get_workspace" - ] - }, - "CreateWorkspace": { - "methods": [ - "create_workspace" - ] - }, - "DeleteWorkspace": { - "methods": [ - "delete_workspace" - ] - }, - "InstallNpmPackages": { - "methods": [ - "install_npm_packages" - ] - }, - "PullGitCommits": { - "methods": [ - "pull_git_commits" - ] - }, - "PushGitCommits": { - "methods": [ - "push_git_commits" - ] - }, - "FetchFileGitStatuses": { - "methods": [ - "fetch_file_git_statuses" - ] - }, - "FetchGitAheadBehind": { - "methods": [ - "fetch_git_ahead_behind" - ] - }, - "CommitWorkspaceChanges": { - "methods": [ - "commit_workspace_changes" - ] - }, - "ResetWorkspaceChanges": { - "methods": [ - "reset_workspace_changes" - ] - }, - "FetchFileDiff": { - "methods": [ - "fetch_file_diff" - ] - }, - "QueryDirectoryContents": { - "methods": [ - "query_directory_contents" - ] - }, - "SearchFiles": { - "methods": [ - "search_files" - ] - }, - "MakeDirectory": { - "methods": [ - "make_directory" - ] - }, - "RemoveDirectory": { - "methods": [ - "remove_directory" - ] - }, - "MoveDirectory": { - "methods": [ - "move_directory" - ] - }, - "ReadFile": { - "methods": [ - "read_file" - ] - }, - "RemoveFile": { - "methods": [ - "remove_file" - ] - }, - "MoveFile": { - "methods": [ - "move_file" - ] - }, - "WriteFile": { - "methods": [ - "write_file" - ] - }, - "ListReleaseConfigs": { - "methods": [ - "list_release_configs" - ] - }, - "GetReleaseConfig": { - "methods": [ - "get_release_config" - ] - }, - "CreateReleaseConfig": { - "methods": [ - "create_release_config" - ] - }, - "UpdateReleaseConfig": { - "methods": [ - "update_release_config" - ] - }, - "DeleteReleaseConfig": { - "methods": [ - "delete_release_config" - ] - }, - "ListCompilationResults": { - "methods": [ - "list_compilation_results" - ] - }, - "GetCompilationResult": { - "methods": [ - "get_compilation_result" - ] - }, - "CreateCompilationResult": { - "methods": [ - "create_compilation_result" - ] - }, - "QueryCompilationResultActions": { - "methods": [ - "query_compilation_result_actions" - ] - }, - "ListWorkflowConfigs": { - "methods": [ - "list_workflow_configs" - ] - }, - "GetWorkflowConfig": { - "methods": [ - "get_workflow_config" - ] - }, - "CreateWorkflowConfig": { - "methods": [ - "create_workflow_config" - ] - }, - "UpdateWorkflowConfig": { - "methods": [ - "update_workflow_config" - ] - }, - "DeleteWorkflowConfig": { - "methods": [ - "delete_workflow_config" - ] - }, - "ListWorkflowInvocations": { - "methods": [ - "list_workflow_invocations" - ] - }, - "GetWorkflowInvocation": { - "methods": [ - "get_workflow_invocation" - ] - }, - "CreateWorkflowInvocation": { - "methods": [ - "create_workflow_invocation" - ] - }, - "DeleteWorkflowInvocation": { - "methods": [ - "delete_workflow_invocation" - ] - }, - "CancelWorkflowInvocation": { - "methods": [ - "cancel_workflow_invocation" - ] - }, - "QueryWorkflowInvocationActions": { - "methods": [ - "query_workflow_invocation_actions" - ] - }, - "GetConfig": { - "methods": [ - "get_config" - ] - }, - "UpdateConfig": { - "methods": [ - "update_config" - ] - }, - "GetIamPolicy": { - "methods": [ - "get_iam_policy" - ] - }, - "SetIamPolicy": { - "methods": [ - "set_iam_policy" - ] - }, - "TestIamPermissions": { - "methods": [ - "test_iam_permissions" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec b/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec deleted file mode 100644 index 76010660b167..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/google-cloud-dataform-v1.gemspec +++ /dev/null @@ -1,30 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/dataform/v1/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-dataform-v1" - gem.version = Google::Cloud::Dataform::V1::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Service to develop, version control, and operationalize SQL pipelines in BigQuery. Note that google-cloud-dataform-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataform instead. See the readme for more details." - gem.summary = "Service to develop, version control, and operationalize SQL pipelines in BigQuery." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "google-cloud-location", "~> 1.0" - gem.add_dependency "google-iam-v1", "~> 1.3" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb deleted file mode 100644 index 015820e39535..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google-cloud-dataform-v1.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/dataform/v1" -# require "google/longrunning" diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb deleted file mode 100644 index 7a6071098191..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataform/v1/dataform" -require "google/cloud/dataform/v1/version" - -module Google - module Cloud - module Dataform - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/dataform/v1" - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/dataform/v1" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module V1 - end - end - end -end - -helper_path = ::File.join __dir__, "v1", "_helpers.rb" -require "google/cloud/dataform/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb deleted file mode 100644 index 655e4a1eab49..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/bindings_override.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" - -module Google - module Cloud - module Dataform - ## - # @example Loading just the REST part of this package, including all its services, and instantiating a REST client - # - # require "google/cloud/dataform/v1/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module V1 - ## - # @private - # Initialize the mixin bindings configuration - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - - default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config - default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}/locations", - matches: [ - ["name", %r{^projects/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config - end - yield @configure if block_given? - @configure - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb deleted file mode 100644 index ac1adbd0da42..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" - -require "google/cloud/dataform/v1/dataform/credentials" -require "google/cloud/dataform/v1/dataform/paths" -require "google/cloud/dataform/v1/dataform/operations" -require "google/cloud/dataform/v1/dataform/client" -require "google/cloud/dataform/v1/dataform/rest" - -module Google - module Cloud - module Dataform - module V1 - ## - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataform/v1/dataform" - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataform/v1/dataform/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module Dataform - end - end - end - end -end - -helper_path = ::File.join __dir__, "dataform", "helpers.rb" -require "google/cloud/dataform/v1/dataform/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb deleted file mode 100644 index 632bdd44803f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/client.rb +++ /dev/null @@ -1,7794 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/location" -require "google/iam/v1" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - ## - # Client for the Dataform service. - # - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :dataform_stub - - ## - # Configure the Dataform Client class. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Dataform clients - # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @dataform_stub.universe_domain - end - - ## - # Create a new Dataform client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Dataform client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/cloud/dataform/v1/dataform_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @dataform_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataform::V1::Dataform::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @dataform_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Dataform::V1::Dataform::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @dataform_stub.logger - end - - # Service calls - - ## - # Fetches a single TeamFolder. - # - # @overload get_team_folder(request, options = nil) - # Pass arguments to `get_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_team_folder(name: nil) - # Pass arguments to `get_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - # - # # Call the get_team_folder method. - # result = client.get_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def get_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new TeamFolder in a given project and location. - # - # @overload create_team_folder(request, options = nil) - # Pass arguments to `create_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_team_folder(parent: nil, team_folder: nil) - # Pass arguments to `create_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The TeamFolder to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - # - # # Call the create_team_folder method. - # result = client.create_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def create_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single TeamFolder. - # - # @overload update_team_folder(request, options = nil) - # Pass arguments to `update_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_team_folder(update_mask: nil, team_folder: nil) - # Pass arguments to `update_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The updated TeamFolder. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - # - # # Call the update_team_folder method. - # result = client.update_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def update_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.team_folder&.name - header_params["team_folder.name"] = request.team_folder.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single TeamFolder. - # - # @overload delete_team_folder(request, options = nil) - # Pass arguments to `delete_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_team_folder(name: nil) - # Pass arguments to `delete_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - # - # # Call the delete_team_folder method. - # result = client.delete_team_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_team_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_team_folder_tree(request, options = nil) - # Pass arguments to `delete_team_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_team_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - # - # # Call the delete_team_folder_tree method. - # result = client.delete_team_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_team_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_team_folder_tree, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given TeamFolder. - # - # @overload query_team_folder_contents(request, options = nil) - # Pass arguments to `query_team_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param team_folder [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - # - # # Call the query_team_folder_contents method. - # result = client.query_team_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - # p item - # end - # - def query_team_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_team_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.team_folder - header_params["team_folder"] = request.team_folder - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_team_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_team_folder_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all TeamFolders in a given location that the caller has access to - # and match the provided filter. - # - # @overload search_team_folders(request, options = nil) - # Pass arguments to `search_team_folders` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `search_team_folders` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - # - # # Call the search_team_folders method. - # result = client.search_team_folders request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - # p item - # end - # - def search_team_folders request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_team_folders.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_team_folders.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :search_team_folders, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_team_folders, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Folder. - # - # @overload get_folder(request, options = nil) - # Pass arguments to `get_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_folder(name: nil) - # Pass arguments to `get_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetFolderRequest.new - # - # # Call the get_folder method. - # result = client.get_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def get_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Folder in a given project and location. - # - # @overload create_folder(request, options = nil) - # Pass arguments to `create_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_folder(parent: nil, folder: nil) - # Pass arguments to `create_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The Folder to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - # - # # Call the create_folder method. - # result = client.create_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def create_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Folder. - # - # @overload update_folder(request, options = nil) - # Pass arguments to `update_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_folder(update_mask: nil, folder: nil) - # Pass arguments to `update_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The updated Folder. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - # - # # Call the update_folder method. - # result = client.update_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def update_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.folder&.name - header_params["folder.name"] = request.folder.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Folder. - # - # @overload delete_folder(request, options = nil) - # Pass arguments to `delete_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_folder(name: nil) - # Pass arguments to `delete_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - # - # # Call the delete_folder method. - # result = client.delete_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_folder, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Folder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_folder_tree(request, options = nil) - # Pass arguments to `delete_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - # - # # Call the delete_folder_tree method. - # result = client.delete_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_folder_tree, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Folder. - # - # @overload query_folder_contents(request, options = nil) - # Pass arguments to `query_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param folder [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - # - # # Call the query_folder_contents method. - # result = client.query_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - # p item - # end - # - def query_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.folder - header_params["folder"] = request.folder - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_folder_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_folder_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a caller's root folder in a given location. - # The root folder contains all resources that are created by the user and not - # contained in any other folder. - # - # @overload query_user_root_contents(request, options = nil) - # Pass arguments to `query_user_root_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - # - # # Call the query_user_root_contents method. - # result = client.query_user_root_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - # p item - # end - # - def query_user_root_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_user_root_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_user_root_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_user_root_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_user_root_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Folder to a new Folder, TeamFolder, or the root location. - # - # @overload move_folder(request, options = nil) - # Pass arguments to `move_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_folder(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the Folder to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - # - # # Call the move_folder method. - # result = client.move_folder request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_folder.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_folder, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Repositories in a given project and location. - # - # **Note:** *This method can return repositories not shown in the [Dataform - # UI](https://console.cloud.google.com/bigquery/dataform)*. - # - # @overload list_repositories(request, options = nil) - # Pass arguments to `list_repositories` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_repositories` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - # - # # Call the list_repositories method. - # result = client.list_repositories request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - # p item - # end - # - def list_repositories request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_repositories.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_repositories.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_repositories, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_repositories, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Repository. - # - # @overload get_repository(request, options = nil) - # Pass arguments to `get_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_repository(name: nil) - # Pass arguments to `get_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - # - # # Call the get_repository method. - # result = client.get_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def get_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Repository in a given project and location. - # - # @overload create_repository(request, options = nil) - # Pass arguments to `create_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_repository(parent: nil, repository: nil, repository_id: nil) - # Pass arguments to `create_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to create. - # @param repository_id [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - # - # # Call the create_repository method. - # result = client.create_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def create_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Repository. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_repository(request, options = nil) - # Pass arguments to `update_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_repository(update_mask: nil, repository: nil) - # Pass arguments to `update_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - # - # # Call the update_repository method. - # result = client.update_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def update_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.repository&.name - header_params["repository.name"] = request.repository.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Repository. - # - # @overload delete_repository(request, options = nil) - # Pass arguments to `delete_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_repository(name: nil, force: nil) - # Pass arguments to `delete_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param force [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - # - # # Call the delete_repository method. - # result = client.delete_repository request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_repository, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Repository to a new location. - # - # @overload move_repository(request, options = nil) - # Pass arguments to `move_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_repository(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the repository to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - # - # # Call the move_repository method. - # result = client.move_repository request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_repository.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_repository, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit to a Repository. The Repository must not have a value - # for `git_remote_settings.url`. - # - # @overload commit_repository_changes(request, options = nil) - # Pass arguments to `commit_repository_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) - # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] - # Required. The changes to commit to the repository. - # @param required_head_commit_sha [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - # - # # Call the commit_repository_changes method. - # result = client.commit_repository_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - # p result - # - def commit_repository_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.commit_repository_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.commit_repository_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :commit_repository_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Repository). The Repository - # must not have a value for `git_remote_settings.url`. - # - # @overload read_repository_file(request, options = nil) - # Pass arguments to `read_repository_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) - # Pass arguments to `read_repository_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @param path [::String] - # Required. Full file path to read including filename, from repository root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - # - # # Call the read_repository_file method. - # result = client.read_repository_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - # p result - # - def read_repository_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.read_repository_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.read_repository_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :read_repository_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Repository directory. The Repository must - # not have a value for `git_remote_settings.url`. - # - # @overload query_repository_directory_contents(request, options = nil) - # Pass arguments to `query_repository_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - # - # # Call the query_repository_directory_contents method. - # result = client.query_repository_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_repository_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_repository_directory_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's history of commits. The Repository must not have a - # value for `git_remote_settings.url`. - # - # @overload fetch_repository_history(request, options = nil) - # Pass arguments to `fetch_repository_history` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param page_size [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - # - # # Call the fetch_repository_history method. - # result = client.fetch_repository_history request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - # p item - # end - # - def fetch_repository_history request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_repository_history.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_repository_history.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_repository_history, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_repository_history, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Computes a Repository's Git access token status. - # - # @overload compute_repository_access_token_status(request, options = nil) - # Pass arguments to `compute_repository_access_token_status` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload compute_repository_access_token_status(name: nil) - # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - # - # # Call the compute_repository_access_token_status method. - # result = client.compute_repository_access_token_status request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - # p result - # - def compute_repository_access_token_status request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, - metadata: metadata, - retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :compute_repository_access_token_status, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's remote branches. - # - # @overload fetch_remote_branches(request, options = nil) - # Pass arguments to `fetch_remote_branches` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_remote_branches(name: nil) - # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - # - # # Call the fetch_remote_branches method. - # result = client.fetch_remote_branches request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - # p result - # - def fetch_remote_branches request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_remote_branches.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_remote_branches.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_remote_branches, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Workspaces in a given Repository. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workspaces, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workspaces, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Workspace. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Workspace in a given Repository. - # - # @overload create_workspace(request, options = nil) - # Pass arguments to `create_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) - # Pass arguments to `create_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] - # Required. The workspace to create. - # @param workspace_id [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - # - # # Call the create_workspace method. - # result = client.create_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def create_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Workspace. - # - # @overload delete_workspace(request, options = nil) - # Pass arguments to `delete_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workspace(name: nil) - # Pass arguments to `delete_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - # - # # Call the delete_workspace method. - # result = client.delete_workspace request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workspace, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Installs dependency NPM packages (inside a Workspace). - # - # @overload install_npm_packages(request, options = nil) - # Pass arguments to `install_npm_packages` via a request object, either of type - # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload install_npm_packages(workspace: nil) - # Pass arguments to `install_npm_packages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - # - # # Call the install_npm_packages method. - # result = client.install_npm_packages request - # - # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - # p result - # - def install_npm_packages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.install_npm_packages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, - metadata: metadata, - retry_policy: @config.rpcs.install_npm_packages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :install_npm_packages, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pulls Git commits from the Repository's remote into a Workspace. - # - # @overload pull_git_commits(request, options = nil) - # Pass arguments to `pull_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) - # Pass arguments to `pull_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - # - # # Call the pull_git_commits method. - # result = client.pull_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - # p result - # - def pull_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.pull_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, - metadata: metadata, - retry_policy: @config.rpcs.pull_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :pull_git_commits, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pushes Git commits from a Workspace to the Repository's remote. - # - # @overload push_git_commits(request, options = nil) - # Pass arguments to `push_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload push_git_commits(name: nil, remote_branch: nil) - # Pass arguments to `push_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - # - # # Call the push_git_commits method. - # result = client.push_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - # p result - # - def push_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.push_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, - metadata: metadata, - retry_policy: @config.rpcs.push_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :push_git_commits, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git statuses for the files in a Workspace. - # - # @overload fetch_file_git_statuses(request, options = nil) - # Pass arguments to `fetch_file_git_statuses` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_file_git_statuses(name: nil) - # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - # - # # Call the fetch_file_git_statuses method. - # result = client.fetch_file_git_statuses request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - # p result - # - def fetch_file_git_statuses request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_file_git_statuses, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git ahead/behind against a remote branch. - # - # @overload fetch_git_ahead_behind(request, options = nil) - # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) - # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - # - # # Call the fetch_git_ahead_behind method. - # result = client.fetch_git_ahead_behind request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - # p result - # - def fetch_git_ahead_behind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_git_ahead_behind, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit for uncommitted files in a Workspace. - # - # @overload commit_workspace_changes(request, options = nil) - # Pass arguments to `commit_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) - # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The commit's author. - # @param commit_message [::String] - # Optional. The commit's message. - # @param paths [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - # - # # Call the commit_workspace_changes method. - # result = client.commit_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - # p result - # - def commit_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.commit_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.commit_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :commit_workspace_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a Git reset for uncommitted files in a Workspace. - # - # @overload reset_workspace_changes(request, options = nil) - # Pass arguments to `reset_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) - # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param paths [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @param clean [::Boolean] - # Optional. If set to true, untracked files will be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - # - # # Call the reset_workspace_changes method. - # result = client.reset_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - # p result - # - def reset_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.reset_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.reset_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :reset_workspace_changes, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git diff for an uncommitted file in a Workspace. - # - # @overload fetch_file_diff(request, options = nil) - # Pass arguments to `fetch_file_diff` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload fetch_file_diff(workspace: nil, path: nil) - # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - # - # # Call the fetch_file_diff method. - # result = client.fetch_file_diff request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - # p result - # - def fetch_file_diff request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.fetch_file_diff.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, - metadata: metadata, - retry_policy: @config.rpcs.fetch_file_diff.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :fetch_file_diff, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Workspace directory. - # - # @overload query_directory_contents(request, options = nil) - # Pass arguments to `query_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `query_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - # - # # Call the query_directory_contents method. - # result = client.query_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_directory_contents, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_directory_contents, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Finds the contents of a given Workspace directory by filter. - # - # @overload search_files(request, options = nil) - # Pass arguments to `search_files` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `search_files` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param page_size [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param filter [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - # - # # Call the search_files method. - # result = client.search_files request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - # p item - # end - # - def search_files request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_files.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_files.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_files.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :search_files, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :search_files, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a directory inside a Workspace. - # - # @overload make_directory(request, options = nil) - # Pass arguments to `make_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload make_directory(workspace: nil, path: nil) - # Pass arguments to `make_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - # - # # Call the make_directory method. - # result = client.make_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - # p result - # - def make_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.make_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.make_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.make_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :make_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a directory (inside a Workspace) and all of its contents. - # - # @overload remove_directory(request, options = nil) - # Pass arguments to `remove_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_directory(workspace: nil, path: nil) - # Pass arguments to `remove_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - # - # # Call the remove_directory method. - # result = client.remove_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - # p result - # - def remove_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :remove_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a directory (inside a Workspace), and all of its contents, to a new - # location. - # - # @overload move_directory(request, options = nil) - # Pass arguments to `move_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_directory(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @param new_path [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - # - # # Call the move_directory method. - # result = client.move_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - # p result - # - def move_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_directory.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_directory, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Workspace). - # - # @overload read_file(request, options = nil) - # Pass arguments to `read_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload read_file(workspace: nil, path: nil, revision: nil) - # Pass arguments to `read_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param revision [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadFileRequest.new - # - # # Call the read_file method. - # result = client.read_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - # p result - # - def read_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.read_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.read_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.read_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :read_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a file (inside a Workspace). - # - # @overload remove_file(request, options = nil) - # Pass arguments to `remove_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_file(workspace: nil, path: nil) - # Pass arguments to `remove_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - # - # # Call the remove_file method. - # result = client.remove_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - # p result - # - def remove_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :remove_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a file (inside a Workspace) to a new location. - # - # @overload move_file(request, options = nil) - # Pass arguments to `move_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload move_file(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param new_path [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFileRequest.new - # - # # Call the move_file method. - # result = client.move_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - # p result - # - def move_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.move_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.move_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.move_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :move_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Writes to a file (inside a Workspace). - # - # @overload write_file(request, options = nil) - # Pass arguments to `write_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload write_file(workspace: nil, path: nil, contents: nil) - # Pass arguments to `write_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file. - # @param contents [::String] - # Required. The file's contents. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::WriteFileRequest.new - # - # # Call the write_file method. - # result = client.write_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - # p result - # - def write_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.write_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workspace - header_params["workspace"] = request.workspace - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.write_file.timeout, - metadata: metadata, - retry_policy: @config.rpcs.write_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :write_file, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ReleaseConfigs in a given Repository. - # - # @overload list_release_configs(request, options = nil) - # Pass arguments to `list_release_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_release_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - # - # # Call the list_release_configs method. - # result = client.list_release_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - # p item - # end - # - def list_release_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_release_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_release_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_release_configs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_release_configs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single ReleaseConfig. - # - # @overload get_release_config(request, options = nil) - # Pass arguments to `get_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_release_config(name: nil) - # Pass arguments to `get_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - # - # # Call the get_release_config method. - # result = client.get_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def get_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ReleaseConfig in a given Repository. - # - # @overload create_release_config(request, options = nil) - # Pass arguments to `create_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) - # Pass arguments to `create_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to create. - # @param release_config_id [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - # - # # Call the create_release_config method. - # result = client.create_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def create_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single ReleaseConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_release_config(request, options = nil) - # Pass arguments to `update_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_release_config(update_mask: nil, release_config: nil) - # Pass arguments to `update_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - # - # # Call the update_release_config method. - # result = client.update_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def update_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.release_config&.name - header_params["release_config.name"] = request.release_config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ReleaseConfig. - # - # @overload delete_release_config(request, options = nil) - # Pass arguments to `delete_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_release_config(name: nil) - # Pass arguments to `delete_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - # - # # Call the delete_release_config method. - # result = client.delete_release_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_release_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CompilationResults in a given Repository. - # - # @overload list_compilation_results(request, options = nil) - # Pass arguments to `list_compilation_results` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_compilation_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - # - # # Call the list_compilation_results method. - # result = client.list_compilation_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - # p item - # end - # - def list_compilation_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_compilation_results.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_compilation_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_compilation_results, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_compilation_results, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single CompilationResult. - # - # @overload get_compilation_result(request, options = nil) - # Pass arguments to `get_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_compilation_result(name: nil) - # Pass arguments to `get_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - # - # # Call the get_compilation_result method. - # result = client.get_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def get_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_compilation_result, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new CompilationResult in a given project and location. - # - # @overload create_compilation_result(request, options = nil) - # Pass arguments to `create_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_compilation_result(parent: nil, compilation_result: nil) - # Pass arguments to `create_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] - # Required. The compilation result to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - # - # # Call the create_compilation_result method. - # result = client.create_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def create_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_compilation_result, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns CompilationResultActions in a given CompilationResult. - # - # @overload query_compilation_result_actions(request, options = nil) - # Pass arguments to `query_compilation_result_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param filter [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - # - # # Call the query_compilation_result_actions method. - # result = client.query_compilation_result_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - # p item - # end - # - def query_compilation_result_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_compilation_result_actions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowConfigs in a given Repository. - # - # @overload list_workflow_configs(request, options = nil) - # Pass arguments to `list_workflow_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - # - # # Call the list_workflow_configs method. - # result = client.list_workflow_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - # p item - # end - # - def list_workflow_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workflow_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workflow_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workflow_configs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_configs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowConfig. - # - # @overload get_workflow_config(request, options = nil) - # Pass arguments to `get_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workflow_config(name: nil) - # Pass arguments to `get_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - # - # # Call the get_workflow_config method. - # result = client.get_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def get_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowConfig in a given Repository. - # - # @overload create_workflow_config(request, options = nil) - # Pass arguments to `create_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) - # Pass arguments to `create_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to create. - # @param workflow_config_id [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - # - # # Call the create_workflow_config method. - # result = client.create_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def create_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single WorkflowConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_workflow_config(request, options = nil) - # Pass arguments to `update_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_workflow_config(update_mask: nil, workflow_config: nil) - # Pass arguments to `update_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - # - # # Call the update_workflow_config method. - # result = client.update_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def update_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.workflow_config&.name - header_params["workflow_config.name"] = request.workflow_config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowConfig. - # - # @overload delete_workflow_config(request, options = nil) - # Pass arguments to `delete_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workflow_config(name: nil) - # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - # - # # Call the delete_workflow_config method. - # result = client.delete_workflow_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workflow_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowInvocations in a given Repository. - # - # @overload list_workflow_invocations(request, options = nil) - # Pass arguments to `list_workflow_invocations` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - # - # # Call the list_workflow_invocations method. - # result = client.list_workflow_invocations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - # p item - # end - # - def list_workflow_invocations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_workflow_invocations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_workflow_invocations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :list_workflow_invocations, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowInvocation. - # - # @overload get_workflow_invocation(request, options = nil) - # Pass arguments to `get_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_workflow_invocation(name: nil) - # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - # - # # Call the get_workflow_invocation method. - # result = client.get_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def get_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowInvocation in a given Repository. - # - # @overload create_workflow_invocation(request, options = nil) - # Pass arguments to `create_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) - # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] - # Required. The workflow invocation resource to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - # - # # Call the create_workflow_invocation method. - # result = client.create_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def create_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :create_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowInvocation. - # - # @overload delete_workflow_invocation(request, options = nil) - # Pass arguments to `delete_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_workflow_invocation(name: nil) - # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - # - # # Call the delete_workflow_invocation method. - # result = client.delete_workflow_invocation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :delete_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests cancellation of a running WorkflowInvocation. - # - # @overload cancel_workflow_invocation(request, options = nil) - # Pass arguments to `cancel_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_workflow_invocation(name: nil) - # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - # - # # Call the cancel_workflow_invocation method. - # result = client.cancel_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - # p result - # - def cancel_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :cancel_workflow_invocation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns WorkflowInvocationActions in a given WorkflowInvocation. - # - # @overload query_workflow_invocation_actions(request, options = nil) - # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation's name. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - # - # # Call the query_workflow_invocation_actions method. - # result = client.query_workflow_invocation_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - # p item - # end - # - def query_workflow_invocation_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :query_workflow_invocation_actions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get default config for a given project and location. - # - # @overload get_config(request, options = nil) - # Pass arguments to `get_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_config(name: nil) - # Pass arguments to `get_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The config name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetConfigRequest.new - # - # # Call the get_config method. - # result = client.get_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def get_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update default config for a given project and location. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_config(request, options = nil) - # Pass arguments to `update_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_config(config: nil, update_mask: nil) - # Pass arguments to `update_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] - # Required. The config to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the config. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - # - # # Call the update_config method. - # result = client.update_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def update_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.config&.name - header_params["config.name"] = request.config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :update_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :get_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::Policy] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :set_iam_policy, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # 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. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.resource - header_params["resource"] = request.resource - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Dataform API. - # - # This class represents the configuration for Dataform, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataform::V1::Dataform::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_team_folder to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataform::V1::Dataform::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Dataform API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_team_folder - ## - # RPC-specific configuration for `create_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_team_folder - ## - # RPC-specific configuration for `update_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_team_folder - ## - # RPC-specific configuration for `delete_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder - ## - # RPC-specific configuration for `delete_team_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder_tree - ## - # RPC-specific configuration for `query_team_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_team_folder_contents - ## - # RPC-specific configuration for `search_team_folders` - # @return [::Gapic::Config::Method] - # - attr_reader :search_team_folders - ## - # RPC-specific configuration for `get_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_folder - ## - # RPC-specific configuration for `create_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_folder - ## - # RPC-specific configuration for `update_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_folder - ## - # RPC-specific configuration for `delete_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder - ## - # RPC-specific configuration for `delete_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder_tree - ## - # RPC-specific configuration for `query_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_folder_contents - ## - # RPC-specific configuration for `query_user_root_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_user_root_contents - ## - # RPC-specific configuration for `move_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :move_folder - ## - # RPC-specific configuration for `list_repositories` - # @return [::Gapic::Config::Method] - # - attr_reader :list_repositories - ## - # RPC-specific configuration for `get_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :get_repository - ## - # RPC-specific configuration for `create_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :create_repository - ## - # RPC-specific configuration for `update_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :update_repository - ## - # RPC-specific configuration for `delete_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_repository - ## - # RPC-specific configuration for `move_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :move_repository - ## - # RPC-specific configuration for `commit_repository_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_repository_changes - ## - # RPC-specific configuration for `read_repository_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_repository_file - ## - # RPC-specific configuration for `query_repository_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_repository_directory_contents - ## - # RPC-specific configuration for `fetch_repository_history` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_repository_history - ## - # RPC-specific configuration for `compute_repository_access_token_status` - # @return [::Gapic::Config::Method] - # - attr_reader :compute_repository_access_token_status - ## - # RPC-specific configuration for `fetch_remote_branches` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_remote_branches - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `create_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workspace - ## - # RPC-specific configuration for `delete_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workspace - ## - # RPC-specific configuration for `install_npm_packages` - # @return [::Gapic::Config::Method] - # - attr_reader :install_npm_packages - ## - # RPC-specific configuration for `pull_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :pull_git_commits - ## - # RPC-specific configuration for `push_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :push_git_commits - ## - # RPC-specific configuration for `fetch_file_git_statuses` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_git_statuses - ## - # RPC-specific configuration for `fetch_git_ahead_behind` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_git_ahead_behind - ## - # RPC-specific configuration for `commit_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_workspace_changes - ## - # RPC-specific configuration for `reset_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :reset_workspace_changes - ## - # RPC-specific configuration for `fetch_file_diff` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_diff - ## - # RPC-specific configuration for `query_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_directory_contents - ## - # RPC-specific configuration for `search_files` - # @return [::Gapic::Config::Method] - # - attr_reader :search_files - ## - # RPC-specific configuration for `make_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :make_directory - ## - # RPC-specific configuration for `remove_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_directory - ## - # RPC-specific configuration for `move_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :move_directory - ## - # RPC-specific configuration for `read_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_file - ## - # RPC-specific configuration for `remove_file` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_file - ## - # RPC-specific configuration for `move_file` - # @return [::Gapic::Config::Method] - # - attr_reader :move_file - ## - # RPC-specific configuration for `write_file` - # @return [::Gapic::Config::Method] - # - attr_reader :write_file - ## - # RPC-specific configuration for `list_release_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_release_configs - ## - # RPC-specific configuration for `get_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release_config - ## - # RPC-specific configuration for `create_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release_config - ## - # RPC-specific configuration for `update_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release_config - ## - # RPC-specific configuration for `delete_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release_config - ## - # RPC-specific configuration for `list_compilation_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_compilation_results - ## - # RPC-specific configuration for `get_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :get_compilation_result - ## - # RPC-specific configuration for `create_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :create_compilation_result - ## - # RPC-specific configuration for `query_compilation_result_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_compilation_result_actions - ## - # RPC-specific configuration for `list_workflow_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_configs - ## - # RPC-specific configuration for `get_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_config - ## - # RPC-specific configuration for `create_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_config - ## - # RPC-specific configuration for `update_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_workflow_config - ## - # RPC-specific configuration for `delete_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_config - ## - # RPC-specific configuration for `list_workflow_invocations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_invocations - ## - # RPC-specific configuration for `get_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_invocation - ## - # RPC-specific configuration for `create_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_invocation - ## - # RPC-specific configuration for `delete_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_invocation - ## - # RPC-specific configuration for `cancel_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_workflow_invocation - ## - # RPC-specific configuration for `query_workflow_invocation_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_workflow_invocation_actions - ## - # RPC-specific configuration for `get_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_config - ## - # RPC-specific configuration for `update_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_config - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - - # @private - def initialize parent_rpcs = nil - get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder - @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config - create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder - @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config - update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder - @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config - delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder - @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config - delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree - @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config - query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents - @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config - search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders - @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config - get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder - @get_folder = ::Gapic::Config::Method.new get_folder_config - create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder - @create_folder = ::Gapic::Config::Method.new create_folder_config - update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder - @update_folder = ::Gapic::Config::Method.new update_folder_config - delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder - @delete_folder = ::Gapic::Config::Method.new delete_folder_config - delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree - @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config - query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents - @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config - query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents - @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config - move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder - @move_folder = ::Gapic::Config::Method.new move_folder_config - list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories - @list_repositories = ::Gapic::Config::Method.new list_repositories_config - get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository - @get_repository = ::Gapic::Config::Method.new get_repository_config - create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository - @create_repository = ::Gapic::Config::Method.new create_repository_config - update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository - @update_repository = ::Gapic::Config::Method.new update_repository_config - delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository - @delete_repository = ::Gapic::Config::Method.new delete_repository_config - move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository - @move_repository = ::Gapic::Config::Method.new move_repository_config - commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes - @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config - read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file - @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config - query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents - @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config - fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history - @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config - compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status - @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config - fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches - @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace - @create_workspace = ::Gapic::Config::Method.new create_workspace_config - delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace - @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config - install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages - @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config - pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits - @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config - push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits - @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config - fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses - @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config - fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind - @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config - commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes - @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config - reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes - @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config - fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff - @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config - query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents - @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config - search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files - @search_files = ::Gapic::Config::Method.new search_files_config - make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory - @make_directory = ::Gapic::Config::Method.new make_directory_config - remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory - @remove_directory = ::Gapic::Config::Method.new remove_directory_config - move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory - @move_directory = ::Gapic::Config::Method.new move_directory_config - read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file - @read_file = ::Gapic::Config::Method.new read_file_config - remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file - @remove_file = ::Gapic::Config::Method.new remove_file_config - move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file - @move_file = ::Gapic::Config::Method.new move_file_config - write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file - @write_file = ::Gapic::Config::Method.new write_file_config - list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs - @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config - get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config - @get_release_config = ::Gapic::Config::Method.new get_release_config_config - create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config - @create_release_config = ::Gapic::Config::Method.new create_release_config_config - update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config - @update_release_config = ::Gapic::Config::Method.new update_release_config_config - delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config - @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config - list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results - @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config - get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result - @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config - create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result - @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config - query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions - @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config - list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs - @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config - get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config - @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config - create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config - @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config - update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config - @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config - delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config - @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config - list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations - @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config - get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation - @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config - create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation - @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config - delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation - @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config - cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation - @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config - query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions - @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config - get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config - @get_config = ::Gapic::Config::Method.new get_config_config - update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config - @update_config = ::Gapic::Config::Method.new update_config_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb deleted file mode 100644 index a1cc0ba6afef..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/credentials.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Credentials for the Dataform API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/bigquery", - "https://www.googleapis.com/auth/cloud-platform" - ] - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb deleted file mode 100644 index 8944966e5175..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/operations.rb +++ /dev/null @@ -1,841 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Dataform Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb deleted file mode 100644 index 591bf0ee5afa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/paths.rb +++ /dev/null @@ -1,311 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataform - module V1 - module Dataform - # Path helper methods for the Dataform API. - module Paths - ## - # Create a fully-qualified CompilationResult resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param compilation_result [String] - # - # @return [::String] - def compilation_result_path project:, location:, repository:, compilation_result: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}" - end - - ## - # Create a fully-qualified Config resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/config` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def config_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}/config" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified CryptoKeyVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # @param crypto_key_version [String] - # - # @return [::String] - def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}" - end - - ## - # Create a fully-qualified Folder resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/folders/{folder}` - # - # @param project [String] - # @param location [String] - # @param folder [String] - # - # @return [::String] - def folder_path project:, location:, folder: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/folders/#{folder}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified NotebookRuntimeTemplate resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` - # - # @param project [String] - # @param location [String] - # @param notebook_runtime_template [String] - # - # @return [::String] - def notebook_runtime_template_path project:, location:, notebook_runtime_template: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}" - end - - ## - # Create a fully-qualified ReleaseConfig resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param release_config [String] - # - # @return [::String] - def release_config_path project:, location:, repository:, release_config: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}" - end - - ## - # Create a fully-qualified Repository resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # - # @return [::String] - def repository_path project:, location:, repository: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}" - end - - ## - # Create a fully-qualified SecretVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/secrets/{secret}/versions/{version}` - # - # @param project [String] - # @param secret [String] - # @param version [String] - # - # @return [::String] - def secret_version_path project:, secret:, version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" - - "projects/#{project}/secrets/#{secret}/versions/#{version}" - end - - ## - # Create a fully-qualified TeamFolder resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/teamFolders/{team_folder}` - # - # @param project [String] - # @param location [String] - # @param team_folder [String] - # - # @return [::String] - def team_folder_path project:, location:, team_folder: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/teamFolders/#{team_folder}" - end - - ## - # Create a fully-qualified WorkflowConfig resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workflow_config [String] - # - # @return [::String] - def workflow_config_path project:, location:, repository:, workflow_config: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}" - end - - ## - # Create a fully-qualified WorkflowInvocation resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workflow_invocation [String] - # - # @return [::String] - def workflow_invocation_path project:, location:, repository:, workflow_invocation: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}" - end - - ## - # Create a fully-qualified Workspace resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}` - # - # @param project [String] - # @param location [String] - # @param repository [String] - # @param workspace [String] - # - # @return [::String] - def workspace_path project:, location:, repository:, workspace: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/" - - "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}" - end - - extend self - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb deleted file mode 100644 index 01b9b9f1cbed..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" -require "google/cloud/dataform/v1/bindings_override" - -require "google/cloud/dataform/v1/dataform/credentials" -require "google/cloud/dataform/v1/dataform/paths" -require "google/cloud/dataform/v1/dataform/rest/operations" -require "google/cloud/dataform/v1/dataform/rest/client" - -module Google - module Cloud - module Dataform - module V1 - ## - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataform/v1/dataform/rest" - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - module Dataform - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataform/v1/dataform/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb deleted file mode 100644 index b3bb6824d285..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/client.rb +++ /dev/null @@ -1,7248 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform/rest/service_stub" -require "google/cloud/location/rest" -require "google/iam/v1/rest" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - ## - # REST client for the Dataform service. - # - # Dataform is a service to develop, create, document, test, and update curated - # tables in BigQuery. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :dataform_stub - - ## - # Configure the Dataform Client class. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Dataform clients - # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataform", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @dataform_stub.universe_domain - end - - ## - # Create a new Dataform REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Dataform client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @dataform_stub = ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @dataform_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @dataform_stub.endpoint - config.universe_domain = @dataform_stub.universe_domain - config.logger = @dataform_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::Dataform::V1::Dataform::Rest::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Rest::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @dataform_stub.logger - end - - # Service calls - - ## - # Fetches a single TeamFolder. - # - # @overload get_team_folder(request, options = nil) - # Pass arguments to `get_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_team_folder(name: nil) - # Pass arguments to `get_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - # - # # Call the get_team_folder method. - # result = client.get_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def get_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new TeamFolder in a given project and location. - # - # @overload create_team_folder(request, options = nil) - # Pass arguments to `create_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_team_folder(parent: nil, team_folder: nil) - # Pass arguments to `create_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The TeamFolder to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - # - # # Call the create_team_folder method. - # result = client.create_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def create_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single TeamFolder. - # - # @overload update_team_folder(request, options = nil) - # Pass arguments to `update_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_team_folder(update_mask: nil, team_folder: nil) - # Pass arguments to `update_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @param team_folder [::Google::Cloud::Dataform::V1::TeamFolder, ::Hash] - # Required. The updated TeamFolder. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - # - # # Call the update_team_folder method. - # result = client.update_team_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - # p result - # - def update_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single TeamFolder. - # - # @overload delete_team_folder(request, options = nil) - # Pass arguments to `delete_team_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_team_folder(name: nil) - # Pass arguments to `delete_team_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - # - # # Call the delete_team_folder method. - # result = client.delete_team_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_team_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_team_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_team_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_team_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_team_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_team_folder_tree(request, options = nil) - # Pass arguments to `delete_team_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_team_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_team_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - # - # # Call the delete_team_folder_tree method. - # result = client.delete_team_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_team_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_team_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_team_folder_tree.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_team_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_team_folder_tree request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given TeamFolder. - # - # @overload query_team_folder_contents(request, options = nil) - # Pass arguments to `query_team_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_team_folder_contents(team_folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_team_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param team_folder [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - # - # # Call the query_team_folder_contents method. - # result = client.query_team_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - # p item - # end - # - def query_team_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_team_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_team_folder_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_team_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_team_folder_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_team_folder_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all TeamFolders in a given location that the caller has access to - # and match the provided filter. - # - # @overload search_team_folders(request, options = nil) - # Pass arguments to `search_team_folders` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload search_team_folders(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `search_team_folders` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - # - # # Call the search_team_folders method. - # result = client.search_team_folders request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - # p item - # end - # - def search_team_folders request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.search_team_folders.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_team_folders.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.search_team_folders.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.search_team_folders request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_team_folders, "results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Folder. - # - # @overload get_folder(request, options = nil) - # Pass arguments to `get_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_folder(name: nil) - # Pass arguments to `get_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetFolderRequest.new - # - # # Call the get_folder method. - # result = client.get_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def get_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Folder in a given project and location. - # - # @overload create_folder(request, options = nil) - # Pass arguments to `create_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_folder(parent: nil, folder: nil) - # Pass arguments to `create_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The Folder to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - # - # # Call the create_folder method. - # result = client.create_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def create_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Folder. - # - # @overload update_folder(request, options = nil) - # Pass arguments to `update_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_folder(update_mask: nil, folder: nil) - # Pass arguments to `update_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @param folder [::Google::Cloud::Dataform::V1::Folder, ::Hash] - # Required. The updated Folder. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - # - # # Call the update_folder method. - # result = client.update_folder request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Folder. - # p result - # - def update_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Folder. - # - # @overload delete_folder(request, options = nil) - # Pass arguments to `delete_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_folder(name: nil) - # Pass arguments to `delete_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - # - # # Call the delete_folder method. - # result = client.delete_folder request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_folder request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Folder with its contents (Folders, Repositories, Workspaces, - # ReleaseConfigs, and WorkflowConfigs). - # - # @overload delete_folder_tree(request, options = nil) - # Pass arguments to `delete_folder_tree` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_folder_tree(name: nil, force: nil) - # Pass arguments to `delete_folder_tree` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @param force [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - # - # # Call the delete_folder_tree method. - # result = client.delete_folder_tree request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_folder_tree request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_folder_tree.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_folder_tree.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_folder_tree.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_folder_tree request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Folder. - # - # @overload query_folder_contents(request, options = nil) - # Pass arguments to `query_folder_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryFolderContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_folder_contents(folder: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_folder_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param folder [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - # - # # Call the query_folder_contents method. - # result = client.query_folder_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - # p item - # end - # - def query_folder_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_folder_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_folder_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_folder_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_folder_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_folder_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a caller's root folder in a given location. - # The root folder contains all resources that are created by the user and not - # contained in any other folder. - # - # @overload query_user_root_contents(request, options = nil) - # Pass arguments to `query_user_root_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_user_root_contents(location: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `query_user_root_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param location [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param order_by [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @param filter [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - # - # # Call the query_user_root_contents method. - # result = client.query_user_root_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - # p item - # end - # - def query_user_root_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_user_root_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_user_root_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_user_root_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_user_root_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_user_root_contents, "entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Folder to a new Folder, TeamFolder, or the root location. - # - # @overload move_folder(request, options = nil) - # Pass arguments to `move_folder` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFolderRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFolderRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_folder(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_folder` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the Folder to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - # - # # Call the move_folder method. - # result = client.move_folder request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_folder request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFolderRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_folder.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_folder.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_folder.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_folder request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Repositories in a given project and location. - # - # **Note:** *This method can return repositories not shown in the [Dataform - # UI](https://console.cloud.google.com/bigquery/dataform)*. - # - # @overload list_repositories(request, options = nil) - # Pass arguments to `list_repositories` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListRepositoriesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListRepositoriesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_repositories(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_repositories` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @param page_size [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Repository>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - # - # # Call the list_repositories method. - # result = client.list_repositories request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - # p item - # end - # - def list_repositories request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListRepositoriesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_repositories.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_repositories.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_repositories.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_repositories request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_repositories, "repositories", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Repository. - # - # @overload get_repository(request, options = nil) - # Pass arguments to `get_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_repository(name: nil) - # Pass arguments to `get_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - # - # # Call the get_repository method. - # result = client.get_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def get_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Repository in a given project and location. - # - # @overload create_repository(request, options = nil) - # Pass arguments to `create_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_repository(parent: nil, repository: nil, repository_id: nil) - # Pass arguments to `create_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to create. - # @param repository_id [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - # - # # Call the create_repository method. - # result = client.create_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def create_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Repository. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_repository(request, options = nil) - # Pass arguments to `update_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_repository(update_mask: nil, repository: nil) - # Pass arguments to `update_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @param repository [::Google::Cloud::Dataform::V1::Repository, ::Hash] - # Required. The repository to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - # - # # Call the update_repository method. - # result = client.update_repository request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Repository. - # p result - # - def update_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Repository. - # - # @overload delete_repository(request, options = nil) - # Pass arguments to `delete_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_repository(name: nil, force: nil) - # Pass arguments to `delete_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param force [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - # - # # Call the delete_repository method. - # result = client.delete_repository request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_repository request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a Repository to a new location. - # - # @overload move_repository(request, options = nil) - # Pass arguments to `move_repository` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveRepositoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveRepositoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_repository(name: nil, destination_containing_folder: nil) - # Pass arguments to `move_repository` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The full resource name of the repository to move. - # @param destination_containing_folder [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - # - # # Call the move_repository method. - # result = client.move_repository request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def move_repository request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveRepositoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_repository.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_repository.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_repository.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_repository request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit to a Repository. The Repository must not have a value - # for `git_remote_settings.url`. - # - # @overload commit_repository_changes(request, options = nil) - # Pass arguments to `commit_repository_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload commit_repository_changes(name: nil, commit_metadata: nil, required_head_commit_sha: nil, file_operations: nil) - # Pass arguments to `commit_repository_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_metadata [::Google::Cloud::Dataform::V1::CommitMetadata, ::Hash] - # Required. The changes to commit to the repository. - # @param required_head_commit_sha [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @param file_operations [::Hash{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation, ::Hash}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - # - # # Call the commit_repository_changes method. - # result = client.commit_repository_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - # p result - # - def commit_repository_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.commit_repository_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.commit_repository_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Repository). The Repository - # must not have a value for `git_remote_settings.url`. - # - # @overload read_repository_file(request, options = nil) - # Pass arguments to `read_repository_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload read_repository_file(name: nil, commit_sha: nil, path: nil) - # Pass arguments to `read_repository_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @param path [::String] - # Required. Full file path to read including filename, from repository root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - # - # # Call the read_repository_file method. - # result = client.read_repository_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - # p result - # - def read_repository_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.read_repository_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.read_repository_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.read_repository_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Repository directory. The Repository must - # not have a value for `git_remote_settings.url`. - # - # @overload query_repository_directory_contents(request, options = nil) - # Pass arguments to `query_repository_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_repository_directory_contents(name: nil, commit_sha: nil, path: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_repository_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param commit_sha [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - # - # # Call the query_repository_directory_contents method. - # result = client.query_repository_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_repository_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_repository_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_repository_directory_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's history of commits. The Repository must not have a - # value for `git_remote_settings.url`. - # - # @overload fetch_repository_history(request, options = nil) - # Pass arguments to `fetch_repository_history` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_repository_history(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `fetch_repository_history` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @param page_size [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - # - # # Call the fetch_repository_history method. - # result = client.fetch_repository_history request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - # p item - # end - # - def fetch_repository_history request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_repository_history.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_repository_history request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Computes a Repository's Git access token status. - # - # @overload compute_repository_access_token_status(request, options = nil) - # Pass arguments to `compute_repository_access_token_status` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload compute_repository_access_token_status(name: nil) - # Pass arguments to `compute_repository_access_token_status` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - # - # # Call the compute_repository_access_token_status method. - # result = client.compute_repository_access_token_status request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - # p result - # - def compute_repository_access_token_status request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.compute_repository_access_token_status.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.compute_repository_access_token_status request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a Repository's remote branches. - # - # @overload fetch_remote_branches(request, options = nil) - # Pass arguments to `fetch_remote_branches` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_remote_branches(name: nil) - # Pass arguments to `fetch_remote_branches` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The repository's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - # - # # Call the fetch_remote_branches method. - # result = client.fetch_remote_branches request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - # p result - # - def fetch_remote_branches request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_remote_branches.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_remote_branches request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Workspaces in a given Repository. - # - # @overload list_workspaces(request, options = nil) - # Pass arguments to `list_workspaces` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkspacesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkspacesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workspaces(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workspaces` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::Workspace>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - # - # # Call the list_workspaces method. - # result = client.list_workspaces request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - # p item - # end - # - def list_workspaces request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkspacesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workspaces.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workspaces.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workspaces request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workspaces, "workspaces", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single Workspace. - # - # @overload get_workspace(request, options = nil) - # Pass arguments to `get_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workspace(name: nil) - # Pass arguments to `get_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - # - # # Call the get_workspace method. - # result = client.get_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def get_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Workspace in a given Repository. - # - # @overload create_workspace(request, options = nil) - # Pass arguments to `create_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workspace(parent: nil, workspace: nil, workspace_id: nil) - # Pass arguments to `create_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param workspace [::Google::Cloud::Dataform::V1::Workspace, ::Hash] - # Required. The workspace to create. - # @param workspace_id [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - # - # # Call the create_workspace method. - # result = client.create_workspace request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - # p result - # - def create_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Workspace. - # - # @overload delete_workspace(request, options = nil) - # Pass arguments to `delete_workspace` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workspace(name: nil) - # Pass arguments to `delete_workspace` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - # - # # Call the delete_workspace method. - # result = client.delete_workspace request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workspace request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workspace.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workspace.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workspace request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Installs dependency NPM packages (inside a Workspace). - # - # @overload install_npm_packages(request, options = nil) - # Pass arguments to `install_npm_packages` via a request object, either of type - # {::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload install_npm_packages(workspace: nil) - # Pass arguments to `install_npm_packages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - # - # # Call the install_npm_packages method. - # result = client.install_npm_packages request - # - # # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - # p result - # - def install_npm_packages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.install_npm_packages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.install_npm_packages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.install_npm_packages request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pulls Git commits from the Repository's remote into a Workspace. - # - # @overload pull_git_commits(request, options = nil) - # Pass arguments to `pull_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PullGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PullGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload pull_git_commits(name: nil, remote_branch: nil, author: nil) - # Pass arguments to `pull_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - # - # # Call the pull_git_commits method. - # result = client.pull_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - # p result - # - def pull_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PullGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.pull_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.pull_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.pull_git_commits request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Pushes Git commits from a Workspace to the Repository's remote. - # - # @overload push_git_commits(request, options = nil) - # Pass arguments to `push_git_commits` via a request object, either of type - # {::Google::Cloud::Dataform::V1::PushGitCommitsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::PushGitCommitsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload push_git_commits(name: nil, remote_branch: nil) - # Pass arguments to `push_git_commits` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - # - # # Call the push_git_commits method. - # result = client.push_git_commits request - # - # # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - # p result - # - def push_git_commits request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::PushGitCommitsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.push_git_commits.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.push_git_commits.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.push_git_commits request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git statuses for the files in a Workspace. - # - # @overload fetch_file_git_statuses(request, options = nil) - # Pass arguments to `fetch_file_git_statuses` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_file_git_statuses(name: nil) - # Pass arguments to `fetch_file_git_statuses` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - # - # # Call the fetch_file_git_statuses method. - # result = client.fetch_file_git_statuses request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - # p result - # - def fetch_file_git_statuses request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_file_git_statuses.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_file_git_statuses request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git ahead/behind against a remote branch. - # - # @overload fetch_git_ahead_behind(request, options = nil) - # Pass arguments to `fetch_git_ahead_behind` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_git_ahead_behind(name: nil, remote_branch: nil) - # Pass arguments to `fetch_git_ahead_behind` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param remote_branch [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - # - # # Call the fetch_git_ahead_behind method. - # result = client.fetch_git_ahead_behind request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - # p result - # - def fetch_git_ahead_behind request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_git_ahead_behind.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_git_ahead_behind request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Applies a Git commit for uncommitted files in a Workspace. - # - # @overload commit_workspace_changes(request, options = nil) - # Pass arguments to `commit_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload commit_workspace_changes(name: nil, author: nil, commit_message: nil, paths: nil) - # Pass arguments to `commit_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param author [::Google::Cloud::Dataform::V1::CommitAuthor, ::Hash] - # Required. The commit's author. - # @param commit_message [::String] - # Optional. The commit's message. - # @param paths [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - # - # # Call the commit_workspace_changes method. - # result = client.commit_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - # p result - # - def commit_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.commit_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.commit_workspace_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Performs a Git reset for uncommitted files in a Workspace. - # - # @overload reset_workspace_changes(request, options = nil) - # Pass arguments to `reset_workspace_changes` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload reset_workspace_changes(name: nil, paths: nil, clean: nil) - # Pass arguments to `reset_workspace_changes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workspace's name. - # @param paths [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @param clean [::Boolean] - # Optional. If set to true, untracked files will be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - # - # # Call the reset_workspace_changes method. - # result = client.reset_workspace_changes request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - # p result - # - def reset_workspace_changes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.reset_workspace_changes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.reset_workspace_changes request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches Git diff for an uncommitted file in a Workspace. - # - # @overload fetch_file_diff(request, options = nil) - # Pass arguments to `fetch_file_diff` via a request object, either of type - # {::Google::Cloud::Dataform::V1::FetchFileDiffRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::FetchFileDiffRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload fetch_file_diff(workspace: nil, path: nil) - # Pass arguments to `fetch_file_diff` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - # - # # Call the fetch_file_diff method. - # result = client.fetch_file_diff request - # - # # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - # p result - # - def fetch_file_diff request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::FetchFileDiffRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.fetch_file_diff.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.fetch_file_diff request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a given Workspace directory. - # - # @overload query_directory_contents(request, options = nil) - # Pass arguments to `query_directory_contents` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_directory_contents(workspace: nil, path: nil, page_size: nil, page_token: nil, view: nil) - # Pass arguments to `query_directory_contents` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @param page_size [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @param page_token [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @param view [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - # - # # Call the query_directory_contents method. - # result = client.query_directory_contents request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - # p item - # end - # - def query_directory_contents request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_directory_contents.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_directory_contents.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_directory_contents request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Finds the contents of a given Workspace directory by filter. - # - # @overload search_files(request, options = nil) - # Pass arguments to `search_files` via a request object, either of type - # {::Google::Cloud::Dataform::V1::SearchFilesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::SearchFilesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload search_files(workspace: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `search_files` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param page_size [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param filter [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::SearchResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - # - # # Call the search_files method. - # result = client.search_files request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - # p item - # end - # - def search_files request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::SearchFilesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.search_files.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_files.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.search_files.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.search_files request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :search_files, "search_results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a directory inside a Workspace. - # - # @overload make_directory(request, options = nil) - # Pass arguments to `make_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MakeDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MakeDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload make_directory(workspace: nil, path: nil) - # Pass arguments to `make_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - # - # # Call the make_directory method. - # result = client.make_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - # p result - # - def make_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MakeDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.make_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.make_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.make_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.make_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a directory (inside a Workspace) and all of its contents. - # - # @overload remove_directory(request, options = nil) - # Pass arguments to `remove_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload remove_directory(workspace: nil, path: nil) - # Pass arguments to `remove_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - # - # # Call the remove_directory method. - # result = client.remove_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - # p result - # - def remove_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.remove_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.remove_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.remove_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.remove_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a directory (inside a Workspace), and all of its contents, to a new - # location. - # - # @overload move_directory(request, options = nil) - # Pass arguments to `move_directory` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveDirectoryRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveDirectoryRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_directory(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_directory` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @param new_path [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - # - # # Call the move_directory method. - # result = client.move_directory request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - # p result - # - def move_directory request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveDirectoryRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_directory.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_directory.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_directory.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_directory request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the contents of a file (inside a Workspace). - # - # @overload read_file(request, options = nil) - # Pass arguments to `read_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ReadFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ReadFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload read_file(workspace: nil, path: nil, revision: nil) - # Pass arguments to `read_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param revision [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ReadFileRequest.new - # - # # Call the read_file method. - # result = client.read_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - # p result - # - def read_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ReadFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.read_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.read_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.read_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.read_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a file (inside a Workspace). - # - # @overload remove_file(request, options = nil) - # Pass arguments to `remove_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::RemoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::RemoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload remove_file(workspace: nil, path: nil) - # Pass arguments to `remove_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - # - # # Call the remove_file method. - # result = client.remove_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - # p result - # - def remove_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::RemoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.remove_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.remove_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.remove_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.remove_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Moves a file (inside a Workspace) to a new location. - # - # @overload move_file(request, options = nil) - # Pass arguments to `move_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::MoveFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::MoveFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload move_file(workspace: nil, path: nil, new_path: nil) - # Pass arguments to `move_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @param new_path [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::MoveFileRequest.new - # - # # Call the move_file method. - # result = client.move_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - # p result - # - def move_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::MoveFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.move_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.move_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.move_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.move_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Writes to a file (inside a Workspace). - # - # @overload write_file(request, options = nil) - # Pass arguments to `write_file` via a request object, either of type - # {::Google::Cloud::Dataform::V1::WriteFileRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::WriteFileRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload write_file(workspace: nil, path: nil, contents: nil) - # Pass arguments to `write_file` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param workspace [::String] - # Required. The workspace's name. - # @param path [::String] - # Required. The file. - # @param contents [::String] - # Required. The file's contents. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::WriteFileRequest.new - # - # # Call the write_file method. - # result = client.write_file request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - # p result - # - def write_file request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::WriteFileRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.write_file.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.write_file.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.write_file.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.write_file request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ReleaseConfigs in a given Repository. - # - # @overload list_release_configs(request, options = nil) - # Pass arguments to `list_release_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_release_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_release_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - # - # # Call the list_release_configs method. - # result = client.list_release_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - # p item - # end - # - def list_release_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_release_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_release_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_release_configs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_release_configs, "release_configs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single ReleaseConfig. - # - # @overload get_release_config(request, options = nil) - # Pass arguments to `get_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_release_config(name: nil) - # Pass arguments to `get_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - # - # # Call the get_release_config method. - # result = client.get_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def get_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ReleaseConfig in a given Repository. - # - # @overload create_release_config(request, options = nil) - # Pass arguments to `create_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_release_config(parent: nil, release_config: nil, release_config_id: nil) - # Pass arguments to `create_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to create. - # @param release_config_id [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - # - # # Call the create_release_config method. - # result = client.create_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def create_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single ReleaseConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_release_config(request, options = nil) - # Pass arguments to `update_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_release_config(update_mask: nil, release_config: nil) - # Pass arguments to `update_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @param release_config [::Google::Cloud::Dataform::V1::ReleaseConfig, ::Hash] - # Required. The release config to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - # - # # Call the update_release_config method. - # result = client.update_release_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - # p result - # - def update_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ReleaseConfig. - # - # @overload delete_release_config(request, options = nil) - # Pass arguments to `delete_release_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_release_config(name: nil) - # Pass arguments to `delete_release_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The release config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - # - # # Call the delete_release_config method. - # result = client.delete_release_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_release_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_release_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_release_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_release_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CompilationResults in a given Repository. - # - # @overload list_compilation_results(request, options = nil) - # Pass arguments to `list_compilation_results` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListCompilationResultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_compilation_results(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_compilation_results` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResult>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - # - # # Call the list_compilation_results method. - # result = client.list_compilation_results request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - # p item - # end - # - def list_compilation_results request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_compilation_results.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_compilation_results.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_compilation_results request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_compilation_results, "compilation_results", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single CompilationResult. - # - # @overload get_compilation_result(request, options = nil) - # Pass arguments to `get_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_compilation_result(name: nil) - # Pass arguments to `get_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - # - # # Call the get_compilation_result method. - # result = client.get_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def get_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_compilation_result request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new CompilationResult in a given project and location. - # - # @overload create_compilation_result(request, options = nil) - # Pass arguments to `create_compilation_result` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateCompilationResultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_compilation_result(parent: nil, compilation_result: nil) - # Pass arguments to `create_compilation_result` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @param compilation_result [::Google::Cloud::Dataform::V1::CompilationResult, ::Hash] - # Required. The compilation result to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - # - # # Call the create_compilation_result method. - # result = client.create_compilation_result request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - # p result - # - def create_compilation_result request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_compilation_result.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_compilation_result.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_compilation_result request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns CompilationResultActions in a given CompilationResult. - # - # @overload query_compilation_result_actions(request, options = nil) - # Pass arguments to `query_compilation_result_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_compilation_result_actions(name: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `query_compilation_result_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The compilation result's name. - # @param page_size [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @param filter [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - # - # # Call the query_compilation_result_actions method. - # result = client.query_compilation_result_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - # p item - # end - # - def query_compilation_result_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_compilation_result_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_compilation_result_actions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowConfigs in a given Repository. - # - # @overload list_workflow_configs(request, options = nil) - # Pass arguments to `list_workflow_configs` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workflow_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_workflow_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - # - # # Call the list_workflow_configs method. - # result = client.list_workflow_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - # p item - # end - # - def list_workflow_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workflow_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workflow_configs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_configs, "workflow_configs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowConfig. - # - # @overload get_workflow_config(request, options = nil) - # Pass arguments to `get_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workflow_config(name: nil) - # Pass arguments to `get_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - # - # # Call the get_workflow_config method. - # result = client.get_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def get_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowConfig in a given Repository. - # - # @overload create_workflow_config(request, options = nil) - # Pass arguments to `create_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workflow_config(parent: nil, workflow_config: nil, workflow_config_id: nil) - # Pass arguments to `create_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to create. - # @param workflow_config_id [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - # - # # Call the create_workflow_config method. - # result = client.create_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def create_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single WorkflowConfig. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_workflow_config(request, options = nil) - # Pass arguments to `update_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_workflow_config(update_mask: nil, workflow_config: nil) - # Pass arguments to `update_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @param workflow_config [::Google::Cloud::Dataform::V1::WorkflowConfig, ::Hash] - # Required. The workflow config to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - # - # # Call the update_workflow_config method. - # result = client.update_workflow_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - # p result - # - def update_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowConfig. - # - # @overload delete_workflow_config(request, options = nil) - # Pass arguments to `delete_workflow_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workflow_config(name: nil) - # Pass arguments to `delete_workflow_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow config's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - # - # # Call the delete_workflow_config method. - # result = client.delete_workflow_config request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workflow_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workflow_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists WorkflowInvocations in a given Repository. - # - # @overload list_workflow_invocations(request, options = nil) - # Pass arguments to `list_workflow_invocations` via a request object, either of type - # {::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_workflow_invocations(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) - # Pass arguments to `list_workflow_invocations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @param order_by [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @param filter [::String] - # Optional. Filter for the returned list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - # - # # Call the list_workflow_invocations method. - # result = client.list_workflow_invocations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - # p item - # end - # - def list_workflow_invocations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_workflow_invocations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.list_workflow_invocations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :list_workflow_invocations, "workflow_invocations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Fetches a single WorkflowInvocation. - # - # @overload get_workflow_invocation(request, options = nil) - # Pass arguments to `get_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_workflow_invocation(name: nil) - # Pass arguments to `get_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - # - # # Call the get_workflow_invocation method. - # result = client.get_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def get_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new WorkflowInvocation in a given Repository. - # - # @overload create_workflow_invocation(request, options = nil) - # Pass arguments to `create_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_workflow_invocation(parent: nil, workflow_invocation: nil) - # Pass arguments to `create_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @param workflow_invocation [::Google::Cloud::Dataform::V1::WorkflowInvocation, ::Hash] - # Required. The workflow invocation resource to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - # - # # Call the create_workflow_invocation method. - # result = client.create_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - # p result - # - def create_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.create_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single WorkflowInvocation. - # - # @overload delete_workflow_invocation(request, options = nil) - # Pass arguments to `delete_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_workflow_invocation(name: nil) - # Pass arguments to `delete_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - # - # # Call the delete_workflow_invocation method. - # result = client.delete_workflow_invocation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.delete_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests cancellation of a running WorkflowInvocation. - # - # @overload cancel_workflow_invocation(request, options = nil) - # Pass arguments to `cancel_workflow_invocation` via a request object, either of type - # {::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_workflow_invocation(name: nil) - # Pass arguments to `cancel_workflow_invocation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation resource's name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - # - # # Call the cancel_workflow_invocation method. - # result = client.cancel_workflow_invocation request - # - # # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - # p result - # - def cancel_workflow_invocation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_workflow_invocation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.cancel_workflow_invocation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns WorkflowInvocationActions in a given WorkflowInvocation. - # - # @overload query_workflow_invocation_actions(request, options = nil) - # Pass arguments to `query_workflow_invocation_actions` via a request object, either of type - # {::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload query_workflow_invocation_actions(name: nil, page_size: nil, page_token: nil) - # Pass arguments to `query_workflow_invocation_actions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The workflow invocation's name. - # @param page_size [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @param page_token [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - # - # # Call the query_workflow_invocation_actions method. - # result = client.query_workflow_invocation_actions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - # p item - # end - # - def query_workflow_invocation_actions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.query_workflow_invocation_actions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.query_workflow_invocation_actions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get default config for a given project and location. - # - # @overload get_config(request, options = nil) - # Pass arguments to `get_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::GetConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::GetConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_config(name: nil) - # Pass arguments to `get_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The config name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::GetConfigRequest.new - # - # # Call the get_config method. - # result = client.get_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def get_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::GetConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Update default config for a given project and location. - # - # **Note:** *This method does not fully implement - # [AIP/134](https://google.aip.dev/134). The wildcard entry (\*) is treated - # as a bad request, and when the `field_mask` is omitted, the request is - # treated as a full update on all modifiable fields.* - # - # @overload update_config(request, options = nil) - # Pass arguments to `update_config` via a request object, either of type - # {::Google::Cloud::Dataform::V1::UpdateConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataform::V1::UpdateConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_config(config: nil, update_mask: nil) - # Pass arguments to `update_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param config [::Google::Cloud::Dataform::V1::Config, ::Hash] - # Required. The config to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. Specifies the fields to be updated in the config. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - # - # # Call the update_config method. - # result = client.update_config request - # - # # The returned object is of type Google::Cloud::Dataform::V1::Config. - # p result - # - def update_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1::UpdateConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.update_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. - # - # @overload get_iam_policy(request, options = nil) - # Pass arguments to `get_iam_policy` via a request object, either of type - # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_iam_policy(resource: nil, options: nil) - # Pass arguments to `get_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. - # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash] - # OPTIONAL: A `GetPolicyOptions` object for specifying options to - # `GetIamPolicy`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::GetIamPolicyRequest.new - # - # # Call the get_iam_policy method. - # result = client.get_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def get_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.get_iam_policy request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - # - # @overload set_iam_policy(request, options = nil) - # Pass arguments to `set_iam_policy` via a request object, either of type - # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil) - # Pass arguments to `set_iam_policy` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. - # @param policy [::Google::Iam::V1::Policy, ::Hash] - # REQUIRED: The complete policy to be applied to the `resource`. The size of - # the policy is limited to a few 10s of KB. An empty policy is a - # valid policy but certain Cloud Platform services (such as Projects) - # might reject them. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # - # `paths: "bindings, etag"` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::SetIamPolicyRequest.new - # - # # Call the set_iam_policy method. - # result = client.set_iam_policy request - # - # # The returned object is of type Google::Iam::V1::Policy. - # p result - # - def set_iam_policy request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.set_iam_policy.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.set_iam_policy.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.set_iam_policy request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # 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. - # - # @overload test_iam_permissions(request, options = nil) - # Pass arguments to `test_iam_permissions` via a request object, either of type - # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash. - # - # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload test_iam_permissions(resource: nil, permissions: nil) - # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param resource [::String] - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. - # @param permissions [::Array<::String>] - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataform/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataform::V1::Dataform::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Iam::V1::TestIamPermissionsRequest.new - # - # # Call the test_iam_permissions method. - # result = client.test_iam_permissions request - # - # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - # p result - # - def test_iam_permissions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.test_iam_permissions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @dataform_stub.test_iam_permissions request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Dataform REST API. - # - # This class represents the configuration for Dataform REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_team_folder to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_team_folder.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - - # @private - # Overrides for http bindings for the RPCs of this service - # are only used when this service is used as mixin, and only - # by the host service. - # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] - config_attr :bindings_override, {}, ::Hash, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Dataform API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_team_folder - ## - # RPC-specific configuration for `create_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_team_folder - ## - # RPC-specific configuration for `update_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_team_folder - ## - # RPC-specific configuration for `delete_team_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder - ## - # RPC-specific configuration for `delete_team_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_team_folder_tree - ## - # RPC-specific configuration for `query_team_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_team_folder_contents - ## - # RPC-specific configuration for `search_team_folders` - # @return [::Gapic::Config::Method] - # - attr_reader :search_team_folders - ## - # RPC-specific configuration for `get_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :get_folder - ## - # RPC-specific configuration for `create_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :create_folder - ## - # RPC-specific configuration for `update_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :update_folder - ## - # RPC-specific configuration for `delete_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder - ## - # RPC-specific configuration for `delete_folder_tree` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_folder_tree - ## - # RPC-specific configuration for `query_folder_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_folder_contents - ## - # RPC-specific configuration for `query_user_root_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_user_root_contents - ## - # RPC-specific configuration for `move_folder` - # @return [::Gapic::Config::Method] - # - attr_reader :move_folder - ## - # RPC-specific configuration for `list_repositories` - # @return [::Gapic::Config::Method] - # - attr_reader :list_repositories - ## - # RPC-specific configuration for `get_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :get_repository - ## - # RPC-specific configuration for `create_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :create_repository - ## - # RPC-specific configuration for `update_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :update_repository - ## - # RPC-specific configuration for `delete_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_repository - ## - # RPC-specific configuration for `move_repository` - # @return [::Gapic::Config::Method] - # - attr_reader :move_repository - ## - # RPC-specific configuration for `commit_repository_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_repository_changes - ## - # RPC-specific configuration for `read_repository_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_repository_file - ## - # RPC-specific configuration for `query_repository_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_repository_directory_contents - ## - # RPC-specific configuration for `fetch_repository_history` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_repository_history - ## - # RPC-specific configuration for `compute_repository_access_token_status` - # @return [::Gapic::Config::Method] - # - attr_reader :compute_repository_access_token_status - ## - # RPC-specific configuration for `fetch_remote_branches` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_remote_branches - ## - # RPC-specific configuration for `list_workspaces` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workspaces - ## - # RPC-specific configuration for `get_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workspace - ## - # RPC-specific configuration for `create_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workspace - ## - # RPC-specific configuration for `delete_workspace` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workspace - ## - # RPC-specific configuration for `install_npm_packages` - # @return [::Gapic::Config::Method] - # - attr_reader :install_npm_packages - ## - # RPC-specific configuration for `pull_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :pull_git_commits - ## - # RPC-specific configuration for `push_git_commits` - # @return [::Gapic::Config::Method] - # - attr_reader :push_git_commits - ## - # RPC-specific configuration for `fetch_file_git_statuses` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_git_statuses - ## - # RPC-specific configuration for `fetch_git_ahead_behind` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_git_ahead_behind - ## - # RPC-specific configuration for `commit_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :commit_workspace_changes - ## - # RPC-specific configuration for `reset_workspace_changes` - # @return [::Gapic::Config::Method] - # - attr_reader :reset_workspace_changes - ## - # RPC-specific configuration for `fetch_file_diff` - # @return [::Gapic::Config::Method] - # - attr_reader :fetch_file_diff - ## - # RPC-specific configuration for `query_directory_contents` - # @return [::Gapic::Config::Method] - # - attr_reader :query_directory_contents - ## - # RPC-specific configuration for `search_files` - # @return [::Gapic::Config::Method] - # - attr_reader :search_files - ## - # RPC-specific configuration for `make_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :make_directory - ## - # RPC-specific configuration for `remove_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_directory - ## - # RPC-specific configuration for `move_directory` - # @return [::Gapic::Config::Method] - # - attr_reader :move_directory - ## - # RPC-specific configuration for `read_file` - # @return [::Gapic::Config::Method] - # - attr_reader :read_file - ## - # RPC-specific configuration for `remove_file` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_file - ## - # RPC-specific configuration for `move_file` - # @return [::Gapic::Config::Method] - # - attr_reader :move_file - ## - # RPC-specific configuration for `write_file` - # @return [::Gapic::Config::Method] - # - attr_reader :write_file - ## - # RPC-specific configuration for `list_release_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_release_configs - ## - # RPC-specific configuration for `get_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_release_config - ## - # RPC-specific configuration for `create_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_release_config - ## - # RPC-specific configuration for `update_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_release_config - ## - # RPC-specific configuration for `delete_release_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_release_config - ## - # RPC-specific configuration for `list_compilation_results` - # @return [::Gapic::Config::Method] - # - attr_reader :list_compilation_results - ## - # RPC-specific configuration for `get_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :get_compilation_result - ## - # RPC-specific configuration for `create_compilation_result` - # @return [::Gapic::Config::Method] - # - attr_reader :create_compilation_result - ## - # RPC-specific configuration for `query_compilation_result_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_compilation_result_actions - ## - # RPC-specific configuration for `list_workflow_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_configs - ## - # RPC-specific configuration for `get_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_config - ## - # RPC-specific configuration for `create_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_config - ## - # RPC-specific configuration for `update_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_workflow_config - ## - # RPC-specific configuration for `delete_workflow_config` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_config - ## - # RPC-specific configuration for `list_workflow_invocations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_workflow_invocations - ## - # RPC-specific configuration for `get_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_workflow_invocation - ## - # RPC-specific configuration for `create_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_workflow_invocation - ## - # RPC-specific configuration for `delete_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_workflow_invocation - ## - # RPC-specific configuration for `cancel_workflow_invocation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_workflow_invocation - ## - # RPC-specific configuration for `query_workflow_invocation_actions` - # @return [::Gapic::Config::Method] - # - attr_reader :query_workflow_invocation_actions - ## - # RPC-specific configuration for `get_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_config - ## - # RPC-specific configuration for `update_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_config - ## - # RPC-specific configuration for `get_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :get_iam_policy - ## - # RPC-specific configuration for `set_iam_policy` - # @return [::Gapic::Config::Method] - # - attr_reader :set_iam_policy - ## - # RPC-specific configuration for `test_iam_permissions` - # @return [::Gapic::Config::Method] - # - attr_reader :test_iam_permissions - - # @private - def initialize parent_rpcs = nil - get_team_folder_config = parent_rpcs.get_team_folder if parent_rpcs.respond_to? :get_team_folder - @get_team_folder = ::Gapic::Config::Method.new get_team_folder_config - create_team_folder_config = parent_rpcs.create_team_folder if parent_rpcs.respond_to? :create_team_folder - @create_team_folder = ::Gapic::Config::Method.new create_team_folder_config - update_team_folder_config = parent_rpcs.update_team_folder if parent_rpcs.respond_to? :update_team_folder - @update_team_folder = ::Gapic::Config::Method.new update_team_folder_config - delete_team_folder_config = parent_rpcs.delete_team_folder if parent_rpcs.respond_to? :delete_team_folder - @delete_team_folder = ::Gapic::Config::Method.new delete_team_folder_config - delete_team_folder_tree_config = parent_rpcs.delete_team_folder_tree if parent_rpcs.respond_to? :delete_team_folder_tree - @delete_team_folder_tree = ::Gapic::Config::Method.new delete_team_folder_tree_config - query_team_folder_contents_config = parent_rpcs.query_team_folder_contents if parent_rpcs.respond_to? :query_team_folder_contents - @query_team_folder_contents = ::Gapic::Config::Method.new query_team_folder_contents_config - search_team_folders_config = parent_rpcs.search_team_folders if parent_rpcs.respond_to? :search_team_folders - @search_team_folders = ::Gapic::Config::Method.new search_team_folders_config - get_folder_config = parent_rpcs.get_folder if parent_rpcs.respond_to? :get_folder - @get_folder = ::Gapic::Config::Method.new get_folder_config - create_folder_config = parent_rpcs.create_folder if parent_rpcs.respond_to? :create_folder - @create_folder = ::Gapic::Config::Method.new create_folder_config - update_folder_config = parent_rpcs.update_folder if parent_rpcs.respond_to? :update_folder - @update_folder = ::Gapic::Config::Method.new update_folder_config - delete_folder_config = parent_rpcs.delete_folder if parent_rpcs.respond_to? :delete_folder - @delete_folder = ::Gapic::Config::Method.new delete_folder_config - delete_folder_tree_config = parent_rpcs.delete_folder_tree if parent_rpcs.respond_to? :delete_folder_tree - @delete_folder_tree = ::Gapic::Config::Method.new delete_folder_tree_config - query_folder_contents_config = parent_rpcs.query_folder_contents if parent_rpcs.respond_to? :query_folder_contents - @query_folder_contents = ::Gapic::Config::Method.new query_folder_contents_config - query_user_root_contents_config = parent_rpcs.query_user_root_contents if parent_rpcs.respond_to? :query_user_root_contents - @query_user_root_contents = ::Gapic::Config::Method.new query_user_root_contents_config - move_folder_config = parent_rpcs.move_folder if parent_rpcs.respond_to? :move_folder - @move_folder = ::Gapic::Config::Method.new move_folder_config - list_repositories_config = parent_rpcs.list_repositories if parent_rpcs.respond_to? :list_repositories - @list_repositories = ::Gapic::Config::Method.new list_repositories_config - get_repository_config = parent_rpcs.get_repository if parent_rpcs.respond_to? :get_repository - @get_repository = ::Gapic::Config::Method.new get_repository_config - create_repository_config = parent_rpcs.create_repository if parent_rpcs.respond_to? :create_repository - @create_repository = ::Gapic::Config::Method.new create_repository_config - update_repository_config = parent_rpcs.update_repository if parent_rpcs.respond_to? :update_repository - @update_repository = ::Gapic::Config::Method.new update_repository_config - delete_repository_config = parent_rpcs.delete_repository if parent_rpcs.respond_to? :delete_repository - @delete_repository = ::Gapic::Config::Method.new delete_repository_config - move_repository_config = parent_rpcs.move_repository if parent_rpcs.respond_to? :move_repository - @move_repository = ::Gapic::Config::Method.new move_repository_config - commit_repository_changes_config = parent_rpcs.commit_repository_changes if parent_rpcs.respond_to? :commit_repository_changes - @commit_repository_changes = ::Gapic::Config::Method.new commit_repository_changes_config - read_repository_file_config = parent_rpcs.read_repository_file if parent_rpcs.respond_to? :read_repository_file - @read_repository_file = ::Gapic::Config::Method.new read_repository_file_config - query_repository_directory_contents_config = parent_rpcs.query_repository_directory_contents if parent_rpcs.respond_to? :query_repository_directory_contents - @query_repository_directory_contents = ::Gapic::Config::Method.new query_repository_directory_contents_config - fetch_repository_history_config = parent_rpcs.fetch_repository_history if parent_rpcs.respond_to? :fetch_repository_history - @fetch_repository_history = ::Gapic::Config::Method.new fetch_repository_history_config - compute_repository_access_token_status_config = parent_rpcs.compute_repository_access_token_status if parent_rpcs.respond_to? :compute_repository_access_token_status - @compute_repository_access_token_status = ::Gapic::Config::Method.new compute_repository_access_token_status_config - fetch_remote_branches_config = parent_rpcs.fetch_remote_branches if parent_rpcs.respond_to? :fetch_remote_branches - @fetch_remote_branches = ::Gapic::Config::Method.new fetch_remote_branches_config - list_workspaces_config = parent_rpcs.list_workspaces if parent_rpcs.respond_to? :list_workspaces - @list_workspaces = ::Gapic::Config::Method.new list_workspaces_config - get_workspace_config = parent_rpcs.get_workspace if parent_rpcs.respond_to? :get_workspace - @get_workspace = ::Gapic::Config::Method.new get_workspace_config - create_workspace_config = parent_rpcs.create_workspace if parent_rpcs.respond_to? :create_workspace - @create_workspace = ::Gapic::Config::Method.new create_workspace_config - delete_workspace_config = parent_rpcs.delete_workspace if parent_rpcs.respond_to? :delete_workspace - @delete_workspace = ::Gapic::Config::Method.new delete_workspace_config - install_npm_packages_config = parent_rpcs.install_npm_packages if parent_rpcs.respond_to? :install_npm_packages - @install_npm_packages = ::Gapic::Config::Method.new install_npm_packages_config - pull_git_commits_config = parent_rpcs.pull_git_commits if parent_rpcs.respond_to? :pull_git_commits - @pull_git_commits = ::Gapic::Config::Method.new pull_git_commits_config - push_git_commits_config = parent_rpcs.push_git_commits if parent_rpcs.respond_to? :push_git_commits - @push_git_commits = ::Gapic::Config::Method.new push_git_commits_config - fetch_file_git_statuses_config = parent_rpcs.fetch_file_git_statuses if parent_rpcs.respond_to? :fetch_file_git_statuses - @fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config - fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind - @fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config - commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes - @commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config - reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes - @reset_workspace_changes = ::Gapic::Config::Method.new reset_workspace_changes_config - fetch_file_diff_config = parent_rpcs.fetch_file_diff if parent_rpcs.respond_to? :fetch_file_diff - @fetch_file_diff = ::Gapic::Config::Method.new fetch_file_diff_config - query_directory_contents_config = parent_rpcs.query_directory_contents if parent_rpcs.respond_to? :query_directory_contents - @query_directory_contents = ::Gapic::Config::Method.new query_directory_contents_config - search_files_config = parent_rpcs.search_files if parent_rpcs.respond_to? :search_files - @search_files = ::Gapic::Config::Method.new search_files_config - make_directory_config = parent_rpcs.make_directory if parent_rpcs.respond_to? :make_directory - @make_directory = ::Gapic::Config::Method.new make_directory_config - remove_directory_config = parent_rpcs.remove_directory if parent_rpcs.respond_to? :remove_directory - @remove_directory = ::Gapic::Config::Method.new remove_directory_config - move_directory_config = parent_rpcs.move_directory if parent_rpcs.respond_to? :move_directory - @move_directory = ::Gapic::Config::Method.new move_directory_config - read_file_config = parent_rpcs.read_file if parent_rpcs.respond_to? :read_file - @read_file = ::Gapic::Config::Method.new read_file_config - remove_file_config = parent_rpcs.remove_file if parent_rpcs.respond_to? :remove_file - @remove_file = ::Gapic::Config::Method.new remove_file_config - move_file_config = parent_rpcs.move_file if parent_rpcs.respond_to? :move_file - @move_file = ::Gapic::Config::Method.new move_file_config - write_file_config = parent_rpcs.write_file if parent_rpcs.respond_to? :write_file - @write_file = ::Gapic::Config::Method.new write_file_config - list_release_configs_config = parent_rpcs.list_release_configs if parent_rpcs.respond_to? :list_release_configs - @list_release_configs = ::Gapic::Config::Method.new list_release_configs_config - get_release_config_config = parent_rpcs.get_release_config if parent_rpcs.respond_to? :get_release_config - @get_release_config = ::Gapic::Config::Method.new get_release_config_config - create_release_config_config = parent_rpcs.create_release_config if parent_rpcs.respond_to? :create_release_config - @create_release_config = ::Gapic::Config::Method.new create_release_config_config - update_release_config_config = parent_rpcs.update_release_config if parent_rpcs.respond_to? :update_release_config - @update_release_config = ::Gapic::Config::Method.new update_release_config_config - delete_release_config_config = parent_rpcs.delete_release_config if parent_rpcs.respond_to? :delete_release_config - @delete_release_config = ::Gapic::Config::Method.new delete_release_config_config - list_compilation_results_config = parent_rpcs.list_compilation_results if parent_rpcs.respond_to? :list_compilation_results - @list_compilation_results = ::Gapic::Config::Method.new list_compilation_results_config - get_compilation_result_config = parent_rpcs.get_compilation_result if parent_rpcs.respond_to? :get_compilation_result - @get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config - create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result - @create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config - query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions - @query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config - list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs - @list_workflow_configs = ::Gapic::Config::Method.new list_workflow_configs_config - get_workflow_config_config = parent_rpcs.get_workflow_config if parent_rpcs.respond_to? :get_workflow_config - @get_workflow_config = ::Gapic::Config::Method.new get_workflow_config_config - create_workflow_config_config = parent_rpcs.create_workflow_config if parent_rpcs.respond_to? :create_workflow_config - @create_workflow_config = ::Gapic::Config::Method.new create_workflow_config_config - update_workflow_config_config = parent_rpcs.update_workflow_config if parent_rpcs.respond_to? :update_workflow_config - @update_workflow_config = ::Gapic::Config::Method.new update_workflow_config_config - delete_workflow_config_config = parent_rpcs.delete_workflow_config if parent_rpcs.respond_to? :delete_workflow_config - @delete_workflow_config = ::Gapic::Config::Method.new delete_workflow_config_config - list_workflow_invocations_config = parent_rpcs.list_workflow_invocations if parent_rpcs.respond_to? :list_workflow_invocations - @list_workflow_invocations = ::Gapic::Config::Method.new list_workflow_invocations_config - get_workflow_invocation_config = parent_rpcs.get_workflow_invocation if parent_rpcs.respond_to? :get_workflow_invocation - @get_workflow_invocation = ::Gapic::Config::Method.new get_workflow_invocation_config - create_workflow_invocation_config = parent_rpcs.create_workflow_invocation if parent_rpcs.respond_to? :create_workflow_invocation - @create_workflow_invocation = ::Gapic::Config::Method.new create_workflow_invocation_config - delete_workflow_invocation_config = parent_rpcs.delete_workflow_invocation if parent_rpcs.respond_to? :delete_workflow_invocation - @delete_workflow_invocation = ::Gapic::Config::Method.new delete_workflow_invocation_config - cancel_workflow_invocation_config = parent_rpcs.cancel_workflow_invocation if parent_rpcs.respond_to? :cancel_workflow_invocation - @cancel_workflow_invocation = ::Gapic::Config::Method.new cancel_workflow_invocation_config - query_workflow_invocation_actions_config = parent_rpcs.query_workflow_invocation_actions if parent_rpcs.respond_to? :query_workflow_invocation_actions - @query_workflow_invocation_actions = ::Gapic::Config::Method.new query_workflow_invocation_actions_config - get_config_config = parent_rpcs.get_config if parent_rpcs.respond_to? :get_config - @get_config = ::Gapic::Config::Method.new get_config_config - update_config_config = parent_rpcs.update_config if parent_rpcs.respond_to? :update_config - @update_config = ::Gapic::Config::Method.new update_config_config - get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy - @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config - set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy - @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config - test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions - @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb deleted file mode 100644 index 1576b6fb66dd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/operations.rb +++ /dev/null @@ -1,925 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Dataform Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Dataform Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = OperationsServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.list_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.get_operation request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.delete_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.cancel_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations REST API. - # - # This class represents the configuration for Operations REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataform.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - - yield self if block_given? - end - end - end - end - - ## - # @private - # REST service stub for the Longrunning Operations API. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - class OperationsServiceStub - def initialize endpoint:, endpoint_template:, universe_domain:, credentials: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials - end - - ## - # Baseline implementation for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::ListOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::ListOperationsResponse] - # A result object deserialized from the server's reply - def list_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def get_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def cancel_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}/operations", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb deleted file mode 100644 index 1f799e9394cc..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb +++ /dev/null @@ -1,4636 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataform/v1/dataform_pb" - -module Google - module Cloud - module Dataform - module V1 - module Dataform - module Rest - ## - # REST service stub for the Dataform service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def get_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def create_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::TeamFolder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A result object deserialized from the server's reply - def update_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::TeamFolder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_team_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_team_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_team_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_team_folder_tree request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_team_folder_tree_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_team_folder_tree", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_team_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse] - # A result object deserialized from the server's reply - def query_team_folder_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_team_folder_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_team_folder_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the search_team_folders REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse] - # A result object deserialized from the server's reply - def search_team_folders request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_search_team_folders_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "search_team_folders", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def get_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def create_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Folder] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Folder] - # A result object deserialized from the server's reply - def update_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Folder.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_folder_tree request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_folder_tree_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_folder_tree", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryFolderContentsResponse] - # A result object deserialized from the server's reply - def query_folder_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_folder_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_folder_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_user_root_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse] - # A result object deserialized from the server's reply - def query_user_root_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_user_root_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_user_root_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def move_folder request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_folder_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_folder", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_repositories REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse] - # A result object deserialized from the server's reply - def list_repositories request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_repositories", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def get_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def create_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Repository] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Repository] - # A result object deserialized from the server's reply - def update_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def move_repository request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_repository_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_repository", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the commit_repository_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse] - # A result object deserialized from the server's reply - def commit_repository_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "commit_repository_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the read_repository_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse] - # A result object deserialized from the server's reply - def read_repository_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "read_repository_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_repository_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse] - # A result object deserialized from the server's reply - def query_repository_directory_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_repository_directory_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_repository_history REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse] - # A result object deserialized from the server's reply - def fetch_repository_history request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_repository_history", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the compute_repository_access_token_status REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse] - # A result object deserialized from the server's reply - def compute_repository_access_token_status request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "compute_repository_access_token_status", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_remote_branches REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse] - # A result object deserialized from the server's reply - def fetch_remote_branches request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_remote_branches", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workspaces REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse] - # A result object deserialized from the server's reply - def list_workspaces request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workspaces", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # A result object deserialized from the server's reply - def get_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Workspace] - # A result object deserialized from the server's reply - def create_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workspace request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workspace", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the install_npm_packages REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse] - # A result object deserialized from the server's reply - def install_npm_packages request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "install_npm_packages", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the pull_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse] - # A result object deserialized from the server's reply - def pull_git_commits request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "pull_git_commits", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the push_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse] - # A result object deserialized from the server's reply - def push_git_commits request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "push_git_commits", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_file_git_statuses REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse] - # A result object deserialized from the server's reply - def fetch_file_git_statuses request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_file_git_statuses", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_git_ahead_behind REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse] - # A result object deserialized from the server's reply - def fetch_git_ahead_behind request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_git_ahead_behind", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the commit_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse] - # A result object deserialized from the server's reply - def commit_workspace_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "commit_workspace_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the reset_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse] - # A result object deserialized from the server's reply - def reset_workspace_changes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "reset_workspace_changes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the fetch_file_diff REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse] - # A result object deserialized from the server's reply - def fetch_file_diff request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "fetch_file_diff", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse] - # A result object deserialized from the server's reply - def query_directory_contents request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_directory_contents", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the search_files REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse] - # A result object deserialized from the server's reply - def search_files request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "search_files", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the make_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse] - # A result object deserialized from the server's reply - def make_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "make_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the remove_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse] - # A result object deserialized from the server's reply - def remove_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "remove_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse] - # A result object deserialized from the server's reply - def move_directory request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_directory", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the read_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReadFileResponse] - # A result object deserialized from the server's reply - def read_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "read_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the remove_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse] - # A result object deserialized from the server's reply - def remove_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "remove_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the move_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::MoveFileResponse] - # A result object deserialized from the server's reply - def move_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "move_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the write_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WriteFileResponse] - # A result object deserialized from the server's reply - def write_file request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "write_file", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_release_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse] - # A result object deserialized from the server's reply - def list_release_configs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_release_configs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def get_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def create_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # A result object deserialized from the server's reply - def update_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_release_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_release_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_compilation_results REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse] - # A result object deserialized from the server's reply - def list_compilation_results request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_compilation_results", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # A result object deserialized from the server's reply - def get_compilation_result request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_compilation_result", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # A result object deserialized from the server's reply - def create_compilation_result request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_compilation_result", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_compilation_result_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse] - # A result object deserialized from the server's reply - def query_compilation_result_actions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_compilation_result_actions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workflow_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse] - # A result object deserialized from the server's reply - def list_workflow_configs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workflow_configs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def get_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def create_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # A result object deserialized from the server's reply - def update_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workflow_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workflow_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_workflow_invocations REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse] - # A result object deserialized from the server's reply - def list_workflow_invocations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_workflow_invocations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # A result object deserialized from the server's reply - def get_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # A result object deserialized from the server's reply - def create_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse] - # A result object deserialized from the server's reply - def cancel_workflow_invocation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_workflow_invocation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the query_workflow_invocation_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse] - # A result object deserialized from the server's reply - def query_workflow_invocation_actions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "query_workflow_invocation_actions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def get_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataform::V1::Config] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataform::V1::Config] - # A result object deserialized from the server's reply - def update_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # A result object deserialized from the server's reply - def get_iam_policy request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_iam_policy", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the set_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::Policy] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::Policy] - # A result object deserialized from the server's reply - def set_iam_policy request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "set_iam_policy", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the test_iam_permissions REST call - # - # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Iam::V1::TestIamPermissionsResponse] - # A result object deserialized from the server's reply - def test_iam_permissions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "test_iam_permissions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/teamFolders", - body: "team_folder", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{team_folder.name}", - body: "team_folder", - matches: [ - ["team_folder.name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_team_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_team_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_team_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_team_folder_tree_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:deleteTree", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_team_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_team_folder_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{team_folder}:queryContents", - matches: [ - ["team_folder", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the search_team_folders REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_search_team_folders_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{location}/teamFolders:search", - matches: [ - ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/folders", - body: "folder", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{folder.name}", - body: "folder", - matches: [ - ["folder.name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_folder_tree REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_folder_tree_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:deleteTree", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_folder_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryFolderContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_folder_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{folder}:queryFolderContents", - matches: [ - ["folder", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_user_root_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_user_root_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{location}:queryUserRootContents", - matches: [ - ["location", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_folder REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFolderRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_folder_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:move", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_repositories REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_repositories_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/repositories", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/repositories", - body: "repository", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{repository.name}", - body: "repository", - matches: [ - ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_repository REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveRepositoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_repository_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:move", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the commit_repository_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_commit_repository_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:commit", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the read_repository_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_read_repository_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:readFile", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_repository_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_repository_directory_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:queryDirectoryContents", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_repository_history REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_repository_history_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchHistory", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the compute_repository_access_token_status REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_compute_repository_access_token_status_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:computeAccessTokenStatus", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_remote_branches REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_remote_branches_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchRemoteBranches", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workspaces REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workspaces_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workspaces", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workspaces", - body: "workspace", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workspace REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workspace_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the install_npm_packages REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_install_npm_packages_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:installNpmPackages", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the pull_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_pull_git_commits_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:pull", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the push_git_commits REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_push_git_commits_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:push", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_file_git_statuses REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_file_git_statuses_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchFileGitStatuses", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_git_ahead_behind REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_git_ahead_behind_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:fetchGitAheadBehind", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the commit_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_commit_workspace_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:commit", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the reset_workspace_changes REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_reset_workspace_changes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:reset", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the fetch_file_diff REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_fetch_file_diff_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:fetchFileDiff", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_directory_contents REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_directory_contents_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:queryDirectoryContents", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the search_files REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_search_files_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:searchFiles", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the make_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_make_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:makeDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the remove_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_remove_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:removeDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_directory REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_directory_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:moveDirectory", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the read_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_read_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{workspace}:readFile", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the remove_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_remove_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:removeFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the move_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_move_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:moveFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the write_file REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_write_file_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{workspace}:writeFile", - body: "*", - matches: [ - ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_release_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_release_configs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/releaseConfigs", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/releaseConfigs", - body: "release_config", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{release_config.name}", - body: "release_config", - matches: [ - ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_release_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_release_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_compilation_results REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_compilation_results_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/compilationResults", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_compilation_result_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_compilation_result REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_compilation_result_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/compilationResults", - body: "compilation_result", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_compilation_result_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_compilation_result_actions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:query", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workflow_configs REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workflow_configs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workflowConfigs", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workflowConfigs", - body: "workflow_config", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{workflow_config.name}", - body: "workflow_config", - matches: [ - ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workflow_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workflow_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_workflow_invocations REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_workflow_invocations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/workflowInvocations", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/workflowInvocations", - body: "workflow_invocation", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_workflow_invocation REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_workflow_invocation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the query_workflow_invocation_actions REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_query_workflow_invocation_actions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}:query", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_config REST call - # - # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{config.name}", - body: "config", - matches: [ - ["config.name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::GetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_iam_policy_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{resource}:getIamPolicy", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the set_iam_policy REST call - # - # @param request_pb [::Google::Iam::V1::SetIamPolicyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_set_iam_policy_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:setIamPolicy", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the test_iam_permissions REST call - # - # @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_test_iam_permissions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/folders/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1/{resource}:testIamPermissions", - body: "*", - matches: [ - ["resource", %r{^projects/[^/]+/locations/[^/]+/teamFolders/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb deleted file mode 100644 index d0223b594bff..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/cloud/dataform/v1/dataform_pb.rb +++ /dev/null @@ -1,216 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/dataform/v1/dataform.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/iam/v1/iam_policy_pb' -require 'google/iam/v1/policy_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' -require 'google/rpc/status_pb' -require 'google/type/interval_pb' - - -descriptor_data = "\n\'google/cloud/dataform/v1/dataform.proto\x12\x18google.cloud.dataform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"e\n\x13\x44\x61taEncryptionState\x12N\n\x14kms_key_version_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(cloudkms.googleapis.com/CryptoKeyVersion\"\x92\x0e\n\nRepository\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12#\n\x11\x63ontaining_folder\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\"\n\x10team_folder_name\x18\x12 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12X\n\x13git_remote_settings\x18\x02 \x01(\x0b\x32\x36.google.cloud.dataform.v1.Repository.GitRemoteSettingsB\x03\xe0\x41\x01\x12\x66\n*npmrc_environment_variables_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12p\n\x1fworkspace_compilation_overrides\x18\x04 \x01(\x0b\x32\x42.google.cloud.dataform.v1.Repository.WorkspaceCompilationOverridesB\x03\xe0\x41\x01\x12\x45\n\x06labels\x18\x05 \x03(\x0b\x32\x30.google.cloud.dataform.v1.Repository.LabelsEntryB\x03\xe0\x41\x01\x12,\n\x1cset_authenticated_user_admin\x18\t \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x04\x12\x1c\n\x0fservice_account\x18\n \x01(\tB\x03\xe0\x41\x01\x12?\n\x0ckms_key_name\x18\x0b \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12Q\n\x15\x64\x61ta_encryption_state\x18\x0c \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0f \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a\xe7\x04\n\x11GitRemoteSettings\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x64\x65\x66\x61ult_branch\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12_\n#authentication_token_secret_version\x18\x03 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12v\n\x19ssh_authentication_config\x18\x05 \x01(\x0b\x32N.google.cloud.dataform.v1.Repository.GitRemoteSettings.SshAuthenticationConfigB\x03\xe0\x41\x01\x12_\n\x0ctoken_status\x18\x04 \x01(\x0e\x32\x42.google.cloud.dataform.v1.Repository.GitRemoteSettings.TokenStatusB\x05\x18\x01\xe0\x41\x03\x1a\x94\x01\n\x17SshAuthenticationConfig\x12[\n\x1fuser_private_key_secret_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1c\n\x0fhost_public_key\x18\x02 \x01(\tB\x03\xe0\x41\x02\"R\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x1au\n\x1dWorkspaceCompilationOverrides\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x85\x01\xea\x41\x81\x01\n\"dataform.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}*\x0crepositories2\nrepositoryB\x14\n\x12_containing_folderB\x13\n\x11_team_folder_nameB\x14\n\x12_internal_metadata\"3\n\x17PrivateResourceMetadata\x12\x18\n\x0buser_scoped\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\"\xb1\x01\n\x17ListRepositoriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListRepositoriesResponse\x12:\n\x0crepositories\x18\x01 \x03(\x0b\x32$.google.cloud.dataform.v1.Repository\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa4\x01\n\x15MoveRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"P\n\x14GetRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xaf\x01\n\x17\x43reateRepositoryRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\x12\x1a\n\rrepository_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8e\x01\n\x17UpdateRepositoryRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12=\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryB\x03\xe0\x41\x02\"g\n\x17\x44\x65leteRepositoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xd2\x05\n\x1e\x43ommitRepositoryChangesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0f\x63ommit_metadata\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.CommitMetadataB\x03\xe0\x41\x02\x12%\n\x18required_head_commit_sha\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12j\n\x0f\x66ile_operations\x18\x03 \x03(\x0b\x32L.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperationsEntryB\x03\xe0\x41\x01\x1a\x9b\x02\n\rFileOperation\x12\x66\n\nwrite_file\x18\x01 \x01(\x0b\x32P.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.WriteFileH\x00\x12h\n\x0b\x64\x65lete_file\x18\x02 \x01(\x0b\x32Q.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\x00\x1a\x1d\n\tWriteFile\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x1a\x0c\n\nDeleteFileB\x0b\n\toperation\x1a}\n\x13\x46ileOperationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12U\n\x05value\x18\x02 \x01(\x0b\x32\x46.google.cloud.dataform.v1.CommitRepositoryChangesRequest.FileOperation:\x02\x38\x01\"5\n\x1f\x43ommitRepositoryChangesResponse\x12\x12\n\ncommit_sha\x18\x01 \x01(\t\"\x81\x01\n\x19ReadRepositoryFileRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x02\".\n\x1aReadRepositoryFileResponse\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\"\xc0\x01\n\'QueryRepositoryDirectoryContentsRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x17\n\ncommit_sha\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x88\x01\n(QueryRepositoryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1d\x46\x65tchRepositoryHistoryRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"t\n\x1e\x46\x65tchRepositoryHistoryResponse\x12\x39\n\x07\x63ommits\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.CommitLogEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa5\x01\n\x0e\x43ommitLogEntry\x12/\n\x0b\x63ommit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncommit_sha\x18\x02 \x01(\t\x12\x36\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthor\x12\x16\n\x0e\x63ommit_message\x18\x04 \x01(\t\"j\n\x0e\x43ommitMetadata\x12;\n\x06\x61uthor\x18\x01 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\"e\n)ComputeRepositoryAccessTokenStatusRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"\xff\x01\n*ComputeRepositoryAccessTokenStatusResponse\x12\x66\n\x0ctoken_status\x18\x01 \x01(\x0e\x32P.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"i\n\x0bTokenStatus\x12\x1c\n\x18TOKEN_STATUS_UNSPECIFIED\x10\x00\x12\r\n\tNOT_FOUND\x10\x01\x12\x0b\n\x07INVALID\x10\x02\x12\t\n\x05VALID\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\"V\n\x1a\x46\x65tchRemoteBranchesRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\"/\n\x1b\x46\x65tchRemoteBranchesResponse\x12\x10\n\x08\x62ranches\x18\x01 \x03(\t\"\x8b\x04\n\tWorkspace\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\x02 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1f\n\rdisable_moves\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x08 \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03:\x98\x01\xea\x41\x94\x01\n!dataform.googleapis.com/Workspace\x12Xprojects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\nworkspaces2\tworkspaceB\x14\n\x12_internal_metadataB\x10\n\x0e_disable_moves\"\xb0\x01\n\x15ListWorkspacesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x16ListWorkspacesResponse\x12\x37\n\nworkspaces\x18\x01 \x03(\x0b\x32#.google.cloud.dataform.v1.Workspace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"N\n\x13GetWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xac\x01\n\x16\x43reateWorkspaceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12;\n\tworkspace\x18\x02 \x01(\x0b\x32#.google.cloud.dataform.v1.WorkspaceB\x03\xe0\x41\x02\x12\x19\n\x0cworkspace_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"Q\n\x16\x44\x65leteWorkspaceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"=\n\x0c\x43ommitAuthor\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\remail_address\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xa9\x01\n\x15PullGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12;\n\x06\x61uthor\x18\x03 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\"\x18\n\x16PullGitCommitsResponse\"l\n\x15PushGitCommitsRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x18\n\x16PushGitCommitsResponse\"V\n\x1b\x46\x65tchFileGitStatusesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\xf7\x02\n\x1c\x46\x65tchFileGitStatusesResponse\x12n\n\x18uncommitted_file_changes\x18\x01 \x03(\x0b\x32L.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\x1a\xe6\x01\n\x15UncommittedFileChange\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x66\n\x05state\x18\x02 \x01(\x0e\x32R.google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\x03\xe0\x41\x03\"W\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x12\x11\n\rHAS_CONFLICTS\x10\x04\"q\n\x1a\x46\x65tchGitAheadBehindRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x1a\n\rremote_branch\x18\x02 \x01(\tB\x03\xe0\x41\x01\"L\n\x1b\x46\x65tchGitAheadBehindResponse\x12\x15\n\rcommits_ahead\x18\x01 \x01(\x05\x12\x16\n\x0e\x63ommits_behind\x18\x02 \x01(\x05\"\xc6\x01\n\x1d\x43ommitWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12;\n\x06\x61uthor\x18\x04 \x01(\x0b\x32&.google.cloud.dataform.v1.CommitAuthorB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63ommit_message\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05paths\x18\x03 \x03(\tB\x03\xe0\x41\x01\" \n\x1e\x43ommitWorkspaceChangesResponse\"\x7f\n\x1cResetWorkspaceChangesRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x12\n\x05paths\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x63lean\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x1f\n\x1dResetWorkspaceChangesResponse\"g\n\x14\x46\x65tchFileDiffRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"/\n\x15\x46\x65tchFileDiffResponse\x12\x16\n\x0e\x66ormatted_diff\x18\x01 \x01(\t\"\xe5\x01\n\x1dQueryDirectoryContentsRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x42\n\x04view\x18\x05 \x01(\x0e\x32/.google.cloud.dataform.v1.DirectoryContentsViewB\x03\xe0\x41\x01\"~\n\x1eQueryDirectoryContentsResponse\x12\x43\n\x11\x64irectory_entries\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.DirectoryEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x0e\x44irectoryEntry\x12\x0e\n\x04\x66ile\x18\x01 \x01(\tH\x00\x12\x13\n\tdirectory\x18\x02 \x01(\tH\x00\x12\x43\n\x08metadata\x18\x03 \x01(\x0b\x32\x31.google.cloud.dataform.v1.FilesystemEntryMetadataB\x07\n\x05\x65ntry\"h\n\x17\x46ilesystemEntryMetadata\x12\x17\n\nsize_bytes\x18\x01 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x98\x01\n\x12SearchFilesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"s\n\x13SearchFilesResponse\x12>\n\x0esearch_results\x18\x01 \x03(\x0b\x32&.google.cloud.dataform.v1.SearchResult\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n\x0cSearchResult\x12:\n\x04\x66ile\x18\x01 \x01(\x0b\x32*.google.cloud.dataform.v1.FileSearchResultH\x00\x12\x44\n\tdirectory\x18\x02 \x01(\x0b\x32/.google.cloud.dataform.v1.DirectorySearchResultH\x00\x42\x07\n\x05\x65ntry\" \n\x10\x46ileSearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"%\n\x15\x44irectorySearchResult\x12\x0c\n\x04path\x18\x01 \x01(\t\"g\n\x14MakeDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MakeDirectoryResponse\"i\n\x16RemoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x19\n\x17RemoveDirectoryResponse\"~\n\x14MoveDirectoryRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15MoveDirectoryResponse\"y\n\x0fReadFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08revision\x18\x03 \x01(\tB\x03\xe0\x41\x01\")\n\x10ReadFileResponse\x12\x15\n\rfile_contents\x18\x01 \x01(\x0c\"d\n\x11RemoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x14\n\x12RemoveFileResponse\"y\n\x0fMoveFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08new_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x12\n\x10MoveFileResponse\"z\n\x10WriteFileRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\x12\x11\n\x04path\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x63ontents\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\x13\n\x11WriteFileResponse\"Y\n\x19InstallNpmPackagesRequest\x12<\n\tworkspace\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dataform.googleapis.com/Workspace\"\x1c\n\x1aInstallNpmPackagesResponse\"\xe7\x06\n\rReleaseConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x17\x63ode_compilation_config\x18\x03 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12m\n recent_scheduled_release_records\x18\x05 \x03(\x0b\x32>.google.cloud.dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\x03\xe0\x41\x03\x12U\n\x1arelease_compilation_result\x18\x06 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd3\x01\n\x16ScheduledReleaseRecord\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\tB.\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x35\n\x0crelease_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xad\x01\xea\x41\xa9\x01\n%dataform.googleapis.com/ReleaseConfig\x12\x61projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}*\x0ereleaseConfigs2\rreleaseConfigB\x14\n\x12_internal_metadata\"\x88\x01\n\x19ListReleaseConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1aListReleaseConfigsResponse\x12@\n\x0frelease_configs\x18\x01 \x03(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x17GetReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xbe\x01\n\x1a\x43reateReleaseConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\x12\x1e\n\x11release_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x1aUpdateReleaseConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x44\n\x0erelease_config\x18\x02 \x01(\x0b\x32\'.google.cloud.dataform.v1.ReleaseConfigB\x03\xe0\x41\x02\"Y\n\x1a\x44\x65leteReleaseConfigRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\"\xca\x08\n\x11\x43ompilationResult\x12\x1c\n\rgit_commitish\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12>\n\tworkspace\x18\x03 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!dataform.googleapis.com/WorkspaceH\x00\x12G\n\x0erelease_config\x18\x07 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12U\n\x17\x63ode_compilation_config\x18\x04 \x01(\x0b\x32/.google.cloud.dataform.v1.CodeCompilationConfigB\x03\xe0\x41\x05\x12$\n\x17resolved_git_commit_sha\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x61taform_core_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12]\n\x12\x63ompilation_errors\x18\x06 \x03(\x0b\x32<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\x03\xe0\x41\x03\x12Q\n\x15\x64\x61ta_encryption_state\x18\t \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\x0c \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\x1a\x8d\x01\n\x10\x43ompilationError\x12\x14\n\x07message\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05stack\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12<\n\raction_target\x18\x04 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03:\xc1\x01\xea\x41\xbd\x01\n)dataform.googleapis.com/CompilationResult\x12iprojects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}*\x12\x63ompilationResults2\x11\x63ompilationResultB\x08\n\x06sourceB\x14\n\x12_internal_metadata\"\xee\x03\n\x15\x43odeCompilationConfig\x12\x1d\n\x10\x64\x65\x66\x61ult_database\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x65\x66\x61ult_schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x65\x66\x61ult_location\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ssertion_schema\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12L\n\x04vars\x18\x04 \x03(\x0b\x32\x39.google.cloud.dataform.v1.CodeCompilationConfig.VarsEntryB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x61tabase_suffix\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rschema_suffix\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0ctable_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1d\x62uiltin_assertion_name_prefix\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n default_notebook_runtime_options\x18\t \x01(\x0b\x32\x30.google.cloud.dataform.v1.NotebookRuntimeOptionsB\x03\xe0\x41\x01\x1a+\n\tVarsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb6\x01\n\x16NotebookRuntimeOptions\x12 \n\x11gcs_output_bucket\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12h\n%ai_platform_notebook_runtime_template\x18\x02 \x01(\tB9\xe0\x41\x01\xfa\x41\x33\n1aiplatform.googleapis.com/NotebookRuntimeTemplateB\x10\n\x0e\x65xecution_sink\"\xb8\x01\n\x1dListCompilationResultsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n\x1eListCompilationResultsResponse\x12H\n\x13\x63ompilation_results\x18\x01 \x03(\x0b\x32+.google.cloud.dataform.v1.CompilationResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x1bGetCompilationResultRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\"\xaa\x01\n\x1e\x43reateCompilationResultRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12L\n\x12\x63ompilation_result\x18\x02 \x01(\x0b\x32+.google.cloud.dataform.v1.CompilationResultB\x03\xe0\x41\x02\"G\n\x06Target\x12\x15\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06schema\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe0\x02\n\x12RelationDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12N\n\x07\x63olumns\x18\x02 \x03(\x0b\x32=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\x12Y\n\x0f\x62igquery_labels\x18\x03 \x03(\x0b\x32@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\x1aS\n\x10\x43olumnDescriptor\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x14\x62igquery_policy_tags\x18\x03 \x03(\t\x1a\x35\n\x13\x42igqueryLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa3\x1e\n\x17\x43ompilationResultAction\x12N\n\x08relation\x18\x04 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.RelationH\x00\x12R\n\noperations\x18\x05 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\x00\x12P\n\tassertion\x18\x06 \x01(\x0b\x32;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\x00\x12T\n\x0b\x64\x65\x63laration\x18\x07 \x01(\x0b\x32=.google.cloud.dataform.v1.CompilationResultAction.DeclarationH\x00\x12N\n\x08notebook\x18\x08 \x01(\x0b\x32:.google.cloud.dataform.v1.CompilationResultAction.NotebookH\x00\x12]\n\x10\x64\x61ta_preparation\x18\t \x01(\x0b\x32\x41.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\x00\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12:\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a\xae\x0b\n\x08Relation\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x04 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12^\n\rrelation_type\x18\x05 \x01(\x0e\x32G.google.cloud.dataform.v1.CompilationResultAction.Relation.RelationType\x12\x14\n\x0cselect_query\x18\x06 \x01(\t\x12\x16\n\x0epre_operations\x18\x07 \x03(\t\x12\x17\n\x0fpost_operations\x18\x08 \x03(\t\x12s\n\x18incremental_table_config\x18\t \x01(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\x12\x1c\n\x14partition_expression\x18\n \x01(\t\x12\x1b\n\x13\x63luster_expressions\x18\x0b \x03(\t\x12!\n\x19partition_expiration_days\x18\x0c \x01(\x05\x12 \n\x18require_partition_filter\x18\r \x01(\x08\x12m\n\x12\x61\x64\x64itional_options\x18\x0e \x03(\x0b\x32Q.google.cloud.dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\x12\x17\n\nconnection\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x0ctable_format\x18\x10 \x01(\x0e\x32\x46.google.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\x03\xe0\x41\x01\x12_\n\x0b\x66ile_format\x18\x11 \x01(\x0e\x32\x45.google.cloud.dataform.v1.CompilationResultAction.Relation.FileFormatB\x03\xe0\x41\x01\x12\x18\n\x0bstorage_uri\x18\x12 \x01(\tB\x03\xe0\x41\x01\x1a\xd8\x01\n\x16IncrementalTableConfig\x12 \n\x18incremental_select_query\x18\x01 \x01(\t\x12\x18\n\x10refresh_disabled\x18\x02 \x01(\x08\x12\x18\n\x10unique_key_parts\x18\x03 \x03(\t\x12\x1f\n\x17update_partition_filter\x18\x04 \x01(\t\x12\"\n\x1aincremental_pre_operations\x18\x05 \x03(\t\x12#\n\x1bincremental_post_operations\x18\x06 \x03(\t\x1a\x38\n\x16\x41\x64\x64itionalOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"p\n\x0cRelationType\x12\x1d\n\x19RELATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x01\x12\x08\n\x04VIEW\x10\x02\x12\x15\n\x11INCREMENTAL_TABLE\x10\x03\x12\x15\n\x11MATERIALIZED_VIEW\x10\x04\"8\n\x0bTableFormat\x12\x1c\n\x18TABLE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07ICEBERG\x10\x01\"6\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x0b\n\x07PARQUET\x10\x01\x1a\xda\x01\n\nOperations\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x12\x0f\n\x07queries\x18\x04 \x03(\t\x12\x12\n\nhas_output\x18\x05 \x01(\x08\x1a\x83\x02\n\tAssertion\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x37\n\rparent_action\x18\x05 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x03 \x03(\t\x12\x14\n\x0cselect_query\x18\x04 \x01(\t\x12I\n\x13relation_descriptor\x18\x06 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1aX\n\x0b\x44\x65\x63laration\x12I\n\x13relation_descriptor\x18\x01 \x01(\x0b\x32,.google.cloud.dataform.v1.RelationDescriptor\x1az\n\x08Notebook\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x10\n\x08\x63ontents\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xa7\x04\n\x0f\x44\x61taPreparation\x12\x17\n\rcontents_yaml\x18\x05 \x01(\tH\x00\x12g\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32O.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\x00\x12<\n\x12\x64\x65pendency_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x10\n\x08\x64isabled\x18\x02 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\x1a\xcd\x01\n\rSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12\x61\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32L.google.cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\x12J\n\x04load\x18\x03 \x01(\x0b\x32<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\x1aV\n\nErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x42\x0c\n\ndefinition\x1a\xf0\x02\n\nLoadConfig\x12S\n\x07replace\x18\x01 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12R\n\x06\x61ppend\x18\x02 \x01(\x0b\x32@.google.cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\x00\x12X\n\x07maximum\x18\x03 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x12W\n\x06unique\x18\x04 \x01(\x0b\x32\x45.google.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x10\n\x0eSimpleLoadMode\x1a%\n\x13IncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x11\n\x0f\x63ompiled_objectB\x14\n\x12_internal_metadata\"\xad\x01\n$QueryCompilationResultActionsRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n%QueryCompilationResultActionsResponse\x12U\n\x1a\x63ompilation_result_actions\x18\x01 \x03(\x0b\x32\x31.google.cloud.dataform.v1.CompilationResultAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x07\n\x0eWorkflowConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x45\n\x0erelease_config\x18\x02 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%dataform.googleapis.com/ReleaseConfig\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x01\x12\x1a\n\rcron_schedule\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12r\n\"recent_scheduled_execution_records\x18\x05 \x03(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\x03\xe0\x41\x03\x12\x15\n\x08\x64isabled\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x0b \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x1a\xd9\x01\n\x18ScheduledExecutionRecord\x12N\n\x13workflow_invocation\x18\x02 \x01(\tB/\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocationH\x00\x12*\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12\x37\n\x0e\x65xecution_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\x08\n\x06result:\xb2\x01\xea\x41\xae\x01\n&dataform.googleapis.com/WorkflowConfig\x12\x63projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}*\x0fworkflowConfigs2\x0eworkflowConfigB\x14\n\x12_internal_metadata\"\xdc\x03\n\x10InvocationConfig\x12?\n\x10included_targets\x18\x01 \x03(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x01\x12\x1a\n\rincluded_tags\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12-\n transitive_dependencies_included\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1etransitive_dependents_included\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x35\n(fully_refresh_incremental_tables_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x0equery_priority\x18\t \x01(\x0e\x32\x38.google.cloud.dataform.v1.InvocationConfig.QueryPriorityB\x03\xe0\x41\x01H\x00\x88\x01\x01\"K\n\rQueryPriority\x12\x1e\n\x1aQUERY_PRIORITY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINTERACTIVE\x10\x01\x12\t\n\x05\x42\x41TCH\x10\x02\x42\x11\n\x0f_query_priority\"\x89\x01\n\x1aListWorkflowConfigsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n\x1bListWorkflowConfigsResponse\x12\x42\n\x10workflow_configs\x18\x01 \x03(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"X\n\x18GetWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\xc2\x01\n\x1b\x43reateWorkflowConfigRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\x12\x1f\n\x12workflow_config_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x9b\x01\n\x1bUpdateWorkflowConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x46\n\x0fworkflow_config\x18\x02 \x01(\x0b\x32(.google.cloud.dataform.v1.WorkflowConfigB\x03\xe0\x41\x02\"[\n\x1b\x44\x65leteWorkflowConfigRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&dataform.googleapis.com/WorkflowConfig\"\x94\x08\n\x12WorkflowInvocation\x12O\n\x12\x63ompilation_result\x18\x02 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)dataform.googleapis.com/CompilationResultH\x00\x12I\n\x0fworkflow_config\x18\x06 \x01(\tB.\xe0\x41\x05\xfa\x41(\n&dataform.googleapis.com/WorkflowConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12J\n\x11invocation_config\x18\x03 \x01(\x0b\x32*.google.cloud.dataform.v1.InvocationConfigB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.WorkflowInvocation.StateB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12V\n\x1bresolved_compilation_result\x18\x07 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)dataform.googleapis.com/CompilationResult\x12Q\n\x15\x64\x61ta_encryption_state\x18\x08 \x01(\x0b\x32-.google.cloud.dataform.v1.DataEncryptionStateB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\t \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12Y\n\x19private_resource_metadata\x18\n \x01(\x0b\x32\x31.google.cloud.dataform.v1.PrivateResourceMetadataB\x03\xe0\x41\x03\"d\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tCANCELING\x10\x05:\xc6\x01\xea\x41\xc2\x01\n*dataform.googleapis.com/WorkflowInvocation\x12kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}*\x13workflowInvocations2\x12workflowInvocationB\x14\n\x12\x63ompilation_sourceB\x14\n\x12_internal_metadata\"\xb9\x01\n\x1eListWorkflowInvocationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n\x1fListWorkflowInvocationsResponse\x12J\n\x14workflow_invocations\x18\x01 \x03(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"`\n\x1cGetWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\xad\x01\n\x1f\x43reateWorkflowInvocationRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/Repository\x12N\n\x13workflow_invocation\x18\x02 \x01(\x0b\x32,.google.cloud.dataform.v1.WorkflowInvocationB\x03\xe0\x41\x02\"c\n\x1f\x44\x65leteWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"c\n\x1f\x43\x61ncelWorkflowInvocationRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\"\"\n CancelWorkflowInvocationResponse\"\x9b\x10\n\x18WorkflowInvocationAction\x12\x61\n\x0f\x62igquery_action\x18\x06 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\x03\xe0\x41\x03H\x00\x12\x61\n\x0fnotebook_action\x18\x08 \x01(\x0b\x32\x41.google.cloud.dataform.v1.WorkflowInvocationAction.NotebookActionB\x03\xe0\x41\x03H\x00\x12p\n\x17\x64\x61ta_preparation_action\x18\t \x01(\x0b\x32H.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\x03\xe0\x41\x03H\x00\x12\x35\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12?\n\x10\x63\x61nonical_target\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.TargetB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x11invocation_timing\x18\x05 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\n \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x1a>\n\x0e\x42igQueryAction\x12\x17\n\nsql_script\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a<\n\x0eNotebookAction\x12\x15\n\x08\x63ontents\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x1a\x81\t\n\x15\x44\x61taPreparationAction\x12\x1c\n\rcontents_yaml\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x00\x12t\n\x0c\x63ontents_sql\x18\x06 \x01(\x0b\x32\\.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\x00\x12\x1a\n\rgenerated_sql\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06job_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x1a\x84\x02\n\x13\x41\x63tionSqlDefinition\x12\r\n\x05query\x18\x01 \x01(\t\x12n\n\x0b\x65rror_table\x18\x02 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\x12n\n\x0bload_config\x18\x03 \x01(\x0b\x32Y.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\x1a\\\n\x10\x41\x63tionErrorTable\x12\x30\n\x06target\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.Target\x12\x16\n\x0eretention_days\x18\x02 \x01(\x05\x1a\xea\x03\n\x10\x41\x63tionLoadConfig\x12p\n\x07replace\x18\x01 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12o\n\x06\x61ppend\x18\x02 \x01(\x0b\x32].google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\x00\x12u\n\x07maximum\x18\x03 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x12t\n\x06unique\x18\x04 \x01(\x0b\x32\x62.google.cloud.dataform.v1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\x00\x42\x06\n\x04mode\x1a\x16\n\x14\x41\x63tionSimpleLoadMode\x1a+\n\x19\x41\x63tionIncrementalLoadMode\x12\x0e\n\x06\x63olumn\x18\x01 \x01(\tB\x0c\n\ndefinition\"f\n\x05State\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07SKIPPED\x10\x02\x12\x0c\n\x08\x44ISABLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x42\x08\n\x06\x61\x63tionB\x14\n\x12_internal_metadata\"\x9a\x01\n%QueryWorkflowInvocationActionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dataform.googleapis.com/WorkflowInvocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n&QueryWorkflowInvocationActionsResponse\x12W\n\x1bworkflow_invocation_actions\x18\x01 \x03(\x0b\x32\x32.google.cloud.dataform.v1.WorkflowInvocationAction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x85\x02\n\x06\x43onfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12G\n\x14\x64\x65\x66\x61ult_kms_key_name\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01:d\xea\x41\x61\n\x1e\x64\x61taform.googleapis.com/Config\x12.projects/{project}/locations/{location}/config*\x07\x63onfigs2\x06\x63onfigB\x14\n\x12_internal_metadata\"H\n\x10GetConfigRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Config\"\x82\x01\n\x13UpdateConfigRequest\x12\x35\n\x06\x63onfig\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.ConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcf\x03\n\x06\x46older\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11\x63ontaining_folder\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10team_folder_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x07 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:n\xea\x41k\n\x1e\x64\x61taform.googleapis.com/Folder\x12\x38projects/{project}/locations/{location}/folders/{folder}*\x07\x66olders2\x06\x66olderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x87\x01\n\x13\x43reateFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"\x9c\x01\n\x11MoveFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12/\n\x1d\x64\x65stination_containing_folder\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42 \n\x1e_destination_containing_folder\"H\n\x10GetFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"\x82\x01\n\x13UpdateFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x35\n\x06\x66older\x18\x02 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderB\x03\xe0\x41\x02\"K\n\x13\x44\x65leteFolderRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\"c\n\x17\x44\x65leteFolderTreeRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"k\n\x1b\x44\x65leteTeamFolderTreeRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe2\x02\n\x18\x44\x65leteFolderTreeMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12L\n\x05state\x18\x04 \x01(\x0e\x32\x38.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\"[\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xb1\x01\n\x1aQueryFolderContentsRequest\x12\x36\n\x06\x66older\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61taform.googleapis.com/Folder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1bQueryFolderContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8e\x01\n\x13\x46olderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb8\x01\n\x1cQueryUserRootContentsRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa3\x02\n\x1dQueryUserRootContentsResponse\x12Z\n\x07\x65ntries\x18\x01 \x03(\x0b\x32I.google.cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x8c\x01\n\x11RootContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xab\x03\n\nTeamFolder\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x11internal_metadata\x18\x05 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\'\n\x15\x63reator_iam_principal\x18\x06 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01:\x84\x01\xea\x41\x80\x01\n\"dataform.googleapis.com/TeamFolder\x12\x41projects/{project}/locations/{location}/teamFolders/{team_folder}*\x0bteamFolders2\nteamFolderB\x14\n\x12_internal_metadataB\x18\n\x16_creator_iam_principal\"\x94\x01\n\x17\x43reateTeamFolderRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"P\n\x14GetTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\x8f\x01\n\x17UpdateTeamFolderRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12>\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderB\x03\xe0\x41\x02\"S\n\x17\x44\x65leteTeamFolderRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\"\xbe\x01\n\x1eQueryTeamFolderContentsRequest\x12?\n\x0bteam_folder\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dataform.googleapis.com/TeamFolder\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb3\x02\n\x1fQueryTeamFolderContentsResponse\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.google.cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a\x92\x01\n\x17TeamFolderContentsEntry\x12\x32\n\x06\x66older\x18\x01 \x01(\x0b\x32 .google.cloud.dataform.v1.FolderH\x00\x12:\n\nrepository\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.RepositoryH\x00\x42\x07\n\x05\x65ntry\"\xb4\x01\n\x18SearchTeamFoldersRequest\x12;\n\x08location\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xf1\x01\n\x19SearchTeamFoldersResponse\x12[\n\x07results\x18\x01 \x03(\x0b\x32J.google.cloud.dataform.v1.SearchTeamFoldersResponse.TeamFolderSearchResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x1a^\n\x16TeamFolderSearchResult\x12;\n\x0bteam_folder\x18\x02 \x01(\x0b\x32$.google.cloud.dataform.v1.TeamFolderH\x00\x42\x07\n\x05\x65ntry\"\xca\x02\n\x12MoveFolderMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.google.cloud.dataform.v1.MoveFolderMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\"\xd2\x02\n\x16MoveRepositoryMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.dataform.v1.MoveRepositoryMetadata.State\x12\x18\n\x10percent_complete\x18\x05 \x01(\x05\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINITIALIZED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0b\n\x07SUCCESS\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04*\x89\x01\n\x15\x44irectoryContentsView\x12\'\n#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\x10\x00\x12!\n\x1d\x44IRECTORY_CONTENTS_VIEW_BASIC\x10\x01\x12$\n DIRECTORY_CONTENTS_VIEW_METADATA\x10\x02\x32\xe3}\n\x08\x44\x61taform\x12\xa5\x01\n\rGetTeamFolder\x12..google.cloud.dataform.v1.GetTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xc6\x01\n\x10\x43reateTeamFolder\x12\x31.google.cloud.dataform.v1.CreateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"Y\xda\x41\x12parent,team_folder\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/teamFolders:\x0bteam_folder\x12\xd7\x01\n\x10UpdateTeamFolder\x12\x31.google.cloud.dataform.v1.UpdateTeamFolderRequest\x1a$.google.cloud.dataform.v1.TeamFolder\"j\xda\x41\x17team_folder,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\x0bteam_folder\x12\x9d\x01\n\x10\x44\x65leteTeamFolder\x12\x31.google.cloud.dataform.v1.DeleteTeamFolderRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/teamFolders/*}\x12\xf5\x01\n\x14\x44\x65leteTeamFolderTree\x12\x35.google.cloud.dataform.v1.DeleteTeamFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\x01*\x12\xea\x01\n\x17QueryTeamFolderContents\x12\x38.google.cloud.dataform.v1.QueryTeamFolderContentsRequest\x1a\x39.google.cloud.dataform.v1.QueryTeamFolderContentsResponse\"Z\xda\x41\x0bteam_folder\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\x12\xbe\x01\n\x11SearchTeamFolders\x12\x32.google.cloud.dataform.v1.SearchTeamFoldersRequest\x1a\x33.google.cloud.dataform.v1.SearchTeamFoldersResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{location=projects/*/locations/*}/teamFolders:search\x12\x95\x01\n\tGetFolder\x12*.google.cloud.dataform.v1.GetFolderRequest\x1a .google.cloud.dataform.v1.Folder\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/folders/*}\x12\xac\x01\n\x0c\x43reateFolder\x12-.google.cloud.dataform.v1.CreateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"K\xda\x41\rparent,folder\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/folders:\x06\x66older\x12\xb8\x01\n\x0cUpdateFolder\x12-.google.cloud.dataform.v1.UpdateFolderRequest\x1a .google.cloud.dataform.v1.Folder\"W\xda\x41\x12\x66older,update_mask\x82\xd3\xe4\x93\x02<22/v1/{folder.name=projects/*/locations/*/folders/*}:\x06\x66older\x12\x91\x01\n\x0c\x44\x65leteFolder\x12-.google.cloud.dataform.v1.DeleteFolderRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/folders/*}\x12\xe9\x01\n\x10\x44\x65leteFolderTree\x12\x31.google.cloud.dataform.v1.DeleteFolderTreeRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x31\n\x15google.protobuf.Empty\x12\x18\x44\x65leteFolderTreeMetadata\xda\x41\nname,force\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/folders/*}:deleteTree:\x01*\x12\xd6\x01\n\x13QueryFolderContents\x12\x34.google.cloud.dataform.v1.QueryFolderContentsRequest\x1a\x35.google.cloud.dataform.v1.QueryFolderContentsResponse\"R\xda\x41\x06\x66older\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\x12\xd8\x01\n\x15QueryUserRootContents\x12\x36.google.cloud.dataform.v1.QueryUserRootContentsRequest\x1a\x37.google.cloud.dataform.v1.QueryUserRootContentsResponse\"N\xda\x41\x08location\x82\xd3\xe4\x93\x02=\x12;/v1/{location=projects/*/locations/*}:queryUserRootContents\x12\xe9\x01\n\nMoveFolder\x12+.google.cloud.dataform.v1.MoveFolderRequest\x1a\x1d.google.longrunning.Operation\"\x8e\x01\xca\x41+\n\x15google.protobuf.Empty\x12\x12MoveFolderMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02\x35\"0/v1/{name=projects/*/locations/*/folders/*}:move:\x01*\x12\xbc\x01\n\x10ListRepositories\x12\x31.google.cloud.dataform.v1.ListRepositoriesRequest\x1a\x32.google.cloud.dataform.v1.ListRepositoriesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/repositories\x12\xa6\x01\n\rGetRepository\x12..google.cloud.dataform.v1.GetRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/repositories/*}\x12\xd3\x01\n\x10\x43reateRepository\x12\x31.google.cloud.dataform.v1.CreateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"f\xda\x41\x1fparent,repository,repository_id\x82\xd3\xe4\x93\x02>\"0/v1/{parent=projects/*/locations/*}/repositories:\nrepository\x12\xd5\x01\n\x10UpdateRepository\x12\x31.google.cloud.dataform.v1.UpdateRepositoryRequest\x1a$.google.cloud.dataform.v1.Repository\"h\xda\x41\x16repository,update_mask\x82\xd3\xe4\x93\x02I2;/v1/{repository.name=projects/*/locations/*/repositories/*}:\nrepository\x12\x9e\x01\n\x10\x44\x65leteRepository\x12\x31.google.cloud.dataform.v1.DeleteRepositoryRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/repositories/*}\x12\xfa\x01\n\x0eMoveRepository\x12/.google.cloud.dataform.v1.MoveRepositoryRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41/\n\x15google.protobuf.Empty\x12\x16MoveRepositoryMetadata\xda\x41\"name,destination_containing_folder\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/repositories/*}:move:\x01*\x12\xd2\x01\n\x17\x43ommitRepositoryChanges\x12\x38.google.cloud.dataform.v1.CommitRepositoryChangesRequest\x1a\x39.google.cloud.dataform.v1.CommitRepositoryChangesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/repositories/*}:commit:\x01*\x12\xc2\x01\n\x12ReadRepositoryFile\x12\x33.google.cloud.dataform.v1.ReadRepositoryFileRequest\x1a\x34.google.cloud.dataform.v1.ReadRepositoryFileResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/repositories/*}:readFile\x12\xfa\x01\n QueryRepositoryDirectoryContents\x12\x41.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsRequest\x1a\x42.google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse\"O\x82\xd3\xe4\x93\x02I\x12G/v1/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\x12\xd2\x01\n\x16\x46\x65tchRepositoryHistory\x12\x37.google.cloud.dataform.v1.FetchRepositoryHistoryRequest\x1a\x38.google.cloud.dataform.v1.FetchRepositoryHistoryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*}:fetchHistory\x12\x82\x02\n\"ComputeRepositoryAccessTokenStatus\x12\x43.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusRequest\x1a\x44.google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse\"Q\x82\xd3\xe4\x93\x02K\x12I/v1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus\x12\xd0\x01\n\x13\x46\x65tchRemoteBranches\x12\x34.google.cloud.dataform.v1.FetchRemoteBranchesRequest\x1a\x35.google.cloud.dataform.v1.FetchRemoteBranchesResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\x12\xc3\x01\n\x0eListWorkspaces\x12/.google.cloud.dataform.v1.ListWorkspacesRequest\x1a\x30.google.cloud.dataform.v1.ListWorkspacesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\x12\xb0\x01\n\x0cGetWorkspace\x12-.google.cloud.dataform.v1.GetWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xda\x01\n\x0f\x43reateWorkspace\x12\x30.google.cloud.dataform.v1.CreateWorkspaceRequest\x1a#.google.cloud.dataform.v1.Workspace\"p\xda\x41\x1dparent,workspace,workspace_id\x82\xd3\xe4\x93\x02J\"=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\x12\xa9\x01\n\x0f\x44\x65leteWorkspace\x12\x30.google.cloud.dataform.v1.DeleteWorkspaceRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}\x12\xe1\x01\n\x12InstallNpmPackages\x12\x33.google.cloud.dataform.v1.InstallNpmPackagesRequest\x1a\x34.google.cloud.dataform.v1.InstallNpmPackagesResponse\"`\x82\xd3\xe4\x93\x02Z\"U/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\x01*\x12\xc2\x01\n\x0ePullGitCommits\x12/.google.cloud.dataform.v1.PullGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PullGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\x01*\x12\xc2\x01\n\x0ePushGitCommits\x12/.google.cloud.dataform.v1.PushGitCommitsRequest\x1a\x30.google.cloud.dataform.v1.PushGitCommitsResponse\"M\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\x01*\x12\xe1\x01\n\x14\x46\x65tchFileGitStatuses\x12\x35.google.cloud.dataform.v1.FetchFileGitStatusesRequest\x1a\x36.google.cloud.dataform.v1.FetchFileGitStatusesResponse\"Z\x82\xd3\xe4\x93\x02T\x12R/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses\x12\xdd\x01\n\x13\x46\x65tchGitAheadBehind\x12\x34.google.cloud.dataform.v1.FetchGitAheadBehindRequest\x1a\x35.google.cloud.dataform.v1.FetchGitAheadBehindResponse\"Y\x82\xd3\xe4\x93\x02S\x12Q/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind\x12\xdc\x01\n\x16\x43ommitWorkspaceChanges\x12\x37.google.cloud.dataform.v1.CommitWorkspaceChangesRequest\x1a\x38.google.cloud.dataform.v1.CommitWorkspaceChangesResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit:\x01*\x12\xd8\x01\n\x15ResetWorkspaceChanges\x12\x36.google.cloud.dataform.v1.ResetWorkspaceChangesRequest\x1a\x37.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"N\x82\xd3\xe4\x93\x02H\"C/v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset:\x01*\x12\xca\x01\n\rFetchFileDiff\x12..google.cloud.dataform.v1.FetchFileDiffRequest\x1a/.google.cloud.dataform.v1.FetchFileDiffResponse\"X\x82\xd3\xe4\x93\x02R\x12P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff\x12\xee\x01\n\x16QueryDirectoryContents\x12\x37.google.cloud.dataform.v1.QueryDirectoryContentsRequest\x1a\x38.google.cloud.dataform.v1.QueryDirectoryContentsResponse\"a\x82\xd3\xe4\x93\x02[\x12Y/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents\x12\xc2\x01\n\x0bSearchFiles\x12,.google.cloud.dataform.v1.SearchFilesRequest\x1a-.google.cloud.dataform.v1.SearchFilesResponse\"V\x82\xd3\xe4\x93\x02P\x12N/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:searchFiles\x12\xcd\x01\n\rMakeDirectory\x12..google.cloud.dataform.v1.MakeDirectoryRequest\x1a/.google.cloud.dataform.v1.MakeDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory:\x01*\x12\xd5\x01\n\x0fRemoveDirectory\x12\x30.google.cloud.dataform.v1.RemoveDirectoryRequest\x1a\x31.google.cloud.dataform.v1.RemoveDirectoryResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\x01*\x12\xcd\x01\n\rMoveDirectory\x12..google.cloud.dataform.v1.MoveDirectoryRequest\x1a/.google.cloud.dataform.v1.MoveDirectoryResponse\"[\x82\xd3\xe4\x93\x02U\"P/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\x01*\x12\xb6\x01\n\x08ReadFile\x12).google.cloud.dataform.v1.ReadFileRequest\x1a*.google.cloud.dataform.v1.ReadFileResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile\x12\xc1\x01\n\nRemoveFile\x12+.google.cloud.dataform.v1.RemoveFileRequest\x1a,.google.cloud.dataform.v1.RemoveFileResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile:\x01*\x12\xb9\x01\n\x08MoveFile\x12).google.cloud.dataform.v1.MoveFileRequest\x1a*.google.cloud.dataform.v1.MoveFileResponse\"V\x82\xd3\xe4\x93\x02P\"K/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile:\x01*\x12\xbd\x01\n\tWriteFile\x12*.google.cloud.dataform.v1.WriteFileRequest\x1a+.google.cloud.dataform.v1.WriteFileResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\x01*\x12\xd3\x01\n\x12ListReleaseConfigs\x12\x33.google.cloud.dataform.v1.ListReleaseConfigsRequest\x1a\x34.google.cloud.dataform.v1.ListReleaseConfigsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs\x12\xc0\x01\n\x10GetReleaseConfig\x12\x31.google.cloud.dataform.v1.GetReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xfa\x01\n\x13\x43reateReleaseConfig\x12\x34.google.cloud.dataform.v1.CreateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x83\x01\xda\x41\'parent,release_config,release_config_id\x82\xd3\xe4\x93\x02S\"A/v1/{parent=projects/*/locations/*/repositories/*}/releaseConfigs:\x0erelease_config\x12\xfc\x01\n\x13UpdateReleaseConfig\x12\x34.google.cloud.dataform.v1.UpdateReleaseConfigRequest\x1a\'.google.cloud.dataform.v1.ReleaseConfig\"\x85\x01\xda\x41\x1arelease_config,update_mask\x82\xd3\xe4\x93\x02\x62\x32P/v1/{release_config.name=projects/*/locations/*/repositories/*/releaseConfigs/*}:\x0erelease_config\x12\xb5\x01\n\x13\x44\x65leteReleaseConfig\x12\x34.google.cloud.dataform.v1.DeleteReleaseConfigRequest\x1a\x16.google.protobuf.Empty\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43*A/v1/{name=projects/*/locations/*/repositories/*/releaseConfigs/*}\x12\xe3\x01\n\x16ListCompilationResults\x12\x37.google.cloud.dataform.v1.ListCompilationResultsRequest\x1a\x38.google.cloud.dataform.v1.ListCompilationResultsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults\x12\xd0\x01\n\x14GetCompilationResult\x12\x35.google.cloud.dataform.v1.GetCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}\x12\xff\x01\n\x17\x43reateCompilationResult\x12\x38.google.cloud.dataform.v1.CreateCompilationResultRequest\x1a+.google.cloud.dataform.v1.CompilationResult\"}\xda\x41\x19parent,compilation_result\x82\xd3\xe4\x93\x02[\"E/v1/{parent=projects/*/locations/*/repositories/*}/compilationResults:\x12\x63ompilation_result\x12\xf5\x01\n\x1dQueryCompilationResultActions\x12>.google.cloud.dataform.v1.QueryCompilationResultActionsRequest\x1a?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"S\x82\xd3\xe4\x93\x02M\x12K/v1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query\x12\xd7\x01\n\x13ListWorkflowConfigs\x12\x34.google.cloud.dataform.v1.ListWorkflowConfigsRequest\x1a\x35.google.cloud.dataform.v1.ListWorkflowConfigsResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\x12\xc4\x01\n\x11GetWorkflowConfig\x12\x32.google.cloud.dataform.v1.GetWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\x81\x02\n\x14\x43reateWorkflowConfig\x12\x35.google.cloud.dataform.v1.CreateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x87\x01\xda\x41)parent,workflow_config,workflow_config_id\x82\xd3\xe4\x93\x02U\"B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs:\x0fworkflow_config\x12\x83\x02\n\x14UpdateWorkflowConfig\x12\x35.google.cloud.dataform.v1.UpdateWorkflowConfigRequest\x1a(.google.cloud.dataform.v1.WorkflowConfig\"\x89\x01\xda\x41\x1bworkflow_config,update_mask\x82\xd3\xe4\x93\x02\x65\x32R/v1/{workflow_config.name=projects/*/locations/*/repositories/*/workflowConfigs/*}:\x0fworkflow_config\x12\xb8\x01\n\x14\x44\x65leteWorkflowConfig\x12\x35.google.cloud.dataform.v1.DeleteWorkflowConfigRequest\x1a\x16.google.protobuf.Empty\"Q\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\x12\xe7\x01\n\x17ListWorkflowInvocations\x12\x38.google.cloud.dataform.v1.ListWorkflowInvocationsRequest\x1a\x39.google.cloud.dataform.v1.ListWorkflowInvocationsResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations\x12\xd4\x01\n\x15GetWorkflowInvocation\x12\x36.google.cloud.dataform.v1.GetWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\x86\x02\n\x18\x43reateWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CreateWorkflowInvocationRequest\x1a,.google.cloud.dataform.v1.WorkflowInvocation\"\x80\x01\xda\x41\x1aparent,workflow_invocation\x82\xd3\xe4\x93\x02]\"F/v1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations:\x13workflow_invocation\x12\xc4\x01\n\x18\x44\x65leteWorkflowInvocation\x12\x39.google.cloud.dataform.v1.DeleteWorkflowInvocationRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}\x12\xeb\x01\n\x18\x43\x61ncelWorkflowInvocation\x12\x39.google.cloud.dataform.v1.CancelWorkflowInvocationRequest\x1a:.google.cloud.dataform.v1.CancelWorkflowInvocationResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel:\x01*\x12\xf9\x01\n\x1eQueryWorkflowInvocationActions\x12?.google.cloud.dataform.v1.QueryWorkflowInvocationActionsRequest\x1a@.google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/v1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query\x12\x92\x01\n\tGetConfig\x12*.google.cloud.dataform.v1.GetConfigRequest\x1a .google.cloud.dataform.v1.Config\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/config}\x12\xb5\x01\n\x0cUpdateConfig\x12-.google.cloud.dataform.v1.UpdateConfigRequest\x1a .google.cloud.dataform.v1.Config\"T\xda\x41\x12\x63onfig,update_mask\x82\xd3\xe4\x93\x02\x39\x32//v1/{config.name=projects/*/locations/*/config}:\x06\x63onfig\x12\xf7\x02\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\xab\x02\xda\x41\x08resource\x82\xd3\xe4\x93\x02\x99\x02\x12\x41/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicyZP\x12N/v1/{resource=projects/*/locations/*/repositories/*/workspaces/*}:getIamPolicyZ>\x12] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb deleted file mode 100644 index 7076d1962dc3..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/credentials.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Longrunning - module Operations - # Credentials for the Operations API. - class Credentials < ::Google::Auth::Credentials - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb deleted file mode 100644 index 6b2d5f7cecff..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/operations.rb +++ /dev/null @@ -1,837 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Longrunning - module Operations - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Operations Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Operations Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb deleted file mode 100644 index ff6597693b4e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataform/v1/version" -require "google/longrunning/bindings_override" - -require "google/longrunning/operations/credentials" -require "google/longrunning/operations/rest/operations" -require "google/longrunning/operations/rest/client" - -module Google - module Longrunning - ## - # Manages long-running operations with an API service. - # - # When an API method normally takes long time to complete, it can be designed - # to return {::Google::Longrunning::Operation Operation} to the client, and the - # client can use this interface to receive the real response asynchronously by - # polling the operation resource, or pass the operation resource to another API - # (such as Pub/Sub API) to receive the response. Any API service that returns - # long-running operations should implement the `Operations` interface so - # developers can have a consistent client experience. - # - # To load this service and instantiate a REST client: - # - # require "google/longrunning/operations/rest" - # client = ::Google::Longrunning::Operations::Rest::Client.new - # - module Operations - # Client for the REST transport - module Rest - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/longrunning/operations/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb deleted file mode 100644 index 088db9bb5d0c..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/client.rb +++ /dev/null @@ -1,776 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/longrunning/operations_pb" -require "google/longrunning/operations/rest/service_stub" -require "google/cloud/location/rest" -require "google/iam/v1/rest" - -module Google - module Longrunning - module Operations - module Rest - ## - # REST client for the Operations service. - # - # Manages long-running operations with an API service. - # - # When an API method normally takes long time to complete, it can be designed - # to return {::Google::Longrunning::Operation Operation} to the client, and the - # client can use this interface to receive the real response asynchronously by - # polling the operation resource, or pass the operation resource to another API - # (such as Pub/Sub API) to receive the response. Any API service that returns - # long-running operations should implement the `Operations` interface so - # developers can have a consistent client experience. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configure the Operations Client class. - # - # See {::Google::Longrunning::Operations::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Operations clients - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Longrunning"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Operations Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Longrunning::Operations::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Longrunning::Operations::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = ::Google::Longrunning::Operations::Rest::Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @operations_stub = ::Google::Longrunning::Operations::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @operations_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @operations_stub.endpoint - config.universe_domain = @operations_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @operations_stub.logger if config.respond_to? :logger= - end - - @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @operations_stub.endpoint - config.universe_domain = @operations_stub.universe_domain - config.logger = @operations_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Longrunning::Operations::Rest::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # Get the associated client for mix-in of the IAMPolicy. - # - # @return [Google::Iam::V1::IAMPolicy::Rest::Client] - # - attr_reader :iam_policy_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @operations_stub.logger - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.list_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.get_operation request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.delete_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.cancel_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations REST API. - # - # This class represents the configuration for Operations REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - - yield self if block_given? - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb deleted file mode 100644 index f5539db81ab3..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/operations.rb +++ /dev/null @@ -1,921 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" - -module Google - module Longrunning - module Operations - module Rest - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "longrunning.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the Operations Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the Operations Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = OperationsServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.list_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.get_operation request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.delete_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts asynchronous cancellation on a long-running operation. The server - # makes a best effort to cancel the operation, but success is not - # guaranteed. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataform::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.cancel_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations REST API. - # - # This class represents the configuration for Operations REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "longrunning.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - - yield self if block_given? - end - end - end - end - - ## - # @private - # REST service stub for the Longrunning Operations API. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - class OperationsServiceStub - def initialize endpoint:, endpoint_template:, universe_domain:, credentials: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials - end - - ## - # Baseline implementation for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::ListOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::ListOperationsResponse] - # A result object deserialized from the server's reply - def list_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def get_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def cancel_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}/operations", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb deleted file mode 100644 index 0a616d856150..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/operations/rest/service_stub.rb +++ /dev/null @@ -1,322 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/longrunning/operations_pb" - -module Google - module Longrunning - module Operations - module Rest - ## - # REST service stub for the Operations service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::ListOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::ListOperationsResponse] - # A result object deserialized from the server's reply - def list_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def get_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def cancel_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_cancel_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}/operations", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb b/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb deleted file mode 100644 index 1abb8352800b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/lib/google/longrunning/rest.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/longrunning/operations/rest" -require "google/longrunning/bindings_override" -require "google/cloud/dataform/v1/version" - -module Google - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/longrunning/rest" - # client = ::Google::Longrunning::Operations::Rest::Client.new - # - module Longrunning - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md deleted file mode 100644 index a128eb6cf57a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Dataform V1 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb deleted file mode 100644 index 3ab0b096d445..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/client.rb +++ /dev/null @@ -1,593 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - # - # Note: This field should not be used in most cases. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # - # Note: This feature should not be used in most cases. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb deleted file mode 100644 index 71e821d33ab7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/cloud/dataform/v1/dataform.rb +++ /dev/null @@ -1,3308 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataform - module V1 - # Describes encryption state of a resource. - # @!attribute [rw] kms_key_version_name - # @return [::String] - # Required. The KMS key version name with which data of a resource is - # encrypted. - class DataEncryptionState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git repository. - # @!attribute [rw] name - # @return [::String] - # Identifier. The repository's name. - # @!attribute [rw] containing_folder - # @return [::String] - # Optional. The name of the containing folder of the repository. - # The field is immutable and it can be modified via a MoveRepository - # operation. - # Format: `projects/*/locations/*/folders/*`. or - # `projects/*/locations/*/teamFolders/*`. - # @!attribute [r] team_folder_name - # @return [::String] - # Output only. The resource name of the TeamFolder that this Repository is - # associated with. This should take the format: - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this - # is not set, the Repository is not associated with a TeamFolder. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the repository was created. - # @!attribute [rw] display_name - # @return [::String] - # Optional. The repository's user-friendly name. - # @!attribute [rw] git_remote_settings - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings] - # Optional. If set, configures this repository to be linked to a Git remote. - # @!attribute [rw] npmrc_environment_variables_secret_version - # @return [::String] - # Optional. The name of the Secret Manager secret version to be used to - # interpolate variables into the .npmrc file for package installation - # operations. Must be in the format `projects/*/secrets/*/versions/*`. The - # file itself must be in a JSON format. - # @!attribute [rw] workspace_compilation_overrides - # @return [::Google::Cloud::Dataform::V1::Repository::WorkspaceCompilationOverrides] - # Optional. If set, fields of `workspace_compilation_overrides` override the - # default compilation settings that are specified in dataform.json when - # creating workspace-scoped compilation results. See documentation for - # `WorkspaceCompilationOverrides` for more information. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Repository user labels. - # @!attribute [rw] set_authenticated_user_admin - # @return [::Boolean] - # Optional. Input only. If set to true, the authenticated user will be - # granted the roles/dataform.admin role on the created repository. - # @!attribute [rw] service_account - # @return [::String] - # Optional. The service account to run workflow invocations under. - # @!attribute [rw] kms_key_name - # @return [::String] - # Optional. The reference to a KMS encryption key. If provided, it will be - # used to encrypt user data in the repository and all child resources. It is - # not possible to add or update the encryption key after the repository is - # created. Example: - # `projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}` - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. A data encryption state of a Git repository if this Repository - # is protected by a KMS key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class Repository - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Controls Git remote configuration for a repository. - # @!attribute [rw] url - # @return [::String] - # Required. The Git remote's URL. - # @!attribute [rw] default_branch - # @return [::String] - # Required. The Git remote's default branch name. - # @!attribute [rw] authentication_token_secret_version - # @return [::String] - # Optional. The name of the Secret Manager secret version to use as an - # authentication token for Git operations. Must be in the format - # `projects/*/secrets/*/versions/*`. - # @!attribute [rw] ssh_authentication_config - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::SshAuthenticationConfig] - # Optional. Authentication fields for remote uris using SSH protocol. - # @!attribute [r] token_status - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Dataform::V1::Repository::GitRemoteSettings::TokenStatus] - # Output only. Deprecated: The field does not contain any token status - # information. - class GitRemoteSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Configures fields for performing SSH authentication. - # @!attribute [rw] user_private_key_secret_version - # @return [::String] - # Required. The name of the Secret Manager secret version to use as a - # ssh private key for Git operations. - # Must be in the format `projects/*/secrets/*/versions/*`. - # @!attribute [rw] host_public_key - # @return [::String] - # Required. Content of a public SSH key to verify an identity of a remote - # Git host. - class SshAuthenticationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The status of the authentication token. - module TokenStatus - # Default value. This value is unused. - TOKEN_STATUS_UNSPECIFIED = 0 - - # The token could not be found in Secret Manager (or the Dataform - # Service Account did not have permission to access it). - NOT_FOUND = 1 - - # The token could not be used to authenticate against the Git remote. - INVALID = 2 - - # The token was used successfully to authenticate against the Git remote. - VALID = 3 - end - end - - # Configures workspace compilation overrides for a repository. - # @!attribute [rw] default_database - # @return [::String] - # Optional. The default database (Google Cloud project ID). - # @!attribute [rw] schema_suffix - # @return [::String] - # Optional. The suffix that should be appended to all schema (BigQuery - # dataset ID) names. - # @!attribute [rw] table_prefix - # @return [::String] - # Optional. The prefix that should be prepended to all table names. - class WorkspaceCompilationOverrides - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Metadata used to identify if a resource is user scoped. - # @!attribute [r] user_scoped - # @return [::Boolean] - # Output only. If true, this resource is user-scoped, meaning it is either a - # workspace or sourced from a workspace. - class PrivateResourceMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListRepositories` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to list repositories. Must be in the format - # `projects/*/locations/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of repositories to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListRepositories` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListRepositories`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListRepositoriesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListRepositories` response message. - # @!attribute [rw] repositories - # @return [::Array<::Google::Cloud::Dataform::V1::Repository>] - # List of repositories. - # @!attribute [rw] next_page_token - # @return [::String] - # A token which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListRepositoriesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The full resource name of the repository to move. - # @!attribute [rw] destination_containing_folder - # @return [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # repository to. Can be in the format of: "" to move into the root User - # folder, `projects/*/locations/*/folders/*`, - # `projects/*/locations/*/teamFolders/*` - class MoveRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class GetRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateRepository` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the repository. Must be in the - # format `projects/*/locations/*`. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # Required. The repository to create. - # @!attribute [rw] repository_id - # @return [::String] - # Required. The ID to use for the repository, which will become the final - # component of the repository's resource name. - class CreateRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateRepository` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the repository. If left - # unset, all fields will be updated. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # Required. The repository to update. - class UpdateRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteRepository` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If set to true, child resources of this repository (compilation - # results and workflow invocations) will also be deleted. Otherwise, the - # request will only succeed if the repository has no child resources. - # - # **Note:** *This flag doesn't support deletion of workspaces, release - # configs or workflow configs. If any of such resources exists in the - # repository, the request will fail.*. - class DeleteRepositoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitRepositoryChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_metadata - # @return [::Google::Cloud::Dataform::V1::CommitMetadata] - # Required. The changes to commit to the repository. - # @!attribute [rw] required_head_commit_sha - # @return [::String] - # Optional. The commit SHA which must be the repository's current HEAD before - # applying this commit; otherwise this request will fail. If unset, no - # validation on the current HEAD commit SHA is performed. - # @!attribute [rw] file_operations - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation}] - # Optional. A map to the path of the file to the operation. The path is the - # full file path including filename, from repository root. - class CommitRepositoryChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single file operation to the repository. - # @!attribute [rw] write_file - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::WriteFile] - # Represents the write operation. - # - # Note: The following fields are mutually exclusive: `write_file`, `delete_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] delete_file - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation::DeleteFile] - # Represents the delete operation. - # - # Note: The following fields are mutually exclusive: `delete_file`, `write_file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class FileOperation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the write file operation (for files added or modified). - # @!attribute [rw] contents - # @return [::String] - # The file's contents. - class WriteFile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the delete file operation. - class DeleteFile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest::FileOperation] - class FileOperationsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `CommitRepositoryChanges` response message. - # @!attribute [rw] commit_sha - # @return [::String] - # The commit SHA of the current commit. - class CommitRepositoryChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadRepositoryFile` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_sha - # @return [::String] - # Optional. The commit SHA for the commit to read from. If unset, the file - # will be read from HEAD. - # @!attribute [rw] path - # @return [::String] - # Required. Full file path to read including filename, from repository root. - class ReadRepositoryFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadRepositoryFile` response message. - # @!attribute [rw] contents - # @return [::String] - # The file's contents. - class ReadRepositoryFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryRepositoryDirectoryContents` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] commit_sha - # @return [::String] - # Optional. The Commit SHA for the commit to query from. If unset, the - # directory will be queried from HEAD. - # @!attribute [rw] path - # @return [::String] - # Optional. The directory's full path including directory name, relative to - # root. If left unset, the root is used. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryRepositoryDirectoryContents` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryRepositoryDirectoryContents`, with the exception of `page_size`, must - # match the call that provided the page token. - class QueryRepositoryDirectoryContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryRepositoryDirectoryContents` response message. - # @!attribute [rw] directory_entries - # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # List of entries in the directory. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryRepositoryDirectoryContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRepositoryHistory` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of commits to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `FetchRepositoryHistory` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `FetchRepositoryHistory`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class FetchRepositoryHistoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRepositoryHistory` response message. - # @!attribute [rw] commits - # @return [::Array<::Google::Cloud::Dataform::V1::CommitLogEntry>] - # A list of commit logs, ordered by 'git log' default order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class FetchRepositoryHistoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single commit log. - # @!attribute [rw] commit_time - # @return [::Google::Protobuf::Timestamp] - # Commit timestamp. - # @!attribute [rw] commit_sha - # @return [::String] - # The commit SHA for this commit log entry. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # The commit author for this commit log entry. - # @!attribute [rw] commit_message - # @return [::String] - # The commit message for this commit log entry. - class CommitLogEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git commit. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The commit's author. - # @!attribute [rw] commit_message - # @return [::String] - # Optional. The commit's message. - class CommitMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ComputeRepositoryAccessTokenStatus` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class ComputeRepositoryAccessTokenStatusRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ComputeRepositoryAccessTokenStatus` response message. - # @!attribute [rw] token_status - # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse::TokenStatus] - # Indicates the status of the Git access token. - class ComputeRepositoryAccessTokenStatusResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the status of a Git authentication token. - module TokenStatus - # Default value. This value is unused. - TOKEN_STATUS_UNSPECIFIED = 0 - - # The token could not be found in Secret Manager (or the Dataform - # Service Account did not have permission to access it). - NOT_FOUND = 1 - - # The token could not be used to authenticate against the Git remote. - INVALID = 2 - - # The token was used successfully to authenticate against the Git remote. - VALID = 3 - - # The token is not accessible due to permission issues. - PERMISSION_DENIED = 4 - end - end - - # `FetchRemoteBranches` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The repository's name. - class FetchRemoteBranchesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchRemoteBranches` response message. - # @!attribute [rw] branches - # @return [::Array<::String>] - # The remote repository's branch names. - class FetchRemoteBranchesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Git workspace. - # @!attribute [rw] name - # @return [::String] - # Identifier. The workspace's name. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the workspace was created. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. A data encryption state of a Git repository if this Workspace - # is protected by a KMS key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [rw] disable_moves - # @return [::Boolean] - # Optional. If set to true, workspaces will not be moved if its linked - # Repository is moved. Instead, it will be deleted. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # Output only. Metadata indicating whether this resource is user-scoped. For - # `Workspace` resources, the `user_scoped` field is always `true`. - class Workspace - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkspaces` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list workspaces. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workspaces to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkspaces` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkspaces`, with - # the exception of `page_size`, must match the call that provided the page - # token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListWorkspacesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkspaces` response message. - # @!attribute [rw] workspaces - # @return [::Array<::Google::Cloud::Dataform::V1::Workspace>] - # List of workspaces. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkspacesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkspace` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - class GetWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkspace` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workspace. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workspace - # @return [::Google::Cloud::Dataform::V1::Workspace] - # Required. The workspace to create. - # @!attribute [rw] workspace_id - # @return [::String] - # Required. The ID to use for the workspace, which will become the final - # component of the workspace's resource name. - class CreateWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkspace` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace resource's name. - class DeleteWorkspaceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the author of a Git commit. - # @!attribute [rw] name - # @return [::String] - # Required. The commit author's name. - # @!attribute [rw] email_address - # @return [::String] - # Required. The commit author's email address. - class CommitAuthor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PullGitCommits` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote from which to pull - # commits. If left unset, the repository's default branch name will be used. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The author of any merge commit which may be created as a result - # of merging fetched Git commits into this workspace. - class PullGitCommitsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PullGitCommits` response message. - class PullGitCommitsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PushGitCommits` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote to which commits should - # be pushed. If left unset, the repository's default branch name will be - # used. - class PushGitCommitsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `PushGitCommits` response message. - class PushGitCommitsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileGitStatuses` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - class FetchFileGitStatusesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileGitStatuses` response message. - # @!attribute [rw] uncommitted_file_changes - # @return [::Array<::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange>] - # A list of all files which have uncommitted Git changes. There will only be - # a single entry for any given file. - class FetchFileGitStatusesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the Git state of a file with uncommitted changes. - # @!attribute [rw] path - # @return [::String] - # The file's full path including filename, relative to the workspace root. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse::UncommittedFileChange::State] - # Output only. Indicates the status of the file. - class UncommittedFileChange - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the status of an uncommitted file change. - module State - # Default value. This value is unused. - STATE_UNSPECIFIED = 0 - - # The file has been newly added. - ADDED = 1 - - # The file has been deleted. - DELETED = 2 - - # The file has been modified. - MODIFIED = 3 - - # The file contains merge conflicts. - HAS_CONFLICTS = 4 - end - end - end - - # `FetchGitAheadBehind` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] remote_branch - # @return [::String] - # Optional. The name of the branch in the Git remote against which this - # workspace should be compared. If left unset, the repository's default - # branch name will be used. - class FetchGitAheadBehindRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchGitAheadBehind` response message. - # @!attribute [rw] commits_ahead - # @return [::Integer] - # The number of commits in the remote branch that are not in the workspace. - # @!attribute [rw] commits_behind - # @return [::Integer] - # The number of commits in the workspace that are not in the remote branch. - class FetchGitAheadBehindResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitWorkspaceChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] author - # @return [::Google::Cloud::Dataform::V1::CommitAuthor] - # Required. The commit's author. - # @!attribute [rw] commit_message - # @return [::String] - # Optional. The commit's message. - # @!attribute [rw] paths - # @return [::Array<::String>] - # Optional. Full file paths to commit including filename, rooted at workspace - # root. If left empty, all files will be committed. - class CommitWorkspaceChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CommitWorkspaceChanges` response message. - class CommitWorkspaceChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ResetWorkspaceChanges` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] paths - # @return [::Array<::String>] - # Optional. Full file paths to reset back to their committed state including - # filename, rooted at workspace root. If left empty, all files will be reset. - # @!attribute [rw] clean - # @return [::Boolean] - # Optional. If set to true, untracked files will be deleted. - class ResetWorkspaceChangesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ResetWorkspaceChanges` response message. - class ResetWorkspaceChangesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileDiff` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - class FetchFileDiffRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `FetchFileDiff` response message. - # @!attribute [rw] formatted_diff - # @return [::String] - # The raw formatted Git diff for the file. - class FetchFileDiffResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryDirectoryContents` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Optional. The directory's full path including directory name, relative to - # the workspace root. If left unset, the workspace root is used. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryDirectoryContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryDirectoryContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataform::V1::DirectoryContentsView] - # Optional. Specifies the metadata to return for each directory entry. - # If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. - # Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by - # CMEK-protected workspaces. - class QueryDirectoryContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryDirectoryContents` response message. - # @!attribute [rw] directory_entries - # @return [::Array<::Google::Cloud::Dataform::V1::DirectoryEntry>] - # List of entries in the directory. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryDirectoryContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single entry in a directory. - # @!attribute [rw] file - # @return [::String] - # A file in the directory. - # - # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] directory - # @return [::String] - # A child directory in the directory. - # - # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] metadata - # @return [::Google::Cloud::Dataform::V1::FilesystemEntryMetadata] - # Entry with metadata. - class DirectoryEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents metadata for a single entry in a filesystem. - # @!attribute [r] size_bytes - # @return [::Integer] - # Output only. Provides the size of the entry in bytes. For directories, this - # will be 0. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Represents the time of the last modification of the entry. - class FilesystemEntryMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Configuration containing file search request parameters. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of search results to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `SearchFilesRequest` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `SearchFilesRequest`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filter for the returned list in filtering format. - # Filtering is only currently supported on the `path` field. - # See https://google.aip.dev/160 for details. - class SearchFilesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a file search response. - # @!attribute [rw] search_results - # @return [::Array<::Google::Cloud::Dataform::V1::SearchResult>] - # List of matched results. - # @!attribute [rw] next_page_token - # @return [::String] - # Optional. A token, which can be sent as `page_token` to retrieve the next - # page. If this field is omitted, there are no subsequent pages. - class SearchFilesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a search result entry. - # @!attribute [rw] file - # @return [::Google::Cloud::Dataform::V1::FileSearchResult] - # Details when search result is a file. - # - # Note: The following fields are mutually exclusive: `file`, `directory`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] directory - # @return [::Google::Cloud::Dataform::V1::DirectorySearchResult] - # Details when search result is a directory. - # - # Note: The following fields are mutually exclusive: `directory`, `file`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class SearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a file entry in search results. - # @!attribute [rw] path - # @return [::String] - # File system path relative to the workspace root. - class FileSearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Client-facing representation of a directory entry in search results. - # @!attribute [rw] path - # @return [::String] - # File system path relative to the workspace root. - class DirectorySearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MakeDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - class MakeDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MakeDirectory` response message. - class MakeDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - class RemoveDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveDirectory` response message. - class RemoveDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveDirectory` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The directory's full path including directory name, relative to - # the workspace root. - # @!attribute [rw] new_path - # @return [::String] - # Required. The new path for the directory including directory name, rooted - # at workspace root. - class MoveDirectoryRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveDirectory` response message. - class MoveDirectoryResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @!attribute [rw] revision - # @return [::String] - # Optional. The Git revision of the file to return. If left empty, the - # current contents of `path` will be returned. - class ReadFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ReadFile` response message. - # @!attribute [rw] file_contents - # @return [::String] - # The file's contents. - class ReadFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - class RemoveFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `RemoveFile` response message. - class RemoveFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file's full path including filename, relative to the - # workspace root. - # @!attribute [rw] new_path - # @return [::String] - # Required. The file's new path including filename, relative to the workspace - # root. - class MoveFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFile` response message. - class MoveFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `WriteFile` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - # @!attribute [rw] path - # @return [::String] - # Required. The file. - # @!attribute [rw] contents - # @return [::String] - # Required. The file's contents. - class WriteFileRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `WriteFile` response message. - class WriteFileResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `InstallNpmPackages` request message. - # @!attribute [rw] workspace - # @return [::String] - # Required. The workspace's name. - class InstallNpmPackagesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `InstallNpmPackages` response message. - class InstallNpmPackagesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform release configuration. - # @!attribute [rw] name - # @return [::String] - # Identifier. The release config's name. - # @!attribute [rw] git_commitish - # @return [::String] - # Required. 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` - # @!attribute [rw] code_compilation_config - # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] - # Optional. If set, fields of `code_compilation_config` override the default - # compilation settings that are specified in dataform.json. - # @!attribute [rw] cron_schedule - # @return [::String] - # Optional. Optional schedule (in cron format) for automatic creation of - # compilation results. - # @!attribute [rw] time_zone - # @return [::String] - # 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. - # @!attribute [r] recent_scheduled_release_records - # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig::ScheduledReleaseRecord>] - # Output only. Records of the 10 most recent scheduled release attempts, - # ordered in descending order of `release_time`. Updated whenever automatic - # creation of a compilation result is triggered by cron_schedule. - # @!attribute [rw] release_compilation_result - # @return [::String] - # Optional. The name of the currently released compilation result for this - # release config. This value is updated when a compilation result is - # automatically created from this release config (using cron_schedule), or - # when this resource is updated by API call (perhaps to roll back to an - # earlier release). The compilation result must have been created using this - # release config. Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # @!attribute [rw] disabled - # @return [::Boolean] - # Optional. Disables automatic creation of compilation results. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class ReleaseConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A record of an attempt to create a compilation result for this release - # config. - # @!attribute [rw] compilation_result - # @return [::String] - # The name of the created compilation result, if one was successfully - # created. Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # - # Note: The following fields are mutually exclusive: `compilation_result`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] error_status - # @return [::Google::Rpc::Status] - # The error status encountered upon this attempt to create the - # compilation result, if the attempt was unsuccessful. - # - # Note: The following fields are mutually exclusive: `error_status`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] release_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of this release attempt. - class ScheduledReleaseRecord - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `ListReleaseConfigs` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list release configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of release configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListReleaseConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListReleaseConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class ListReleaseConfigsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListReleaseConfigs` response message. - # @!attribute [rw] release_configs - # @return [::Array<::Google::Cloud::Dataform::V1::ReleaseConfig>] - # List of release configs. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListReleaseConfigsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetReleaseConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The release config's name. - class GetReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateReleaseConfig` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the release config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] release_config - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # Required. The release config to create. - # @!attribute [rw] release_config_id - # @return [::String] - # Required. The ID to use for the release config, which will become the final - # component of the release config's resource name. - class CreateReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateReleaseConfig` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the release config. If left - # unset, all fields will be updated. - # @!attribute [rw] release_config - # @return [::Google::Cloud::Dataform::V1::ReleaseConfig] - # Required. The release config to update. - class UpdateReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteReleaseConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The release config's name. - class DeleteReleaseConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the result of compiling a Dataform project. - # @!attribute [rw] git_commitish - # @return [::String] - # 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` - # - # Note: The following fields are mutually exclusive: `git_commitish`, `workspace`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] workspace - # @return [::String] - # Immutable. The name of the workspace to compile. Must be in the format - # `projects/*/locations/*/repositories/*/workspaces/*`. - # - # Note: The following fields are mutually exclusive: `workspace`, `git_commitish`, `release_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] release_config - # @return [::String] - # Immutable. The name of the release config to compile. Must be in the - # format `projects/*/locations/*/repositories/*/releaseConfigs/*`. - # - # Note: The following fields are mutually exclusive: `release_config`, `git_commitish`, `workspace`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] name - # @return [::String] - # Output only. The compilation result's name. - # @!attribute [rw] code_compilation_config - # @return [::Google::Cloud::Dataform::V1::CodeCompilationConfig] - # Immutable. If set, fields of `code_compilation_config` override the default - # compilation settings that are specified in dataform.json. - # @!attribute [r] resolved_git_commit_sha - # @return [::String] - # Output only. The fully resolved Git commit SHA of the code that was - # compiled. Not set for compilation results whose source is a workspace. - # @!attribute [r] dataform_core_version - # @return [::String] - # Output only. The version of `@dataform/core` that was used for compilation. - # @!attribute [r] compilation_errors - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult::CompilationError>] - # Output only. Errors encountered during project compilation. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. Only set if the repository has a KMS Key. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the compilation result was created. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # Output only. Metadata indicating whether this resource is user-scoped. - # `CompilationResult` resource is `user_scoped` only if it is sourced - # from a workspace. - class CompilationResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # An error encountered when attempting to compile a Dataform project. - # @!attribute [r] message - # @return [::String] - # Output only. The error's top level message. - # @!attribute [r] stack - # @return [::String] - # Output only. The error's full stack trace. - # @!attribute [r] path - # @return [::String] - # Output only. The path of the file where this error occurred, if - # available, relative to the project root. - # @!attribute [r] action_target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. The identifier of the action where this error occurred, if - # available. - class CompilationError - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configures various aspects of Dataform code compilation. - # @!attribute [rw] default_database - # @return [::String] - # Optional. The default database (Google Cloud project ID). - # @!attribute [rw] default_schema - # @return [::String] - # Optional. The default schema (BigQuery dataset ID). - # @!attribute [rw] default_location - # @return [::String] - # Optional. The default BigQuery location to use. Defaults to "US". - # See the BigQuery docs for a full list of locations: - # https://cloud.google.com/bigquery/docs/locations. - # @!attribute [rw] assertion_schema - # @return [::String] - # Optional. The default schema (BigQuery dataset ID) for assertions. - # @!attribute [rw] vars - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. User-defined variables that are made available to project code - # during compilation. - # @!attribute [rw] database_suffix - # @return [::String] - # Optional. The suffix that should be appended to all database (Google Cloud - # project ID) names. - # @!attribute [rw] schema_suffix - # @return [::String] - # Optional. The suffix that should be appended to all schema (BigQuery - # dataset ID) names. - # @!attribute [rw] table_prefix - # @return [::String] - # Optional. The prefix that should be prepended to all table names. - # @!attribute [rw] builtin_assertion_name_prefix - # @return [::String] - # Optional. The prefix to prepend to built-in assertion names. - # @!attribute [rw] default_notebook_runtime_options - # @return [::Google::Cloud::Dataform::V1::NotebookRuntimeOptions] - # Optional. The default notebook runtime options. - class CodeCompilationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class VarsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configures various aspects of Dataform notebook runtime. - # @!attribute [rw] gcs_output_bucket - # @return [::String] - # Optional. The Google Cloud Storage location to upload the result to. - # Format: `gs://bucket-name`. - # @!attribute [rw] ai_platform_notebook_runtime_template - # @return [::String] - # Optional. The resource name of the [Colab runtime template] - # (https://cloud.google.com/colab/docs/runtimes), from which a runtime is - # created for notebook executions. If not specified, a runtime is created - # with Colab's default specifications. - class NotebookRuntimeOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListCompilationResults` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list compilation results. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListCompilationResults` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCompilationResults`, - # with the exception of `page_size`, must match the call that provided the - # page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name` and `create_time`. - # If unspecified, the server will choose the ordering. - # If specified, the default order is ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListCompilationResultsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListCompilationResults` response message. - # @!attribute [rw] compilation_results - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResult>] - # List of compilation results. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListCompilationResultsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetCompilationResult` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The compilation result's name. - class GetCompilationResultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateCompilationResult` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the compilation result. Must be - # in the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] compilation_result - # @return [::Google::Cloud::Dataform::V1::CompilationResult] - # Required. The compilation result to create. - class CreateCompilationResultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents an action identifier. If the action writes output, the output - # will be written to the referenced database object. - # @!attribute [rw] database - # @return [::String] - # Optional. The action's database (Google Cloud project ID) . - # @!attribute [rw] schema - # @return [::String] - # Optional. The action's schema (BigQuery dataset ID), within `database`. - # @!attribute [rw] name - # @return [::String] - # Optional. The action's name, within `database` and `schema`. - class Target - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes a relation and its columns. - # @!attribute [rw] description - # @return [::String] - # A text description of the relation. - # @!attribute [rw] columns - # @return [::Array<::Google::Cloud::Dataform::V1::RelationDescriptor::ColumnDescriptor>] - # A list of descriptions of columns within the relation. - # @!attribute [rw] bigquery_labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # A set of BigQuery labels that should be applied to the relation. - class RelationDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes a column. - # @!attribute [rw] path - # @return [::Array<::String>] - # The identifier for the column. Each entry in `path` represents one level - # of nesting. - # @!attribute [rw] description - # @return [::String] - # A textual description of the column. - # @!attribute [rw] bigquery_policy_tags - # @return [::Array<::String>] - # A list of BigQuery policy tags that will be applied to the column. - class ColumnDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class BigqueryLabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents a single Dataform action in a compilation result. - # @!attribute [rw] relation - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation] - # The database relation created/updated by this action. - # - # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] operations - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Operations] - # The database operations executed by this action. - # - # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] assertion - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Assertion] - # The assertion executed by this action. - # - # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] declaration - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Declaration] - # The declaration declared by this action. - # - # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] notebook - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Notebook] - # The notebook executed by this action. - # - # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_preparation - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation] - # The data preparation executed by this action. - # - # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # This action's identifier. Unique within the compilation result. - # @!attribute [rw] canonical_target - # @return [::Google::Cloud::Dataform::V1::Target] - # The action's identifier if the project had been compiled without any - # overrides configured. Unique within the compilation result. - # @!attribute [rw] file_path - # @return [::String] - # The full path including filename in which this action is located, relative - # to the workspace root. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class CompilationResultAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a database relation. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the relation and its columns. - # @!attribute [rw] relation_type - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::RelationType] - # The type of this relation. - # @!attribute [rw] select_query - # @return [::String] - # The SELECT query which returns rows which this relation should contain. - # @!attribute [rw] pre_operations - # @return [::Array<::String>] - # SQL statements to be executed before creating the relation. - # @!attribute [rw] post_operations - # @return [::Array<::String>] - # SQL statements to be executed after creating the relation. - # @!attribute [rw] incremental_table_config - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::IncrementalTableConfig] - # Configures `INCREMENTAL_TABLE` settings for this relation. Only set if - # `relation_type` is `INCREMENTAL_TABLE`. - # @!attribute [rw] partition_expression - # @return [::String] - # The SQL expression used to partition the relation. - # @!attribute [rw] cluster_expressions - # @return [::Array<::String>] - # A list of columns or SQL expressions used to cluster the table. - # @!attribute [rw] partition_expiration_days - # @return [::Integer] - # Sets the partition expiration in days. - # @!attribute [rw] require_partition_filter - # @return [::Boolean] - # Specifies whether queries on this table must include a predicate filter - # that filters on the partitioning column. - # @!attribute [rw] additional_options - # @return [::Google::Protobuf::Map{::String => ::String}] - # Additional options that will be provided as key/value pairs into the - # options clause of a create table/view statement. See - # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language - # for more information on which options are supported. - # @!attribute [rw] connection - # @return [::String] - # Optional. The connection specifying the credentials to be used to read - # and write to external storage, such as Cloud Storage. The connection can - # have the form `{project}.{location}.{connection_id}` or - # `projects/{project}/locations/{location}/connections/{connection_id}`, - # or be set to DEFAULT. - # @!attribute [rw] table_format - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::TableFormat] - # Optional. The table format for the BigQuery table. - # @!attribute [rw] file_format - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::Relation::FileFormat] - # Optional. The file format for the BigQuery table. - # @!attribute [rw] storage_uri - # @return [::String] - # Optional. The fully qualified location prefix of the external folder - # where table data is stored. The URI should be in the format - # `gs://bucket/path_to_table/`. - class Relation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Contains settings for relations of type `INCREMENTAL_TABLE`. - # @!attribute [rw] incremental_select_query - # @return [::String] - # The SELECT query which returns rows which should be inserted into the - # relation if it already exists and is not being refreshed. - # @!attribute [rw] refresh_disabled - # @return [::Boolean] - # Whether this table should be protected from being refreshed. - # @!attribute [rw] unique_key_parts - # @return [::Array<::String>] - # A set of columns or SQL expressions used to define row uniqueness. - # If any duplicates are discovered (as defined by `unique_key_parts`), - # only the newly selected rows (as defined by `incremental_select_query`) - # will be included in the relation. - # @!attribute [rw] update_partition_filter - # @return [::String] - # A SQL expression conditional used to limit the set of existing rows - # considered for a merge operation (see `unique_key_parts` for more - # information). - # @!attribute [rw] incremental_pre_operations - # @return [::Array<::String>] - # SQL statements to be executed before inserting new rows into the - # relation. - # @!attribute [rw] incremental_post_operations - # @return [::Array<::String>] - # SQL statements to be executed after inserting new rows into the - # relation. - class IncrementalTableConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AdditionalOptionsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the type of this relation. - module RelationType - # Default value. This value is unused. - RELATION_TYPE_UNSPECIFIED = 0 - - # The relation is a table. - TABLE = 1 - - # The relation is a view. - VIEW = 2 - - # The relation is an incrementalized table. - INCREMENTAL_TABLE = 3 - - # The relation is a materialized view. - MATERIALIZED_VIEW = 4 - end - - # Supported table formats for BigQuery tables. - module TableFormat - # Default value. - TABLE_FORMAT_UNSPECIFIED = 0 - - # Apache Iceberg format. - ICEBERG = 1 - end - - # Supported file formats for BigQuery tables. - module FileFormat - # Default value. - FILE_FORMAT_UNSPECIFIED = 0 - - # Apache Parquet format. - PARQUET = 1 - end - end - - # Represents a list of arbitrary database operations. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for any output relation and its columns. Only set if - # `has_output` is true. - # @!attribute [rw] queries - # @return [::Array<::String>] - # A list of arbitrary SQL statements that will be executed without - # alteration. - # @!attribute [rw] has_output - # @return [::Boolean] - # Whether these operations produce an output relation. - class Operations - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents an assertion upon a SQL query which is required return zero - # rows. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] parent_action - # @return [::Google::Cloud::Dataform::V1::Target] - # The parent action of this assertion. Only set if this assertion was - # automatically generated. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - # @!attribute [rw] select_query - # @return [::String] - # The SELECT query which must return zero rows in order for this assertion - # to succeed. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the assertion's automatically-generated view and its - # columns. - class Assertion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a relation which is not managed by Dataform but which may be - # referenced by Dataform actions. - # @!attribute [rw] relation_descriptor - # @return [::Google::Cloud::Dataform::V1::RelationDescriptor] - # Descriptor for the relation and its columns. Used as documentation only, - # i.e. values here will result in no changes to the relation's metadata. - class Declaration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a notebook. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] contents - # @return [::String] - # The contents of the notebook. - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - class Notebook - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a compiled Data Preparation entity - # @!attribute [rw] contents_yaml - # @return [::String] - # The data preparation definition, stored as a YAML string. - # - # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] contents_sql - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::SqlDefinition] - # SQL definition for a Data Preparation. Contains a SQL query and - # additional context information. - # - # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] dependency_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # A list of actions that this action depends on. - # @!attribute [rw] disabled - # @return [::Boolean] - # Whether this action is disabled (i.e. should not be run). - # @!attribute [rw] tags - # @return [::Array<::String>] - # Arbitrary, user-defined tags on this action. - class DataPreparation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Definition of a SQL Data Preparation - # @!attribute [rw] query - # @return [::String] - # The SQL query representing the data preparation steps. Formatted as a - # Pipe SQL query statement. - # @!attribute [rw] error_table - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::DataPreparation::ErrorTable] - # Error table configuration, - # @!attribute [rw] load - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::LoadConfig] - # Load configuration. - class SqlDefinition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Error table information, used to write error data into a BigQuery - # table. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Error Table target. - # @!attribute [rw] retention_days - # @return [::Integer] - # Error table partition expiration in days. Only positive values are - # allowed. - class ErrorTable - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Simplified load configuration for actions - # @!attribute [rw] replace - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] - # Replace destination table - # - # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] append - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::SimpleLoadMode] - # Append into destination table - # - # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] maximum - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] - # Insert records where the value exceeds the previous maximum value for a - # column in the destination table - # - # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] unique - # @return [::Google::Cloud::Dataform::V1::CompilationResultAction::IncrementalLoadMode] - # Insert records where the value of a column is not already present in - # the destination table - # - # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class LoadConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simple load definition - class SimpleLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Load definition for incremental load modes - # @!attribute [rw] column - # @return [::String] - # Column name for incremental load modes - class IncrementalLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `QueryCompilationResultActions` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The compilation result's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of compilation results to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryCompilationResultActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryCompilationResultActions`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filter for the returned list. Filtering is only - # currently supported on the `file_path` field. - class QueryCompilationResultActionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryCompilationResultActions` response message. - # @!attribute [rw] compilation_result_actions - # @return [::Array<::Google::Cloud::Dataform::V1::CompilationResultAction>] - # List of compilation result actions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryCompilationResultActionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform workflow configuration. - # @!attribute [rw] name - # @return [::String] - # Identifier. The workflow config's name. - # @!attribute [rw] release_config - # @return [::String] - # Required. The name of the release config whose release_compilation_result - # should be executed. Must be in the format - # `projects/*/locations/*/repositories/*/releaseConfigs/*`. - # @!attribute [rw] invocation_config - # @return [::Google::Cloud::Dataform::V1::InvocationConfig] - # Optional. If left unset, a default InvocationConfig will be used. - # @!attribute [rw] cron_schedule - # @return [::String] - # Optional. Optional schedule (in cron format) for automatic execution of - # this workflow config. - # @!attribute [rw] time_zone - # @return [::String] - # 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. - # @!attribute [r] recent_scheduled_execution_records - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig::ScheduledExecutionRecord>] - # Output only. Records of the 10 most recent scheduled execution attempts, - # ordered in descending order of `execution_time`. Updated whenever automatic - # creation of a workflow invocation is triggered by cron_schedule. - # @!attribute [rw] disabled - # @return [::Boolean] - # Optional. Disables automatic creation of workflow invocations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the WorkflowConfig was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the WorkflowConfig was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class WorkflowConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A record of an attempt to create a workflow invocation for this workflow - # config. - # @!attribute [rw] workflow_invocation - # @return [::String] - # The name of the created workflow invocation, if one was successfully - # created. Must be in the format - # `projects/*/locations/*/repositories/*/workflowInvocations/*`. - # - # Note: The following fields are mutually exclusive: `workflow_invocation`, `error_status`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] error_status - # @return [::Google::Rpc::Status] - # The error status encountered upon this attempt to create the - # workflow invocation, if the attempt was unsuccessful. - # - # Note: The following fields are mutually exclusive: `error_status`, `workflow_invocation`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] execution_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of this execution attempt. - class ScheduledExecutionRecord - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Includes various configuration options for a workflow invocation. - # If both `included_targets` and `included_tags` are unset, all actions - # will be included. - # @!attribute [rw] included_targets - # @return [::Array<::Google::Cloud::Dataform::V1::Target>] - # Optional. The set of action identifiers to include. - # @!attribute [rw] included_tags - # @return [::Array<::String>] - # Optional. The set of tags to include. - # @!attribute [rw] transitive_dependencies_included - # @return [::Boolean] - # Optional. When set to true, transitive dependencies of included actions - # will be executed. - # @!attribute [rw] transitive_dependents_included - # @return [::Boolean] - # Optional. When set to true, transitive dependents of included actions will - # be executed. - # @!attribute [rw] fully_refresh_incremental_tables_enabled - # @return [::Boolean] - # Optional. When set to true, any incremental tables will be fully refreshed. - # @!attribute [rw] service_account - # @return [::String] - # Optional. The service account to run workflow invocations under. - # @!attribute [rw] query_priority - # @return [::Google::Cloud::Dataform::V1::InvocationConfig::QueryPriority] - # Optional. Specifies the priority for query execution in BigQuery. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#queries. - class InvocationConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Types of priority for query execution in BigQuery. - module QueryPriority - # Default value. This value is unused. - QUERY_PRIORITY_UNSPECIFIED = 0 - - # Query will be executed in BigQuery with interactive priority. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#queries. - INTERACTIVE = 1 - - # Query will be executed in BigQuery with batch priority. - # More information can be found at - # https://cloud.google.com/bigquery/docs/running-queries#batchqueries. - BATCH = 2 - end - end - - # `ListWorkflowConfigs` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to list workflow configs. Must be in the - # format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow configs to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkflowConfigs` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListWorkflowConfigs`, - # with the exception of `page_size`, must match the call that provided the - # page token. - class ListWorkflowConfigsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkflowConfigs` response message. - # @!attribute [rw] workflow_configs - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowConfig>] - # List of workflow configs. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkflowConfigsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkflowConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow config's name. - class GetWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkflowConfig` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workflow config. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workflow_config - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # Required. The workflow config to create. - # @!attribute [rw] workflow_config_id - # @return [::String] - # Required. The ID to use for the workflow config, which will become the - # final component of the workflow config's resource name. - class CreateWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateWorkflowConfig` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the workflow config. If - # left unset, all fields will be updated. - # @!attribute [rw] workflow_config - # @return [::Google::Cloud::Dataform::V1::WorkflowConfig] - # Required. The workflow config to update. - class UpdateWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkflowConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow config's name. - class DeleteWorkflowConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single invocation of a compilation result. - # @!attribute [rw] compilation_result - # @return [::String] - # Immutable. The name of the compilation result to use for this invocation. - # Must be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # - # Note: The following fields are mutually exclusive: `compilation_result`, `workflow_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] workflow_config - # @return [::String] - # Immutable. The name of the workflow config to invoke. Must be in the - # format `projects/*/locations/*/repositories/*/workflowConfigs/*`. - # - # Note: The following fields are mutually exclusive: `workflow_config`, `compilation_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] name - # @return [::String] - # Output only. The workflow invocation's name. - # @!attribute [rw] invocation_config - # @return [::Google::Cloud::Dataform::V1::InvocationConfig] - # Immutable. If left unset, a default InvocationConfig will be used. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation::State] - # Output only. This workflow invocation's current state. - # @!attribute [r] invocation_timing - # @return [::Google::Type::Interval] - # Output only. This workflow invocation's timing details. - # @!attribute [r] resolved_compilation_result - # @return [::String] - # Output only. The resolved compilation result that was used to create this - # invocation. Will be in the format - # `projects/*/locations/*/repositories/*/compilationResults/*`. - # @!attribute [r] data_encryption_state - # @return [::Google::Cloud::Dataform::V1::DataEncryptionState] - # Output only. Only set if the repository has a KMS Key. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] private_resource_metadata - # @return [::Google::Cloud::Dataform::V1::PrivateResourceMetadata] - # 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. - class WorkflowInvocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents the current state of a workflow invocation. - module State - # Default value. This value is unused. - STATE_UNSPECIFIED = 0 - - # The workflow invocation is currently running. - RUNNING = 1 - - # The workflow invocation succeeded. A terminal state. - SUCCEEDED = 2 - - # The workflow invocation was cancelled. A terminal state. - CANCELLED = 3 - - # The workflow invocation failed. A terminal state. - FAILED = 4 - - # The workflow invocation is being cancelled, but some actions are still - # running. - CANCELING = 5 - end - end - - # `ListWorkflowInvocations` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource of the WorkflowInvocation type. Must be in - # the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `ListWorkflowInvocations` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListWorkflowInvocations`, with the exception of `page_size`, must match - # the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. This field only supports ordering by `name`. If unspecified, the - # server will choose the ordering. If specified, the default order is - # ascending for the `name` field. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter for the returned list. - class ListWorkflowInvocationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListWorkflowInvocations` response message. - # @!attribute [rw] workflow_invocations - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocation>] - # List of workflow invocations. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Locations which could not be reached. - class ListWorkflowInvocationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class GetWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateWorkflowInvocation` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The repository in which to create the workflow invocation. Must - # be in the format `projects/*/locations/*/repositories/*`. - # @!attribute [rw] workflow_invocation - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation] - # Required. The workflow invocation resource to create. - class CreateWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class DeleteWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CancelWorkflowInvocation` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation resource's name. - class CancelWorkflowInvocationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CancelWorkflowInvocation` response message. - class CancelWorkflowInvocationResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a single action in a workflow invocation. - # @!attribute [r] bigquery_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::BigQueryAction] - # Output only. The workflow action's bigquery action details. - # - # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] notebook_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::NotebookAction] - # Output only. The workflow action's notebook action details. - # - # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] data_preparation_action - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction] - # Output only. The workflow action's data preparation action details. - # - # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. This action's identifier. Unique within the workflow - # invocation. - # @!attribute [r] canonical_target - # @return [::Google::Cloud::Dataform::V1::Target] - # Output only. The action's identifier if the project had been compiled - # without any overrides configured. Unique within the compilation result. - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::State] - # Output only. This action's current state. - # @!attribute [r] failure_reason - # @return [::String] - # Output only. If and only if action's state is FAILED a failure reason is - # set. - # @!attribute [r] invocation_timing - # @return [::Google::Type::Interval] - # Output only. This action's timing details. - # `start_time` will be set if the action is in [RUNNING, SUCCEEDED, - # CANCELLED, FAILED] state. - # `end_time` will be set if the action is in [SUCCEEDED, CANCELLED, FAILED] - # state. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class WorkflowInvocationAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a workflow action that will run against BigQuery. - # @!attribute [r] sql_script - # @return [::String] - # Output only. The generated BigQuery SQL script that will be executed. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the BigQuery job that executed the SQL in - # sql_script. Only set once the job has started to run. - class BigQueryAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a workflow action that will run against a Notebook runtime. - # @!attribute [r] contents - # @return [::String] - # Output only. The code contents of a Notebook to be run. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the Vertex 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. - class NotebookAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a workflow action that will run a Data Preparation. - # @!attribute [r] contents_yaml - # @return [::String] - # Output only. YAML representing the contents of the data preparation. - # Can be used to show the customer what the input was to their workflow. - # - # Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] contents_sql - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition] - # SQL definition for a Data Preparation. Contains a SQL query and - # additional context information. - # - # Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [r] generated_sql - # @return [::String] - # Output only. The generated BigQuery SQL script that will be executed. For - # reference only. - # @!attribute [r] job_id - # @return [::String] - # Output only. The ID of the BigQuery job that executed the SQL in - # sql_script. Only set once the job has started to run. - class DataPreparationAction - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Definition of a SQL Data Preparation - # @!attribute [rw] query - # @return [::String] - # The SQL query representing the data preparation steps. Formatted as a - # Pipe SQL query statement. - # @!attribute [rw] error_table - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionErrorTable] - # Error table configuration, - # @!attribute [rw] load_config - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionLoadConfig] - # Load configuration. - class ActionSqlDefinition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Error table information, used to write error data into a BigQuery - # table. - # @!attribute [rw] target - # @return [::Google::Cloud::Dataform::V1::Target] - # Error Table target. - # @!attribute [rw] retention_days - # @return [::Integer] - # Error table partition expiration in days. Only positive values are - # allowed. - class ActionErrorTable - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simplified load configuration for actions - # @!attribute [rw] replace - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] - # Replace destination table - # - # Note: The following fields are mutually exclusive: `replace`, `append`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] append - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionSimpleLoadMode] - # Append into destination table - # - # Note: The following fields are mutually exclusive: `append`, `replace`, `maximum`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] maximum - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] - # Insert records where the value exceeds the previous maximum value for - # a column in the destination table - # - # Note: The following fields are mutually exclusive: `maximum`, `replace`, `append`, `unique`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] unique - # @return [::Google::Cloud::Dataform::V1::WorkflowInvocationAction::DataPreparationAction::ActionIncrementalLoadMode] - # Insert records where the value of a column is not already present in - # the destination table - # - # Note: The following fields are mutually exclusive: `unique`, `replace`, `append`, `maximum`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class ActionLoadConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Simple load definition - class ActionSimpleLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Load definition for incremental load modes - # @!attribute [rw] column - # @return [::String] - # Column name for incremental load modes - class ActionIncrementalLoadMode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents the current state of a workflow invocation action. - module State - # The action has not yet been considered for invocation. - PENDING = 0 - - # The action is currently running. - RUNNING = 1 - - # Execution of the action was skipped because upstream dependencies did not - # all complete successfully. A terminal state. - SKIPPED = 2 - - # Execution of the action was disabled as per the configuration of the - # corresponding compilation result action. A terminal state. - DISABLED = 3 - - # The action succeeded. A terminal state. - SUCCEEDED = 4 - - # The action was cancelled. A terminal state. - CANCELLED = 5 - - # The action failed. A terminal state. - FAILED = 6 - end - end - - # `QueryWorkflowInvocationActions` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The workflow invocation's name. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of workflow invocations to return. The server may - # return fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous - # `QueryWorkflowInvocationActions` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `QueryWorkflowInvocationActions`, with the exception of `page_size`, must - # match the call that provided the page token. - class QueryWorkflowInvocationActionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryWorkflowInvocationActions` response message. - # @!attribute [rw] workflow_invocation_actions - # @return [::Array<::Google::Cloud::Dataform::V1::WorkflowInvocationAction>] - # List of workflow invocation actions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryWorkflowInvocationActionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Config for all repositories in a given project and location. - # @!attribute [rw] name - # @return [::String] - # Identifier. The config name. - # @!attribute [rw] default_kms_key_name - # @return [::String] - # Optional. The default KMS key that is used if no encryption key is provided - # when a repository is created. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - class Config - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetConfig` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The config name. - class GetConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateConfig` request message. - # @!attribute [rw] config - # @return [::Google::Cloud::Dataform::V1::Config] - # Required. The config to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the config. - class UpdateConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a Dataform Folder. This is a resource that is used to organize - # Files and other Folders and provide hierarchical access controls. - # @!attribute [rw] name - # @return [::String] - # Identifier. The Folder's name. - # @!attribute [rw] display_name - # @return [::String] - # Required. The Folder's user-friendly name. - # @!attribute [rw] containing_folder - # @return [::String] - # Optional. The containing Folder resource name. This should take - # the format: projects/\\{project}/locations/\\{location}/folders/\\{folder}, - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}, or just - # projects/\\{project}/locations/\\{location} if this is a root Folder. This - # field can only be updated through MoveFolder. - # @!attribute [r] team_folder_name - # @return [::String] - # Output only. The resource name of the TeamFolder that this Folder is - # associated with. This should take the format: - # projects/\\{project}/locations/\\{location}/teamFolders/\\{teamFolder}. If this - # is not set, the Folder is not associated with a TeamFolder and is a - # UserFolder. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the Folder was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the Folder was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] creator_iam_principal - # @return [::String] - # Output only. The IAM principal identifier of the creator of the Folder. - class Folder - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateFolder` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the Folder. Must be in the format - # `projects/*/locations/*`. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # Required. The Folder to create. - class CreateFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `MoveFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The full resource name of the Folder to move. - # @!attribute [rw] destination_containing_folder - # @return [::String] - # Optional. The name of the Folder, TeamFolder, or root location to move the - # Folder to. Can be in the format of: "" to move into the root User folder, - # `projects/*/locations/*/folders/*`, `projects/*/locations/*/teamFolders/*` - class MoveFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - class GetFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateFolder` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields that can be updated, will be updated. A few fields cannot be - # updated and will be ignored if specified in the update_mask (e.g. - # parent_name, team_folder_name). - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # Required. The updated Folder. - class UpdateFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - class DeleteFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteFolderTree` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The Folder's name. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - class DeleteFolderTreeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteTeamFolderTree` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - # Format: projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If `false` (default): The operation will fail if any - # Repository within the folder hierarchy has associated Release Configs or - # Workflow Configs. - # - # If `true`: The operation will attempt to delete everything, including any - # Release Configs and Workflow Configs linked to Repositories within the - # folder hierarchy. This permanently removes schedules and resources. - class DeleteTeamFolderTreeRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Contains metadata about the progress of the DeleteFolderTree Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Resource name of the target of the operation. - # Format: projects/\\{project}/locations/\\{location}/folders/\\{folder} or - # projects/\\{project}/locations/\\{location}/teamFolders/\\{team_folder} - # @!attribute [r] state - # @return [::Google::Cloud::Dataform::V1::DeleteFolderTreeMetadata::State] - # Output only. The state of the operation. - # @!attribute [r] percent_complete - # @return [::Integer] - # Output only. Percent complete of the operation [0, 100]. - class DeleteFolderTreeMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the DeleteFolderTree operation. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The operation was initialized and recorded by the server, but not yet - # started. - INITIALIZED = 1 - - # The operation is in progress. - IN_PROGRESS = 2 - - # The operation has completed successfully. - SUCCEEDED = 3 - - # The operation has failed. - FAILED = 4 - end - end - - # `QueryFolderContents` request message. - # @!attribute [rw] folder - # @return [::String] - # Required. Name of the folder whose contents to list. - # Format: projects/*/locations/*/folders/* - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryFolderContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryFolderContents`, with the exception of `page_size`, must match the - # call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), create_time, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryFolderContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryFolderContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry>] - # List of entries in the folder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryFolderContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class FolderContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `QueryUserRootContents` request message. - # @!attribute [rw] location - # @return [::String] - # Required. Location of the user root folder whose contents to list. - # Format: projects/*/locations/* - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryUserRootContents` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryUserRootFolderContents`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: display_name (default), created_at, - # last_modified_at. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryUserRootContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryUserRootContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry>] - # List of entries in the folder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryUserRootContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class RootContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Represents a Dataform TeamFolder. This is a resource that sits at the project - # level and is used to organize Repositories and Folders with hierarchical - # access controls. They provide a team context and stricter access controls. - # @!attribute [rw] name - # @return [::String] - # Identifier. The TeamFolder's name. - # @!attribute [rw] display_name - # @return [::String] - # Required. The TeamFolder's user-friendly name. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the TeamFolder was created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The timestamp of when the TeamFolder was last updated. - # @!attribute [r] internal_metadata - # @return [::String] - # 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. - # @!attribute [r] creator_iam_principal - # @return [::String] - # Output only. The IAM principal identifier of the creator of the TeamFolder. - class TeamFolder - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `CreateTeamFolder` request message. - # @!attribute [rw] parent - # @return [::String] - # Required. The location in which to create the TeamFolder. Must be in the - # format `projects/*/locations/*`. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # Required. The TeamFolder to create. - class CreateTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `GetTeamFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - class GetTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `UpdateTeamFolder` request message. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. Specifies the fields to be updated in the Folder. If left unset, - # all fields will be updated. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # Required. The updated TeamFolder. - class UpdateTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `DeleteTeamFolder` request message. - # @!attribute [rw] name - # @return [::String] - # Required. The TeamFolder's name. - class DeleteTeamFolderRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryTeamFolderContents` request message. - # @!attribute [rw] team_folder - # @return [::String] - # Required. Name of the team_folder whose contents to list. - # Format: `projects/*/locations/*/teamFolders/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of paths to return. The server may return fewer - # items than requested. If unspecified, the server will pick an appropriate - # default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `QueryTeamFolderContents` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `QueryTeamFolderContents`, with the exception of `page_size`, must match - # the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Will order Folders before Repositories, and then by `order_by` in ascending - # order. Supported keywords: `display_name` (default), `create_time`, - # last_modified_time. - # Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class QueryTeamFolderContentsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `QueryTeamFolderContents` response message. - # @!attribute [rw] entries - # @return [::Array<::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry>] - # List of entries in the TeamFolder. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class QueryTeamFolderContentsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] folder - # @return [::Google::Cloud::Dataform::V1::Folder] - # A subfolder. - # - # Note: The following fields are mutually exclusive: `folder`, `repository`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] repository - # @return [::Google::Cloud::Dataform::V1::Repository] - # A repository. - # - # Note: The following fields are mutually exclusive: `repository`, `folder`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class TeamFolderContentsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `SearchTeamFolders` request message. - # @!attribute [rw] location - # @return [::String] - # Required. Location in which to query TeamFolders. - # Format: `projects/*/locations/*`. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. Maximum number of TeamFolders to return. The server may return - # fewer items than requested. If unspecified, the server will pick an - # appropriate default. - # @!attribute [rw] page_token - # @return [::String] - # Optional. Page token received from a previous `SearchTeamFolders` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `SearchTeamFolders`, with the exception of `page_size`, must - # match the call that provided the page token. - # @!attribute [rw] order_by - # @return [::String] - # Optional. Field to additionally sort results by. - # Supported keywords: `display_name` (default), `create_time`, - # `last_modified_time`. Examples: - # - `orderBy="display_name"` - # - `orderBy="display_name desc"` - # @!attribute [rw] filter - # @return [::String] - # Optional. Optional filtering for the returned list. Filtering is currently - # only supported on the `display_name` field. - # - # Example: - # - `filter="display_name="MyFolder""` - class SearchTeamFoldersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `SearchTeamFolders` response message. - # @!attribute [rw] results - # @return [::Array<::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult>] - # List of TeamFolders that match the search query. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class SearchTeamFoldersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a single content entry. - # @!attribute [rw] team_folder - # @return [::Google::Cloud::Dataform::V1::TeamFolder] - # A TeamFolder resource that is in the project / location. - class TeamFolderSearchResult - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Contains metadata about the progress of the MoveFolder Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Server-defined resource path for the target of the operation. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataform::V1::MoveFolderMetadata::State] - # The state of the move. - # @!attribute [rw] percent_complete - # @return [::Integer] - # Percent complete of the move [0, 100]. - class MoveFolderMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the move. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The move was initialized and recorded by the server, but not yet started. - INITIALIZED = 1 - - # The move is in progress. - IN_PROGRESS = 2 - - # The move has completed successfully. - SUCCESS = 3 - - # The move has failed. - FAILED = 4 - end - end - - # Contains metadata about the progress of the MoveRepository Long-running - # operations. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Server-defined resource path for the target of the operation. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataform::V1::MoveRepositoryMetadata::State] - # The state of the move. - # @!attribute [rw] percent_complete - # @return [::Integer] - # Percent complete of the move [0, 100]. - class MoveRepositoryMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different states of the move. - module State - # The state is unspecified. - STATE_UNSPECIFIED = 0 - - # The move was initialized and recorded by the server, but not yet started. - INITIALIZED = 1 - - # The move is in progress. - IN_PROGRESS = 2 - - # The move has completed successfully. - SUCCESS = 3 - - # The move has failed. - FAILED = 4 - end - end - - # Represents the level of detail to return for directory contents. - module DirectoryContentsView - # The default / unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. - DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0 - - # Includes only the file or directory name. This is the default behavior. - DIRECTORY_CONTENTS_VIEW_BASIC = 1 - - # Includes all metadata for each file or directory. Currently not supported - # by CMEK-protected workspaces. - DIRECTORY_CONTENTS_VIEW_METADATA = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb deleted file mode 100644 index 7a757f512165..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/longrunning/operations.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Longrunning - # This resource represents a long-running operation that is the result of a - # network API call. - # @!attribute [rw] name - # @return [::String] - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/{unique_id}`. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Any] - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # @!attribute [rw] done - # @return [::Boolean] - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # @!attribute [rw] error - # @return [::Google::Rpc::Status] - # The error result of the operation in case of failure or cancellation. - # - # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] response - # @return [::Google::Protobuf::Any] - # The normal, successful response of the operation. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # - # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Operation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.GetOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource. - class GetOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.ListOperations. - # @!attribute [rw] name - # @return [::String] - # The name of the operation's parent resource. - # @!attribute [rw] filter - # @return [::String] - # The standard list filter. - # @!attribute [rw] page_size - # @return [::Integer] - # The standard list page size. - # @!attribute [rw] page_token - # @return [::String] - # The standard list page token. - # @!attribute [rw] return_partial_success - # @return [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - class ListOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message for - # Operations.ListOperations. - # @!attribute [rw] operations - # @return [::Array<::Google::Longrunning::Operation>] - # A list of operations that matches the specified filter in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # The standard List next-page token. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. Unreachable resources. Populated when the request sets - # `ListOperationsRequest.return_partial_success` and reads across - # collections e.g. when attempting to list all resources across all supported - # locations. - class ListOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.CancelOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be cancelled. - class CancelOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.DeleteOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be deleted. - class DeleteOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.WaitOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to wait on. - # @!attribute [rw] timeout - # @return [::Google::Protobuf::Duration] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - class WaitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A message representing the message types used by a long-running operation. - # - # Example: - # - # rpc Export(ExportRequest) returns (google.longrunning.Operation) { - # option (google.longrunning.operation_info) = { - # response_type: "ExportResponse" - # metadata_type: "ExportMetadata" - # }; - # } - # @!attribute [rw] response_type - # @return [::String] - # Required. The message name of the primary return type for this - # long-running operation. - # This type will be used to deserialize the LRO's response. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - # @!attribute [rw] metadata_type - # @return [::String] - # Required. The message name of the metadata type for this long-running - # operation. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - class OperationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb deleted file mode 100644 index 53e7733b6592..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/expr.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # - # Example (Comparison): - # - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # - # Example (Equality): - # - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # - # Example (Logic): - # - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # - # Example (Data Manipulation): - # - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. - # @!attribute [rw] expression - # @return [::String] - # Textual representation of an expression in Common Expression Language - # syntax. - # @!attribute [rw] title - # @return [::String] - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. - # @!attribute [rw] description - # @return [::String] - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. - # @!attribute [rw] location - # @return [::String] - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. - class Expr - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb b/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb deleted file mode 100644 index 9350ca479005..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/proto_docs/google/type/interval.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a time interval, encoded as a Timestamp start (inclusive) and a - # Timestamp end (exclusive). - # - # The start must be less than or equal to the end. - # When the start equals the end, the interval is empty (matches no time). - # When both start and end are unspecified, the interval matches any time. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Inclusive start of the interval. - # - # If specified, a Timestamp matching this interval will have to be the same - # or after the start. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # Optional. Exclusive end of the interval. - # - # If specified, a Timestamp matching this interval will have to be before the - # end. - class Interval - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile deleted file mode 100644 index 89707fd03706..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-dataform-v1", path: "../" -else - gem "google-cloud-dataform-v1" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb deleted file mode 100644 index c4a4e55aa460..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/cancel_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the cancel_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation. -# -def cancel_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new - - # Call the cancel_workflow_invocation method. - result = client.cancel_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse. - p result -end -# [END dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb deleted file mode 100644 index b31e885c5837..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_repository_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the commit_repository_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes. -# -def commit_repository_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new - - # Call the commit_repository_changes method. - result = client.commit_repository_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_CommitRepositoryChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb deleted file mode 100644 index de4ddc10f8e4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/commit_workspace_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the commit_workspace_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes. -# -def commit_workspace_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new - - # Call the commit_workspace_changes method. - result = client.commit_workspace_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb deleted file mode 100644 index 4aaf8f3d74f7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/compute_repository_access_token_status.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the compute_repository_access_token_status call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status. -# -def compute_repository_access_token_status - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new - - # Call the compute_repository_access_token_status method. - result = client.compute_repository_access_token_status request - - # The returned object is of type Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse. - p result -end -# [END dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb deleted file mode 100644 index 2a34f5cac7f6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_compilation_result.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateCompilationResult_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_compilation_result call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result. -# -def create_compilation_result - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new - - # Call the create_compilation_result method. - result = client.create_compilation_result request - - # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - p result -end -# [END dataform_v1_generated_Dataform_CreateCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb deleted file mode 100644 index 3c2f8f0e4f94..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_folder. -# -def create_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateFolderRequest.new - - # Call the create_folder method. - result = client.create_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::Folder. - p result -end -# [END dataform_v1_generated_Dataform_CreateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb deleted file mode 100644 index 46e5de64b5d1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_release_config. -# -def create_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new - - # Call the create_release_config method. - result = client.create_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_CreateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb deleted file mode 100644 index 186c81061421..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_repository. -# -def create_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateRepositoryRequest.new - - # Call the create_repository method. - result = client.create_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_CreateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb deleted file mode 100644 index 4cb79ef5ac63..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder. -# -def create_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new - - # Call the create_team_folder method. - result = client.create_team_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - p result -end -# [END dataform_v1_generated_Dataform_CreateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb deleted file mode 100644 index 446e1c2e93bb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config. -# -def create_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new - - # Call the create_workflow_config method. - result = client.create_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb deleted file mode 100644 index ad915149df4d..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation. -# -def create_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new - - # Call the create_workflow_invocation method. - result = client.create_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb deleted file mode 100644 index 89e20592d4f2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/create_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_CreateWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the create_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#create_workspace. -# -def create_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new - - # Call the create_workspace method. - result = client.create_workspace request - - # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - p result -end -# [END dataform_v1_generated_Dataform_CreateWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb deleted file mode 100644 index b77ee48d1380..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder. -# -def delete_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteFolderRequest.new - - # Call the delete_folder method. - result = client.delete_folder request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb deleted file mode 100644 index b2e3907a8605..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_folder_tree.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteFolderTree_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_folder_tree call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree. -# -def delete_folder_tree - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new - - # Call the delete_folder_tree method. - result = client.delete_folder_tree request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_DeleteFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb deleted file mode 100644 index b21bc0f0a3fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config. -# -def delete_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new - - # Call the delete_release_config method. - result = client.delete_release_config request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb deleted file mode 100644 index c7267ab8814d..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_repository. -# -def delete_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new - - # Call the delete_repository method. - result = client.delete_repository request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb deleted file mode 100644 index 45cfe3a54207..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder. -# -def delete_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new - - # Call the delete_team_folder method. - result = client.delete_team_folder request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb deleted file mode 100644 index 9ef55af12135..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_team_folder_tree.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_team_folder_tree call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree. -# -def delete_team_folder_tree - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new - - # Call the delete_team_folder_tree method. - result = client.delete_team_folder_tree request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb deleted file mode 100644 index 68073c51b458..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config. -# -def delete_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new - - # Call the delete_workflow_config method. - result = client.delete_workflow_config request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb deleted file mode 100644 index 656f44075001..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation. -# -def delete_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new - - # Call the delete_workflow_invocation method. - result = client.delete_workflow_invocation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb deleted file mode 100644 index 56e820984467..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/delete_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_DeleteWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the delete_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace. -# -def delete_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new - - # Call the delete_workspace method. - result = client.delete_workspace request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Dataform_DeleteWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb deleted file mode 100644 index 8730eefe3970..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_diff.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchFileDiff_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_file_diff call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff. -# -def fetch_file_diff - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchFileDiffRequest.new - - # Call the fetch_file_diff method. - result = client.fetch_file_diff request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchFileDiffResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchFileDiff_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb deleted file mode 100644 index 4715c81828c0..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_file_git_statuses.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_file_git_statuses call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses. -# -def fetch_file_git_statuses - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new - - # Call the fetch_file_git_statuses method. - result = client.fetch_file_git_statuses request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchFileGitStatuses_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb deleted file mode 100644 index 0fc4c454effd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_git_ahead_behind.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_git_ahead_behind call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind. -# -def fetch_git_ahead_behind - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new - - # Call the fetch_git_ahead_behind method. - result = client.fetch_git_ahead_behind request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchGitAheadBehind_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb deleted file mode 100644 index 3c55465ceb19..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_remote_branches.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchRemoteBranches_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_remote_branches call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches. -# -def fetch_remote_branches - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new - - # Call the fetch_remote_branches method. - result = client.fetch_remote_branches request - - # The returned object is of type Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse. - p result -end -# [END dataform_v1_generated_Dataform_FetchRemoteBranches_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb deleted file mode 100644 index da57dd87c79e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/fetch_repository_history.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the fetch_repository_history call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history. -# -def fetch_repository_history - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new - - # Call the fetch_repository_history method. - result = client.fetch_repository_history request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CommitLogEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_FetchRepositoryHistory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb deleted file mode 100644 index 999fd435d184..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_compilation_result.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetCompilationResult_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_compilation_result call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result. -# -def get_compilation_result - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetCompilationResultRequest.new - - # Call the get_compilation_result method. - result = client.get_compilation_result request - - # The returned object is of type Google::Cloud::Dataform::V1::CompilationResult. - p result -end -# [END dataform_v1_generated_Dataform_GetCompilationResult_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb deleted file mode 100644 index e783c6e72d27..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_config. -# -def get_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetConfigRequest.new - - # Call the get_config method. - result = client.get_config request - - # The returned object is of type Google::Cloud::Dataform::V1::Config. - p result -end -# [END dataform_v1_generated_Dataform_GetConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb deleted file mode 100644 index 689877e96673..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_folder. -# -def get_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetFolderRequest.new - - # Call the get_folder method. - result = client.get_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::Folder. - p result -end -# [END dataform_v1_generated_Dataform_GetFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb deleted file mode 100644 index df48c36f2d16..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetIamPolicy_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_iam_policy call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy. -# -def get_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::GetIamPolicyRequest.new - - # Call the get_iam_policy method. - result = client.get_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END dataform_v1_generated_Dataform_GetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb deleted file mode 100644 index a84831df98d5..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_release_config. -# -def get_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new - - # Call the get_release_config method. - result = client.get_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_GetReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb deleted file mode 100644 index c5072fb2408f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_repository. -# -def get_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetRepositoryRequest.new - - # Call the get_repository method. - result = client.get_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_GetRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb deleted file mode 100644 index 287238e52743..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder. -# -def get_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetTeamFolderRequest.new - - # Call the get_team_folder method. - result = client.get_team_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - p result -end -# [END dataform_v1_generated_Dataform_GetTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb deleted file mode 100644 index f381745b38fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config. -# -def get_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new - - # Call the get_workflow_config method. - result = client.get_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb deleted file mode 100644 index 7a4356138297..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workflow_invocation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workflow_invocation call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation. -# -def get_workflow_invocation - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new - - # Call the get_workflow_invocation method. - result = client.get_workflow_invocation request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowInvocation. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkflowInvocation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb deleted file mode 100644 index 06b3bd6fe5eb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/get_workspace.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_GetWorkspace_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the get_workspace call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#get_workspace. -# -def get_workspace - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::GetWorkspaceRequest.new - - # Call the get_workspace method. - result = client.get_workspace request - - # The returned object is of type Google::Cloud::Dataform::V1::Workspace. - p result -end -# [END dataform_v1_generated_Dataform_GetWorkspace_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb deleted file mode 100644 index 921bd63946d7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/install_npm_packages.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_InstallNpmPackages_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the install_npm_packages call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages. -# -def install_npm_packages - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new - - # Call the install_npm_packages method. - result = client.install_npm_packages request - - # The returned object is of type Google::Cloud::Dataform::V1::InstallNpmPackagesResponse. - p result -end -# [END dataform_v1_generated_Dataform_InstallNpmPackages_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb deleted file mode 100644 index 593c43c2b30e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_compilation_results.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListCompilationResults_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_compilation_results call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results. -# -def list_compilation_results - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new - - # Call the list_compilation_results method. - result = client.list_compilation_results request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResult. - p item - end -end -# [END dataform_v1_generated_Dataform_ListCompilationResults_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb deleted file mode 100644 index 8ea574eff2a3..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_release_configs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListReleaseConfigs_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_release_configs call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs. -# -def list_release_configs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new - - # Call the list_release_configs method. - result = client.list_release_configs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::ReleaseConfig. - p item - end -end -# [END dataform_v1_generated_Dataform_ListReleaseConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb deleted file mode 100644 index 321b0cf9c512..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_repositories.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListRepositories_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_repositories call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_repositories. -# -def list_repositories - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListRepositoriesRequest.new - - # Call the list_repositories method. - result = client.list_repositories request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::Repository. - p item - end -end -# [END dataform_v1_generated_Dataform_ListRepositories_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb deleted file mode 100644 index cc9629d319fb..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_configs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workflow_configs call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs. -# -def list_workflow_configs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new - - # Call the list_workflow_configs method. - result = client.list_workflow_configs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowConfig. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkflowConfigs_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb deleted file mode 100644 index 13e62b798423..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workflow_invocations.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workflow_invocations call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations. -# -def list_workflow_invocations - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new - - # Call the list_workflow_invocations method. - result = client.list_workflow_invocations request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocation. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkflowInvocations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb deleted file mode 100644 index 8f9be608db55..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/list_workspaces.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ListWorkspaces_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the list_workspaces call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces. -# -def list_workspaces - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ListWorkspacesRequest.new - - # Call the list_workspaces method. - result = client.list_workspaces request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::Workspace. - p item - end -end -# [END dataform_v1_generated_Dataform_ListWorkspaces_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb deleted file mode 100644 index 47f391f846c6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/make_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MakeDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the make_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#make_directory. -# -def make_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MakeDirectoryRequest.new - - # Call the make_directory method. - result = client.make_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::MakeDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_MakeDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb deleted file mode 100644 index fb67af9605e9..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_directory. -# -def move_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveDirectoryRequest.new - - # Call the move_directory method. - result = client.move_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::MoveDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_MoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb deleted file mode 100644 index 4f22d16e6721..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_file. -# -def move_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveFileRequest.new - - # Call the move_file method. - result = client.move_file request - - # The returned object is of type Google::Cloud::Dataform::V1::MoveFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_MoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb deleted file mode 100644 index eebe84d46640..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_folder.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_folder. -# -def move_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveFolderRequest.new - - # Call the move_folder method. - result = client.move_folder request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_MoveFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb deleted file mode 100644 index 4eca8dd9c54f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/move_repository.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_MoveRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the move_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#move_repository. -# -def move_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::MoveRepositoryRequest.new - - # Call the move_repository method. - result = client.move_repository request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Dataform_MoveRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb deleted file mode 100644 index d929a9ff389b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/pull_git_commits.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_PullGitCommits_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the pull_git_commits call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits. -# -def pull_git_commits - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::PullGitCommitsRequest.new - - # Call the pull_git_commits method. - result = client.pull_git_commits request - - # The returned object is of type Google::Cloud::Dataform::V1::PullGitCommitsResponse. - p result -end -# [END dataform_v1_generated_Dataform_PullGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb deleted file mode 100644 index a68f07194b2b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/push_git_commits.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_PushGitCommits_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the push_git_commits call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits. -# -def push_git_commits - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::PushGitCommitsRequest.new - - # Call the push_git_commits method. - result = client.push_git_commits request - - # The returned object is of type Google::Cloud::Dataform::V1::PushGitCommitsResponse. - p result -end -# [END dataform_v1_generated_Dataform_PushGitCommits_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb deleted file mode 100644 index 5639fdf8046b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_compilation_result_actions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_compilation_result_actions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions. -# -def query_compilation_result_actions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new - - # Call the query_compilation_result_actions method. - result = client.query_compilation_result_actions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::CompilationResultAction. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryCompilationResultActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb deleted file mode 100644 index b369a3508ead..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_directory_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryDirectoryContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_directory_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents. -# -def query_directory_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new - - # Call the query_directory_contents method. - result = client.query_directory_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb deleted file mode 100644 index ad16707edc04..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_folder_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryFolderContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_folder_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents. -# -def query_folder_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new - - # Call the query_folder_contents method. - result = client.query_folder_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse::FolderContentsEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb deleted file mode 100644 index 60f03d3438fe..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_repository_directory_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_repository_directory_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents. -# -def query_repository_directory_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new - - # Call the query_repository_directory_contents method. - result = client.query_repository_directory_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::DirectoryEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb deleted file mode 100644 index 90a3760b3221..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_team_folder_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_team_folder_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents. -# -def query_team_folder_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new - - # Call the query_team_folder_contents method. - result = client.query_team_folder_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse::TeamFolderContentsEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryTeamFolderContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb deleted file mode 100644 index d070b3379fd4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_user_root_contents.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryUserRootContents_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_user_root_contents call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents. -# -def query_user_root_contents - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new - - # Call the query_user_root_contents method. - result = client.query_user_root_contents request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse::RootContentsEntry. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryUserRootContents_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb deleted file mode 100644 index d44f575db9f2..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/query_workflow_invocation_actions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the query_workflow_invocation_actions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions. -# -def query_workflow_invocation_actions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new - - # Call the query_workflow_invocation_actions method. - result = client.query_workflow_invocation_actions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::WorkflowInvocationAction. - p item - end -end -# [END dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb deleted file mode 100644 index 9d32a0e63b2e..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ReadFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the read_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#read_file. -# -def read_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ReadFileRequest.new - - # Call the read_file method. - result = client.read_file request - - # The returned object is of type Google::Cloud::Dataform::V1::ReadFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_ReadFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb deleted file mode 100644 index 52f0945b9d40..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/read_repository_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ReadRepositoryFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the read_repository_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file. -# -def read_repository_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new - - # Call the read_repository_file method. - result = client.read_repository_file request - - # The returned object is of type Google::Cloud::Dataform::V1::ReadRepositoryFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_ReadRepositoryFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb deleted file mode 100644 index 797de4b0ddad..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_directory.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_RemoveDirectory_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the remove_directory call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#remove_directory. -# -def remove_directory - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new - - # Call the remove_directory method. - result = client.remove_directory request - - # The returned object is of type Google::Cloud::Dataform::V1::RemoveDirectoryResponse. - p result -end -# [END dataform_v1_generated_Dataform_RemoveDirectory_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb deleted file mode 100644 index 7e1ae41d3621..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/remove_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_RemoveFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the remove_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#remove_file. -# -def remove_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::RemoveFileRequest.new - - # Call the remove_file method. - result = client.remove_file request - - # The returned object is of type Google::Cloud::Dataform::V1::RemoveFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_RemoveFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb deleted file mode 100644 index 3e320ac0b35b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/reset_workspace_changes.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the reset_workspace_changes call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes. -# -def reset_workspace_changes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new - - # Call the reset_workspace_changes method. - result = client.reset_workspace_changes request - - # The returned object is of type Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse. - p result -end -# [END dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb deleted file mode 100644 index d6359d3370f5..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_files.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_SearchFiles_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the search_files call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#search_files. -# -def search_files - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::SearchFilesRequest.new - - # Call the search_files method. - result = client.search_files request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::SearchResult. - p item - end -end -# [END dataform_v1_generated_Dataform_SearchFiles_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb deleted file mode 100644 index 4a5fa15a73e6..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/search_team_folders.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_SearchTeamFolders_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the search_team_folders call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders. -# -def search_team_folders - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new - - # Call the search_team_folders method. - result = client.search_team_folders request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse::TeamFolderSearchResult. - p item - end -end -# [END dataform_v1_generated_Dataform_SearchTeamFolders_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb deleted file mode 100644 index 335c8370204f..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/set_iam_policy.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_SetIamPolicy_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the set_iam_policy call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy. -# -def set_iam_policy - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::SetIamPolicyRequest.new - - # Call the set_iam_policy method. - result = client.set_iam_policy request - - # The returned object is of type Google::Iam::V1::Policy. - p result -end -# [END dataform_v1_generated_Dataform_SetIamPolicy_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb deleted file mode 100644 index 9c833d143ff9..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/test_iam_permissions.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_TestIamPermissions_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the test_iam_permissions call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions. -# -def test_iam_permissions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Iam::V1::TestIamPermissionsRequest.new - - # Call the test_iam_permissions method. - result = client.test_iam_permissions request - - # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse. - p result -end -# [END dataform_v1_generated_Dataform_TestIamPermissions_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb deleted file mode 100644 index cda3be7976e1..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_config. -# -def update_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateConfigRequest.new - - # Call the update_config method. - result = client.update_config request - - # The returned object is of type Google::Cloud::Dataform::V1::Config. - p result -end -# [END dataform_v1_generated_Dataform_UpdateConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb deleted file mode 100644 index f2f0cfad66fd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_folder. -# -def update_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateFolderRequest.new - - # Call the update_folder method. - result = client.update_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::Folder. - p result -end -# [END dataform_v1_generated_Dataform_UpdateFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb deleted file mode 100644 index 67f11c154df8..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_release_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_release_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_release_config. -# -def update_release_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new - - # Call the update_release_config method. - result = client.update_release_config request - - # The returned object is of type Google::Cloud::Dataform::V1::ReleaseConfig. - p result -end -# [END dataform_v1_generated_Dataform_UpdateReleaseConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb deleted file mode 100644 index 35f7462d0dac..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_repository.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateRepository_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_repository call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_repository. -# -def update_repository - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new - - # Call the update_repository method. - result = client.update_repository request - - # The returned object is of type Google::Cloud::Dataform::V1::Repository. - p result -end -# [END dataform_v1_generated_Dataform_UpdateRepository_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb deleted file mode 100644 index b98113a24978..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_team_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateTeamFolder_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_team_folder call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder. -# -def update_team_folder - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new - - # Call the update_team_folder method. - result = client.update_team_folder request - - # The returned object is of type Google::Cloud::Dataform::V1::TeamFolder. - p result -end -# [END dataform_v1_generated_Dataform_UpdateTeamFolder_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb deleted file mode 100644 index 570ff222440b..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/update_workflow_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the update_workflow_config call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config. -# -def update_workflow_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new - - # Call the update_workflow_config method. - result = client.update_workflow_config request - - # The returned object is of type Google::Cloud::Dataform::V1::WorkflowConfig. - p result -end -# [END dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb deleted file mode 100644 index 75fabd872e56..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/dataform/write_file.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Dataform_WriteFile_sync] -require "google/cloud/dataform/v1" - -## -# Snippet for the write_file call in the Dataform service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataform::V1::Dataform::Client#write_file. -# -def write_file - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataform::V1::Dataform::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataform::V1::WriteFileRequest.new - - # Call the write_file method. - result = client.write_file request - - # The returned object is of type Google::Cloud::Dataform::V1::WriteFileResponse. - p result -end -# [END dataform_v1_generated_Dataform_WriteFile_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb deleted file mode 100644 index ac17556a7c35..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/cancel_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_CancelOperation_sync] -require "google/longrunning" - -## -# Snippet for the cancel_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#cancel_operation. -# -def cancel_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::CancelOperationRequest.new - - # Call the cancel_operation method. - result = client.cancel_operation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Operations_CancelOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb deleted file mode 100644 index 5a5ca99c1168..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/delete_operation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_DeleteOperation_sync] -require "google/longrunning" - -## -# Snippet for the delete_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#delete_operation. -# -def delete_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::DeleteOperationRequest.new - - # Call the delete_operation method. - result = client.delete_operation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END dataform_v1_generated_Operations_DeleteOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb deleted file mode 100644 index cd1170168513..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/get_operation.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_GetOperation_sync] -require "google/longrunning" - -## -# Snippet for the get_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#get_operation. -# -def get_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::GetOperationRequest.new - - # Call the get_operation method. - result = client.get_operation request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Operations_GetOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb deleted file mode 100644 index f9b07ec66d86..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/list_operations.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_ListOperations_sync] -require "google/longrunning" - -## -# Snippet for the list_operations call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#list_operations. -# -def list_operations - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::ListOperationsRequest.new - - # Call the list_operations method. - result = client.list_operations request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Longrunning::Operation. - p item - end -end -# [END dataform_v1_generated_Operations_ListOperations_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb b/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb deleted file mode 100644 index bbec9a28ddd7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/operations/wait_operation.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataform_v1_generated_Operations_WaitOperation_sync] -require "google/longrunning" - -## -# Snippet for the wait_operation call in the Operations service -# -# 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. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Longrunning::Operations::Client#wait_operation. -# -def wait_operation - # Create a client object. The client can be reused for multiple calls. - client = Google::Longrunning::Operations::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Longrunning::WaitOperationRequest.new - - # Call the wait_operation method. - result = client.wait_operation request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END dataform_v1_generated_Operations_WaitOperation_sync] diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json deleted file mode 100644 index 6ded7292abaa..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.cloud.dataform.v1.json +++ /dev/null @@ -1,2935 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-dataform-v1", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.cloud.dataform.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "region_tag": "dataform_v1_generated_Dataform_GetTeamFolder_sync", - "title": "Snippet for the get_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder.", - "file": "dataform/get_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.GetTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateTeamFolder_sync", - "title": "Snippet for the create_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder.", - "file": "dataform/create_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateTeamFolder_sync", - "title": "Snippet for the update_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder.", - "file": "dataform/update_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::TeamFolder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolder_sync", - "title": "Snippet for the delete_team_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder.", - "file": "dataform/delete_team_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_team_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteTeamFolder", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_sync", - "title": "Snippet for the delete_team_folder_tree call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree.", - "file": "dataform/delete_team_folder_tree.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_team_folder_tree", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_team_folder_tree", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteTeamFolderTree", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_sync", - "title": "Snippet for the query_team_folder_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents.", - "file": "dataform/query_team_folder_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_team_folder_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_team_folder_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryTeamFolderContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SearchTeamFolders_sync", - "title": "Snippet for the search_team_folders call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders.", - "file": "dataform/search_team_folders.rb", - "language": "RUBY", - "client_method": { - "short_name": "search_team_folders", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_team_folders", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SearchTeamFolders", - "full_name": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetFolder_sync", - "title": "Snippet for the get_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_folder.", - "file": "dataform/get_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetFolder", - "full_name": "google.cloud.dataform.v1.Dataform.GetFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateFolder_sync", - "title": "Snippet for the create_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_folder.", - "file": "dataform/create_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateFolder", - "full_name": "google.cloud.dataform.v1.Dataform.CreateFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateFolder_sync", - "title": "Snippet for the update_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_folder.", - "file": "dataform/update_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Folder", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateFolder", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteFolder_sync", - "title": "Snippet for the delete_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder.", - "file": "dataform/delete_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteFolder", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteFolderTree_sync", - "title": "Snippet for the delete_folder_tree call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree.", - "file": "dataform/delete_folder_tree.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_folder_tree", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_folder_tree", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteFolderTree", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryFolderContents_sync", - "title": "Snippet for the query_folder_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents.", - "file": "dataform/query_folder_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_folder_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_folder_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryFolderContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryFolderContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryFolderContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryFolderContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryUserRootContents_sync", - "title": "Snippet for the query_user_root_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents.", - "file": "dataform/query_user_root_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_user_root_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_user_root_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryUserRootContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveFolder_sync", - "title": "Snippet for the move_folder call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_folder.", - "file": "dataform/move_folder.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_folder", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_folder", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveFolderRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveFolder", - "full_name": "google.cloud.dataform.v1.Dataform.MoveFolder", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListRepositories_sync", - "title": "Snippet for the list_repositories call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_repositories.", - "file": "dataform/list_repositories.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_repositories", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_repositories", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListRepositoriesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListRepositoriesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListRepositories", - "full_name": "google.cloud.dataform.v1.Dataform.ListRepositories", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetRepository_sync", - "title": "Snippet for the get_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_repository.", - "file": "dataform/get_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetRepository", - "full_name": "google.cloud.dataform.v1.Dataform.GetRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateRepository_sync", - "title": "Snippet for the create_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_repository.", - "file": "dataform/create_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateRepository", - "full_name": "google.cloud.dataform.v1.Dataform.CreateRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateRepository_sync", - "title": "Snippet for the update_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_repository.", - "file": "dataform/update_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Repository", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateRepository", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteRepository_sync", - "title": "Snippet for the delete_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_repository.", - "file": "dataform/delete_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteRepository", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveRepository_sync", - "title": "Snippet for the move_repository call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_repository.", - "file": "dataform/move_repository.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_repository", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_repository", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveRepositoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveRepository", - "full_name": "google.cloud.dataform.v1.Dataform.MoveRepository", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_sync", - "title": "Snippet for the commit_repository_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes.", - "file": "dataform/commit_repository_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "commit_repository_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_repository_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CommitRepositoryChanges", - "full_name": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ReadRepositoryFile_sync", - "title": "Snippet for the read_repository_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file.", - "file": "dataform/read_repository_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "read_repository_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_repository_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ReadRepositoryFile", - "full_name": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_sync", - "title": "Snippet for the query_repository_directory_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents.", - "file": "dataform/query_repository_directory_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_repository_directory_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_repository_directory_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryRepositoryDirectoryContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchRepositoryHistory_sync", - "title": "Snippet for the fetch_repository_history call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history.", - "file": "dataform/fetch_repository_history.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_repository_history", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_repository_history", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchRepositoryHistory", - "full_name": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_sync", - "title": "Snippet for the compute_repository_access_token_status call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status.", - "file": "dataform/compute_repository_access_token_status.rb", - "language": "RUBY", - "client_method": { - "short_name": "compute_repository_access_token_status", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#compute_repository_access_token_status", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ComputeRepositoryAccessTokenStatus", - "full_name": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchRemoteBranches_sync", - "title": "Snippet for the fetch_remote_branches call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches.", - "file": "dataform/fetch_remote_branches.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_remote_branches", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_remote_branches", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchRemoteBranches", - "full_name": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkspaces_sync", - "title": "Snippet for the list_workspaces call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces.", - "file": "dataform/list_workspaces.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workspaces", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workspaces", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkspacesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkspacesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkspaces", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkspaces", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkspace_sync", - "title": "Snippet for the get_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workspace.", - "file": "dataform/get_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Workspace", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkspace_sync", - "title": "Snippet for the create_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workspace.", - "file": "dataform/create_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Workspace", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkspace_sync", - "title": "Snippet for the delete_workspace call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace.", - "file": "dataform/delete_workspace.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workspace", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workspace", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkspace", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_InstallNpmPackages_sync", - "title": "Snippet for the install_npm_packages call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages.", - "file": "dataform/install_npm_packages.rb", - "language": "RUBY", - "client_method": { - "short_name": "install_npm_packages", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#install_npm_packages", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "InstallNpmPackages", - "full_name": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_PullGitCommits_sync", - "title": "Snippet for the pull_git_commits call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits.", - "file": "dataform/pull_git_commits.rb", - "language": "RUBY", - "client_method": { - "short_name": "pull_git_commits", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#pull_git_commits", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::PullGitCommitsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::PullGitCommitsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "PullGitCommits", - "full_name": "google.cloud.dataform.v1.Dataform.PullGitCommits", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_PushGitCommits_sync", - "title": "Snippet for the push_git_commits call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits.", - "file": "dataform/push_git_commits.rb", - "language": "RUBY", - "client_method": { - "short_name": "push_git_commits", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#push_git_commits", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::PushGitCommitsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::PushGitCommitsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "PushGitCommits", - "full_name": "google.cloud.dataform.v1.Dataform.PushGitCommits", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchFileGitStatuses_sync", - "title": "Snippet for the fetch_file_git_statuses call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses.", - "file": "dataform/fetch_file_git_statuses.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_file_git_statuses", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_git_statuses", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchFileGitStatuses", - "full_name": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchGitAheadBehind_sync", - "title": "Snippet for the fetch_git_ahead_behind call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind.", - "file": "dataform/fetch_git_ahead_behind.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_git_ahead_behind", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_git_ahead_behind", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchGitAheadBehind", - "full_name": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CommitWorkspaceChanges_sync", - "title": "Snippet for the commit_workspace_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes.", - "file": "dataform/commit_workspace_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "commit_workspace_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#commit_workspace_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CommitWorkspaceChanges", - "full_name": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ResetWorkspaceChanges_sync", - "title": "Snippet for the reset_workspace_changes call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes.", - "file": "dataform/reset_workspace_changes.rb", - "language": "RUBY", - "client_method": { - "short_name": "reset_workspace_changes", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#reset_workspace_changes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ResetWorkspaceChanges", - "full_name": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_FetchFileDiff_sync", - "title": "Snippet for the fetch_file_diff call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff.", - "file": "dataform/fetch_file_diff.rb", - "language": "RUBY", - "client_method": { - "short_name": "fetch_file_diff", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#fetch_file_diff", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::FetchFileDiffRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::FetchFileDiffResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "FetchFileDiff", - "full_name": "google.cloud.dataform.v1.Dataform.FetchFileDiff", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryDirectoryContents_sync", - "title": "Snippet for the query_directory_contents call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents.", - "file": "dataform/query_directory_contents.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_directory_contents", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_directory_contents", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryDirectoryContents", - "full_name": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SearchFiles_sync", - "title": "Snippet for the search_files call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#search_files.", - "file": "dataform/search_files.rb", - "language": "RUBY", - "client_method": { - "short_name": "search_files", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#search_files", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::SearchFilesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::SearchFilesResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SearchFiles", - "full_name": "google.cloud.dataform.v1.Dataform.SearchFiles", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MakeDirectory_sync", - "title": "Snippet for the make_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#make_directory.", - "file": "dataform/make_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "make_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#make_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MakeDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MakeDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MakeDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.MakeDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_RemoveDirectory_sync", - "title": "Snippet for the remove_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_directory.", - "file": "dataform/remove_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "remove_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::RemoveDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::RemoveDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "RemoveDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.RemoveDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveDirectory_sync", - "title": "Snippet for the move_directory call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_directory.", - "file": "dataform/move_directory.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_directory", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_directory", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveDirectoryRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MoveDirectoryResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveDirectory", - "full_name": "google.cloud.dataform.v1.Dataform.MoveDirectory", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ReadFile_sync", - "title": "Snippet for the read_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#read_file.", - "file": "dataform/read_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "read_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#read_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ReadFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReadFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ReadFile", - "full_name": "google.cloud.dataform.v1.Dataform.ReadFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_RemoveFile_sync", - "title": "Snippet for the remove_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#remove_file.", - "file": "dataform/remove_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "remove_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#remove_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::RemoveFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::RemoveFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "RemoveFile", - "full_name": "google.cloud.dataform.v1.Dataform.RemoveFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_MoveFile_sync", - "title": "Snippet for the move_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#move_file.", - "file": "dataform/move_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "move_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#move_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::MoveFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::MoveFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "MoveFile", - "full_name": "google.cloud.dataform.v1.Dataform.MoveFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_WriteFile_sync", - "title": "Snippet for the write_file call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#write_file.", - "file": "dataform/write_file.rb", - "language": "RUBY", - "client_method": { - "short_name": "write_file", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#write_file", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::WriteFileRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WriteFileResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "WriteFile", - "full_name": "google.cloud.dataform.v1.Dataform.WriteFile", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListReleaseConfigs_sync", - "title": "Snippet for the list_release_configs call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs.", - "file": "dataform/list_release_configs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_release_configs", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_release_configs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListReleaseConfigs", - "full_name": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetReleaseConfig_sync", - "title": "Snippet for the get_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_release_config.", - "file": "dataform/get_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateReleaseConfig_sync", - "title": "Snippet for the create_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_release_config.", - "file": "dataform/create_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateReleaseConfig_sync", - "title": "Snippet for the update_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_release_config.", - "file": "dataform/update_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ReleaseConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteReleaseConfig_sync", - "title": "Snippet for the delete_release_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config.", - "file": "dataform/delete_release_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_release_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_release_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteReleaseConfig", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListCompilationResults_sync", - "title": "Snippet for the list_compilation_results call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results.", - "file": "dataform/list_compilation_results.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_compilation_results", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_compilation_results", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListCompilationResultsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListCompilationResultsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListCompilationResults", - "full_name": "google.cloud.dataform.v1.Dataform.ListCompilationResults", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetCompilationResult_sync", - "title": "Snippet for the get_compilation_result call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result.", - "file": "dataform/get_compilation_result.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_compilation_result", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_compilation_result", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetCompilationResultRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetCompilationResult", - "full_name": "google.cloud.dataform.v1.Dataform.GetCompilationResult", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateCompilationResult_sync", - "title": "Snippet for the create_compilation_result call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result.", - "file": "dataform/create_compilation_result.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_compilation_result", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_compilation_result", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateCompilationResultRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CompilationResult", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateCompilationResult", - "full_name": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryCompilationResultActions_sync", - "title": "Snippet for the query_compilation_result_actions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions.", - "file": "dataform/query_compilation_result_actions.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_compilation_result_actions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_compilation_result_actions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryCompilationResultActions", - "full_name": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkflowConfigs_sync", - "title": "Snippet for the list_workflow_configs call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs.", - "file": "dataform/list_workflow_configs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workflow_configs", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_configs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkflowConfigs", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkflowConfig_sync", - "title": "Snippet for the get_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config.", - "file": "dataform/get_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowConfig_sync", - "title": "Snippet for the create_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config.", - "file": "dataform/create_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateWorkflowConfig_sync", - "title": "Snippet for the update_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config.", - "file": "dataform/update_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowConfig", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowConfig_sync", - "title": "Snippet for the delete_workflow_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config.", - "file": "dataform/delete_workflow_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workflow_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkflowConfig", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_ListWorkflowInvocations_sync", - "title": "Snippet for the list_workflow_invocations call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations.", - "file": "dataform/list_workflow_invocations.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_workflow_invocations", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#list_workflow_invocations", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "ListWorkflowInvocations", - "full_name": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetWorkflowInvocation_sync", - "title": "Snippet for the get_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation.", - "file": "dataform/get_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CreateWorkflowInvocation_sync", - "title": "Snippet for the create_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation.", - "file": "dataform/create_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#create_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::WorkflowInvocation", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CreateWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_DeleteWorkflowInvocation_sync", - "title": "Snippet for the delete_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation.", - "file": "dataform/delete_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#delete_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "DeleteWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_CancelWorkflowInvocation_sync", - "title": "Snippet for the cancel_workflow_invocation call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation.", - "file": "dataform/cancel_workflow_invocation.rb", - "language": "RUBY", - "client_method": { - "short_name": "cancel_workflow_invocation", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#cancel_workflow_invocation", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "CancelWorkflowInvocation", - "full_name": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_sync", - "title": "Snippet for the query_workflow_invocation_actions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions.", - "file": "dataform/query_workflow_invocation_actions.rb", - "language": "RUBY", - "client_method": { - "short_name": "query_workflow_invocation_actions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#query_workflow_invocation_actions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "QueryWorkflowInvocationActions", - "full_name": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetConfig_sync", - "title": "Snippet for the get_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_config.", - "file": "dataform/get_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::GetConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Config", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetConfig", - "full_name": "google.cloud.dataform.v1.Dataform.GetConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_UpdateConfig_sync", - "title": "Snippet for the update_config call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#update_config.", - "file": "dataform/update_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_config", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#update_config", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataform::V1::UpdateConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataform::V1::Config", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "UpdateConfig", - "full_name": "google.cloud.dataform.v1.Dataform.UpdateConfig", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_GetIamPolicy_sync", - "title": "Snippet for the get_iam_policy call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy.", - "file": "dataform/get_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_iam_policy", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#get_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::GetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "GetIamPolicy", - "full_name": "google.cloud.dataform.v1.Dataform.GetIamPolicy", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_SetIamPolicy_sync", - "title": "Snippet for the set_iam_policy call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy.", - "file": "dataform/set_iam_policy.rb", - "language": "RUBY", - "client_method": { - "short_name": "set_iam_policy", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#set_iam_policy", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::SetIamPolicyRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::Policy", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "SetIamPolicy", - "full_name": "google.cloud.dataform.v1.Dataform.SetIamPolicy", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Dataform_TestIamPermissions_sync", - "title": "Snippet for the test_iam_permissions call in the Dataform service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions.", - "file": "dataform/test_iam_permissions.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_iam_permissions", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client#test_iam_permissions", - "async": false, - "parameters": [ - { - "type": "::Google::Iam::V1::TestIamPermissionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Iam::V1::TestIamPermissionsResponse", - "client": { - "short_name": "Dataform::Client", - "full_name": "::Google::Cloud::Dataform::V1::Dataform::Client" - }, - "method": { - "short_name": "TestIamPermissions", - "full_name": "google.cloud.dataform.v1.Dataform.TestIamPermissions", - "service": { - "short_name": "Dataform", - "full_name": "google.cloud.dataform.v1.Dataform" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json b/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json deleted file mode 100644 index ae5311ef4402..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/snippets/snippet_metadata_google.longrunning.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-dataform-v1", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.longrunning", - "version": "longrunning" - } - ] - }, - "snippets": [ - { - "region_tag": "dataform_v1_generated_Operations_ListOperations_sync", - "title": "Snippet for the list_operations call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#list_operations.", - "file": "operations/list_operations.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_operations", - "full_name": "::Google::Longrunning::Operations::Client#list_operations", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::ListOperationsRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::ListOperationsResponse", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "ListOperations", - "full_name": "google.longrunning.Operations.ListOperations", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_GetOperation_sync", - "title": "Snippet for the get_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#get_operation.", - "file": "operations/get_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_operation", - "full_name": "::Google::Longrunning::Operations::Client#get_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::GetOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "GetOperation", - "full_name": "google.longrunning.Operations.GetOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_DeleteOperation_sync", - "title": "Snippet for the delete_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#delete_operation.", - "file": "operations/delete_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_operation", - "full_name": "::Google::Longrunning::Operations::Client#delete_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::DeleteOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "DeleteOperation", - "full_name": "google.longrunning.Operations.DeleteOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_CancelOperation_sync", - "title": "Snippet for the cancel_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#cancel_operation.", - "file": "operations/cancel_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "cancel_operation", - "full_name": "::Google::Longrunning::Operations::Client#cancel_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::CancelOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "CancelOperation", - "full_name": "google.longrunning.Operations.CancelOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataform_v1_generated_Operations_WaitOperation_sync", - "title": "Snippet for the wait_operation call in the Operations service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Longrunning::Operations::Client#wait_operation.", - "file": "operations/wait_operation.rb", - "language": "RUBY", - "client_method": { - "short_name": "wait_operation", - "full_name": "::Google::Longrunning::Operations::Client#wait_operation", - "async": false, - "parameters": [ - { - "type": "::Google::Longrunning::WaitOperationRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "Operations::Client", - "full_name": "::Google::Longrunning::Operations::Client" - }, - "method": { - "short_name": "WaitOperation", - "full_name": "google.longrunning.Operations.WaitOperation", - "service": { - "short_name": "Operations", - "full_name": "google.longrunning.Operations" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb deleted file mode 100644 index 98458c3d1dbd..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform_services_pb" -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb deleted file mode 100644 index 1843f1d3cb44..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_paths_test.rb +++ /dev/null @@ -1,211 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_compilation_result_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.compilation_result_path project: "value0", location: "value1", repository: "value2", compilation_result: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/compilationResults/value3", path - end - end - - def test_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.config_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1/config", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_crypto_key_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_version_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3", crypto_key_version: "value4" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3/cryptoKeyVersions/value4", path - end - end - - def test_folder_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.folder_path project: "value0", location: "value1", folder: "value2" - assert_equal "projects/value0/locations/value1/folders/value2", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_notebook_runtime_template_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.notebook_runtime_template_path project: "value0", location: "value1", notebook_runtime_template: "value2" - assert_equal "projects/value0/locations/value1/notebookRuntimeTemplates/value2", path - end - end - - def test_release_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.release_config_path project: "value0", location: "value1", repository: "value2", release_config: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/releaseConfigs/value3", path - end - end - - def test_repository_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.repository_path project: "value0", location: "value1", repository: "value2" - assert_equal "projects/value0/locations/value1/repositories/value2", path - end - end - - def test_secret_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.secret_version_path project: "value0", secret: "value1", version: "value2" - assert_equal "projects/value0/secrets/value1/versions/value2", path - end - end - - def test_team_folder_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.team_folder_path project: "value0", location: "value1", team_folder: "value2" - assert_equal "projects/value0/locations/value1/teamFolders/value2", path - end - end - - def test_workflow_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workflow_config_path project: "value0", location: "value1", repository: "value2", workflow_config: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workflowConfigs/value3", path - end - end - - def test_workflow_invocation_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workflow_invocation_path project: "value0", location: "value1", repository: "value2", workflow_invocation: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workflowInvocations/value3", path - end - end - - def test_workspace_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.workspace_path project: "value0", location: "value1", repository: "value2", workspace: "value3" - assert_equal "projects/value0/locations/value1/repositories/value2/workspaces/value3", path - end - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb deleted file mode 100644 index 07fde9553884..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_rest_test.rb +++ /dev/null @@ -1,4148 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform/rest" - - -class ::Google::Cloud::Dataform::V1::Dataform::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_team_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_team_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_team_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_team_folder_client_stub.call_count - end - end - end - - def test_create_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - team_folder = {} - - create_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_team_folder({ parent: parent, team_folder: team_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_team_folder parent: parent, team_folder: team_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_team_folder({ parent: parent, team_folder: team_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_team_folder_client_stub.call_count - end - end - end - - def test_update_team_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::TeamFolder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - team_folder = {} - - update_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_team_folder update_mask: update_mask, team_folder: team_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_team_folder_client_stub.call_count - end - end - end - - def test_delete_team_folder - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_team_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_team_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_team_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_team_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_team_folder_client_stub.call_count - end - end - end - - def test_delete_team_folder_tree - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_team_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_team_folder_tree_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_team_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_team_folder_tree({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_team_folder_tree name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_team_folder_tree({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_team_folder_tree_client_stub.call_count - end - end - end - - def test_query_team_folder_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - team_folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_team_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_team_folder_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_team_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_team_folder_contents_client_stub.call_count - end - end - end - - def test_search_team_folders - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - search_team_folders_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_team_folders_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, search_team_folders_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, search_team_folders_client_stub.call_count - end - end - end - - def test_get_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_folder_client_stub.call_count - end - end - end - - def test_create_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - folder = {} - - create_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_folder({ parent: parent, folder: folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_folder parent: parent, folder: folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_folder({ parent: parent, folder: folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_folder_client_stub.call_count - end - end - end - - def test_update_folder - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Folder.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - folder = {} - - update_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_folder({ update_mask: update_mask, folder: folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_folder update_mask: update_mask, folder: folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_folder({ update_mask: update_mask, folder: folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_folder_client_stub.call_count - end - end - end - - def test_delete_folder - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_folder({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_folder name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_folder({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_folder_client_stub.call_count - end - end - end - - def test_delete_folder_tree - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_folder_tree_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_folder_tree_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_folder_tree({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_folder_tree name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_folder_tree({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_folder_tree_client_stub.call_count - end - end - end - - def test_query_folder_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_folder_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_folder_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_folder_contents_client_stub.call_count - end - end - end - - def test_query_user_root_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_user_root_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_user_root_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_user_root_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_user_root_contents_client_stub.call_count - end - end - end - - def test_move_folder - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_folder_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_folder_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_folder name: name, destination_containing_folder: destination_containing_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_folder_client_stub.call_count - end - end - end - - def test_list_repositories - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_repositories_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_repositories_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_repositories_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_repositories_client_stub.call_count - end - end - end - - def test_get_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_repository({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_repository name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_repository({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_repository_client_stub.call_count - end - end - end - - def test_create_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - repository = {} - repository_id = "hello world" - - create_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_repository parent: parent, repository: repository, repository_id: repository_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_repository_client_stub.call_count - end - end - end - - def test_update_repository - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Repository.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - repository = {} - - update_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_repository({ update_mask: update_mask, repository: repository }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_repository update_mask: update_mask, repository: repository do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_repository({ update_mask: update_mask, repository: repository }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_repository_client_stub.call_count - end - end - end - - def test_delete_repository - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_repository({ name: name, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_repository name: name, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_repository({ name: name, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_repository_client_stub.call_count - end - end - end - - def test_move_repository - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_repository_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_repository_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_repository name: name, destination_containing_folder: destination_containing_folder do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_repository_client_stub.call_count - end - end - end - - def test_commit_repository_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_metadata = {} - required_head_commit_sha = "hello world" - file_operations = {} - - commit_repository_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_repository_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, commit_repository_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, commit_repository_changes_client_stub.call_count - end - end - end - - def test_read_repository_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - - read_repository_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_repository_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, read_repository_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.read_repository_file name: name, commit_sha: commit_sha, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, read_repository_file_client_stub.call_count - end - end - end - - def test_query_repository_directory_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - - query_repository_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_repository_directory_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_repository_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_repository_directory_contents_client_stub.call_count - end - end - end - - def test_fetch_repository_history - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - fetch_repository_history_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_repository_history_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_repository_history_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_repository_history_client_stub.call_count - end - end - end - - def test_compute_repository_access_token_status - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - compute_repository_access_token_status_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_compute_repository_access_token_status_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, compute_repository_access_token_status_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.compute_repository_access_token_status({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.compute_repository_access_token_status name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.compute_repository_access_token_status({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, compute_repository_access_token_status_client_stub.call_count - end - end - end - - def test_fetch_remote_branches - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_remote_branches_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_remote_branches_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_remote_branches_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_remote_branches({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_remote_branches name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_remote_branches({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_remote_branches_client_stub.call_count - end - end - end - - def test_list_workspaces - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workspaces_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workspaces_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workspaces_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workspaces_client_stub.call_count - end - end - end - - def test_get_workspace - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Workspace.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workspace({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workspace name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workspace({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workspace_client_stub.call_count - end - end - end - - def test_create_workspace - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Workspace.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workspace = {} - workspace_id = "hello world" - - create_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workspace_client_stub.call_count - end - end - end - - def test_delete_workspace - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workspace_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workspace_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workspace({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workspace name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workspace({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workspace_client_stub.call_count - end - end - end - - def test_install_npm_packages - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - - install_npm_packages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_install_npm_packages_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, install_npm_packages_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.install_npm_packages({ workspace: workspace }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.install_npm_packages workspace: workspace do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.install_npm_packages({ workspace: workspace }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, install_npm_packages_client_stub.call_count - end - end - end - - def test_pull_git_commits - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - author = {} - - pull_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_pull_git_commits_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, pull_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, pull_git_commits_client_stub.call_count - end - end - end - - def test_push_git_commits - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - push_git_commits_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_push_git_commits_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, push_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.push_git_commits({ name: name, remote_branch: remote_branch }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.push_git_commits name: name, remote_branch: remote_branch do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.push_git_commits({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, push_git_commits_client_stub.call_count - end - end - end - - def test_fetch_file_git_statuses - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_file_git_statuses_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_git_statuses_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_file_git_statuses_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_file_git_statuses({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_file_git_statuses name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_file_git_statuses({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_file_git_statuses_client_stub.call_count - end - end - end - - def test_fetch_git_ahead_behind - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - fetch_git_ahead_behind_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_git_ahead_behind_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_git_ahead_behind_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_git_ahead_behind_client_stub.call_count - end - end - end - - def test_commit_workspace_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - author = {} - commit_message = "hello world" - paths = ["hello world"] - - commit_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_commit_workspace_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, commit_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, commit_workspace_changes_client_stub.call_count - end - end - end - - def test_reset_workspace_changes - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - paths = ["hello world"] - clean = true - - reset_workspace_changes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_reset_workspace_changes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, reset_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.reset_workspace_changes name: name, paths: paths, clean: clean do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, reset_workspace_changes_client_stub.call_count - end - end - end - - def test_fetch_file_diff - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - fetch_file_diff_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_fetch_file_diff_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, fetch_file_diff_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.fetch_file_diff({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.fetch_file_diff workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.fetch_file_diff({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, fetch_file_diff_client_stub.call_count - end - end - end - - def test_query_directory_contents - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED - - query_directory_contents_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_directory_contents_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_directory_contents_client_stub.call_count - end - end - end - - def test_search_files - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - search_files_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_search_files_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, search_files_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, search_files_client_stub.call_count - end - end - end - - def test_make_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - make_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_make_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, make_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.make_directory({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.make_directory workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.make_directory({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, make_directory_client_stub.call_count - end - end - end - - def test_remove_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, remove_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.remove_directory({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.remove_directory workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.remove_directory({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, remove_directory_client_stub.call_count - end - end - end - - def test_move_directory - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_directory_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_directory_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_directory workspace: workspace, path: path, new_path: new_path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_directory({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_directory_client_stub.call_count - end - end - end - - def test_read_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReadFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - revision = "hello world" - - read_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_read_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, read_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.read_file({ workspace: workspace, path: path, revision: revision }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.read_file workspace: workspace, path: path, revision: revision do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.read_file({ workspace: workspace, path: path, revision: revision }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, read_file_client_stub.call_count - end - end - end - - def test_remove_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_remove_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, remove_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.remove_file({ workspace: workspace, path: path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.remove_file workspace: workspace, path: path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.remove_file({ workspace: workspace, path: path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, remove_file_client_stub.call_count - end - end - end - - def test_move_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::MoveFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_move_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, move_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.move_file workspace: workspace, path: path, new_path: new_path do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.move_file({ workspace: workspace, path: path, new_path: new_path }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, move_file_client_stub.call_count - end - end - end - - def test_write_file - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WriteFileResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - contents = "hello world" - - write_file_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_write_file_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, write_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.write_file({ workspace: workspace, path: path, contents: contents }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.write_file workspace: workspace, path: path, contents: contents do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.write_file({ workspace: workspace, path: path, contents: contents }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, write_file_client_stub.call_count - end - end - end - - def test_list_release_configs - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_release_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_release_configs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_release_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_release_configs_client_stub.call_count - end - end - end - - def test_get_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_release_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_release_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_release_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_release_config_client_stub.call_count - end - end - end - - def test_create_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_config = {} - release_config_id = "hello world" - - create_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_release_config_client_stub.call_count - end - end - end - - def test_update_release_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - release_config = {} - - update_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_release_config update_mask: update_mask, release_config: release_config do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_release_config({ update_mask: update_mask, release_config: release_config }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_release_config_client_stub.call_count - end - end - end - - def test_delete_release_config - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_release_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_release_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_release_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_release_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_release_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_release_config_client_stub.call_count - end - end - end - - def test_list_compilation_results - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_compilation_results_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_compilation_results_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_compilation_results_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_compilation_results_client_stub.call_count - end - end - end - - def test_get_compilation_result - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_compilation_result_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_compilation_result({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_compilation_result name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_compilation_result({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_compilation_result_client_stub.call_count - end - end - end - - def test_create_compilation_result - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CompilationResult.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - compilation_result = {} - - create_compilation_result_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_compilation_result_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_compilation_result parent: parent, compilation_result: compilation_result do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_compilation_result_client_stub.call_count - end - end - end - - def test_query_compilation_result_actions - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - query_compilation_result_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_compilation_result_actions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_compilation_result_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_compilation_result_actions_client_stub.call_count - end - end - end - - def test_list_workflow_configs - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_workflow_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_configs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workflow_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workflow_configs_client_stub.call_count - end - end - end - - def test_get_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workflow_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workflow_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workflow_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workflow_config_client_stub.call_count - end - end - end - - def test_create_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_config = {} - workflow_config_id = "hello world" - - create_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workflow_config_client_stub.call_count - end - end - end - - def test_update_workflow_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - workflow_config = {} - - update_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_workflow_config_client_stub.call_count - end - end - end - - def test_delete_workflow_config - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workflow_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workflow_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workflow_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workflow_config_client_stub.call_count - end - end - end - - def test_list_workflow_invocations - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workflow_invocations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_list_workflow_invocations_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_workflow_invocations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_workflow_invocations_client_stub.call_count - end - end - end - - def test_get_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_workflow_invocation_client_stub.call_count - end - end - end - - def test_create_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_invocation = {} - - create_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_create_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_workflow_invocation_client_stub.call_count - end - end - end - - def test_delete_workflow_invocation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_delete_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_workflow_invocation_client_stub.call_count - end - end - end - - def test_cancel_workflow_invocation - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_workflow_invocation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_cancel_workflow_invocation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, cancel_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.cancel_workflow_invocation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.cancel_workflow_invocation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.cancel_workflow_invocation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, cancel_workflow_invocation_client_stub.call_count - end - end - end - - def test_query_workflow_invocation_actions - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - query_workflow_invocation_actions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_query_workflow_invocation_actions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, query_workflow_invocation_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, query_workflow_invocation_actions_client_stub.call_count - end - end - end - - def test_get_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Config.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_config_client_stub.call_count - end - end - end - - def test_update_config - # Create test objects. - client_result = ::Google::Cloud::Dataform::V1::Config.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - config = {} - update_mask = {} - - update_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_update_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_config({ config: config, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_config config: config, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_config({ config: config, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_config_client_stub.call_count - end - end - end - - def test_get_iam_policy - # Create test objects. - client_result = ::Google::Iam::V1::Policy.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_get_iam_policy_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_count - end - end - end - - def test_set_iam_policy - # Create test objects. - client_result = ::Google::Iam::V1::Policy.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_set_iam_policy_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_count - end - end - end - - def test_test_iam_permissions - # Create test objects. - client_result = ::Google::Iam::V1::TestIamPermissionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataform::V1::Dataform::Rest::ServiceStub.stub :transcode_test_iam_permissions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb deleted file mode 100644 index 83dcd399b121..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/cloud/dataform/v1/dataform_test.rb +++ /dev/null @@ -1,4668 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/dataform/v1/dataform_pb" -require "google/cloud/dataform/v1/dataform" - -class ::Google::Cloud::Dataform::V1::Dataform::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetTeamFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_team_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_team_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_team_folder ::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_team_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_team_folder(::Google::Cloud::Dataform::V1::GetTeamFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_team_folder_client_stub.call_rpc_count - end - end - - def test_create_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - team_folder = {} - - create_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_team_folder({ parent: parent, team_folder: team_folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_team_folder parent: parent, team_folder: team_folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_team_folder ::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_team_folder({ parent: parent, team_folder: team_folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_team_folder(::Google::Cloud::Dataform::V1::CreateTeamFolderRequest.new(parent: parent, team_folder: team_folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_team_folder_client_stub.call_rpc_count - end - end - - def test_update_team_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::TeamFolder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - team_folder = {} - - update_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::TeamFolder), request["team_folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_team_folder update_mask: update_mask, team_folder: team_folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_team_folder ::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_team_folder({ update_mask: update_mask, team_folder: team_folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_team_folder(::Google::Cloud::Dataform::V1::UpdateTeamFolderRequest.new(update_mask: update_mask, team_folder: team_folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_team_folder_client_stub.call_rpc_count - end - end - - def test_delete_team_folder - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_team_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_team_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_team_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_team_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_team_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_team_folder ::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_team_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_team_folder(::Google::Cloud::Dataform::V1::DeleteTeamFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_team_folder_client_stub.call_rpc_count - end - end - - def test_delete_team_folder_tree - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_team_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_team_folder_tree, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_team_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_team_folder_tree({ name: name, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_team_folder_tree name: name, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_team_folder_tree ::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_team_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_team_folder_tree(::Google::Cloud::Dataform::V1::DeleteTeamFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_team_folder_tree_client_stub.call_rpc_count - end - end - - def test_query_team_folder_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - team_folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_team_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_team_folder_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest, request - assert_equal "hello world", request["team_folder"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_team_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_team_folder_contents team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_team_folder_contents ::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_team_folder_contents({ team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_team_folder_contents(::Google::Cloud::Dataform::V1::QueryTeamFolderContentsRequest.new(team_folder: team_folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_team_folder_contents_client_stub.call_rpc_count - end - end - - def test_search_team_folders - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::SearchTeamFoldersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - search_team_folders_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :search_team_folders, name - assert_kind_of ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest, request - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, search_team_folders_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.search_team_folders location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.search_team_folders ::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.search_team_folders({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.search_team_folders(::Google::Cloud::Dataform::V1::SearchTeamFoldersRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, search_team_folders_client_stub.call_rpc_count - end - end - - def test_get_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_folder ::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_folder(::Google::Cloud::Dataform::V1::GetFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_folder_client_stub.call_rpc_count - end - end - - def test_create_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - folder = {} - - create_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateFolderRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_folder({ parent: parent, folder: folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_folder parent: parent, folder: folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_folder ::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_folder({ parent: parent, folder: folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_folder(::Google::Cloud::Dataform::V1::CreateFolderRequest.new(parent: parent, folder: folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_folder_client_stub.call_rpc_count - end - end - - def test_update_folder - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Folder.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - folder = {} - - update_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateFolderRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Folder), request["folder"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_folder({ update_mask: update_mask, folder: folder }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_folder update_mask: update_mask, folder: folder do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_folder ::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_folder({ update_mask: update_mask, folder: folder }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_folder(::Google::Cloud::Dataform::V1::UpdateFolderRequest.new(update_mask: update_mask, folder: folder), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_folder_client_stub.call_rpc_count - end - end - - def test_delete_folder - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_folder({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_folder name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_folder ::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_folder({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_folder(::Google::Cloud::Dataform::V1::DeleteFolderRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_folder_client_stub.call_rpc_count - end - end - - def test_delete_folder_tree - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_folder_tree_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_folder_tree, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_folder_tree_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_folder_tree({ name: name, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_folder_tree name: name, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_folder_tree ::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_folder_tree({ name: name, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_folder_tree(::Google::Cloud::Dataform::V1::DeleteFolderTreeRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_folder_tree_client_stub.call_rpc_count - end - end - - def test_query_folder_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryFolderContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - folder = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_folder_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_folder_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest, request - assert_equal "hello world", request["folder"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_folder_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_folder_contents folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_folder_contents ::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_folder_contents({ folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_folder_contents(::Google::Cloud::Dataform::V1::QueryFolderContentsRequest.new(folder: folder, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_folder_contents_client_stub.call_rpc_count - end - end - - def test_query_user_root_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryUserRootContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - location = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - query_user_root_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_user_root_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest, request - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_user_root_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_user_root_contents location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_user_root_contents ::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_user_root_contents({ location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_user_root_contents(::Google::Cloud::Dataform::V1::QueryUserRootContentsRequest.new(location: location, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_user_root_contents_client_stub.call_rpc_count - end - end - - def test_move_folder - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_folder_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_folder, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveFolderRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["destination_containing_folder"] - assert request.has_destination_containing_folder? - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_folder_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_folder name: name, destination_containing_folder: destination_containing_folder do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_folder ::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_folder({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_folder(::Google::Cloud::Dataform::V1::MoveFolderRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_folder_client_stub.call_rpc_count - end - end - - def test_list_repositories - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_repositories_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_repositories, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListRepositoriesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_repositories_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_repositories parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_repositories ::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_repositories({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_repositories(::Google::Cloud::Dataform::V1::ListRepositoriesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_repositories_client_stub.call_rpc_count - end - end - - def test_get_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetRepositoryRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_repository({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_repository name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_repository ::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_repository({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_repository(::Google::Cloud::Dataform::V1::GetRepositoryRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_repository_client_stub.call_rpc_count - end - end - - def test_create_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - repository = {} - repository_id = "hello world" - - create_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateRepositoryRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] - assert_equal "hello world", request["repository_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_repository parent: parent, repository: repository, repository_id: repository_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_repository ::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_repository({ parent: parent, repository: repository, repository_id: repository_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_repository(::Google::Cloud::Dataform::V1::CreateRepositoryRequest.new(parent: parent, repository: repository, repository_id: repository_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_repository_client_stub.call_rpc_count - end - end - - def test_update_repository - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Repository.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - repository = {} - - update_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Repository), request["repository"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_repository({ update_mask: update_mask, repository: repository }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_repository update_mask: update_mask, repository: repository do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_repository ::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_repository({ update_mask: update_mask, repository: repository }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_repository(::Google::Cloud::Dataform::V1::UpdateRepositoryRequest.new(update_mask: update_mask, repository: repository), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_repository_client_stub.call_rpc_count - end - end - - def test_delete_repository - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - force = true - - delete_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest, request - assert_equal "hello world", request["name"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_repository({ name: name, force: force }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_repository name: name, force: force do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_repository ::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_repository({ name: name, force: force }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_repository(::Google::Cloud::Dataform::V1::DeleteRepositoryRequest.new(name: name, force: force), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_repository_client_stub.call_rpc_count - end - end - - def test_move_repository - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - destination_containing_folder = "hello world" - - move_repository_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_repository, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveRepositoryRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["destination_containing_folder"] - assert request.has_destination_containing_folder? - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_repository_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_repository name: name, destination_containing_folder: destination_containing_folder do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_repository ::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_repository({ name: name, destination_containing_folder: destination_containing_folder }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_repository(::Google::Cloud::Dataform::V1::MoveRepositoryRequest.new(name: name, destination_containing_folder: destination_containing_folder), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_repository_client_stub.call_rpc_count - end - end - - def test_commit_repository_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_metadata = {} - required_head_commit_sha = "hello world" - file_operations = {} - - commit_repository_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :commit_repository_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitMetadata), request["commit_metadata"] - assert_equal "hello world", request["required_head_commit_sha"] - assert_equal({}, request["file_operations"].to_h) - refute_nil options - end - - Gapic::ServiceStub.stub :new, commit_repository_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.commit_repository_changes name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.commit_repository_changes ::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.commit_repository_changes({ name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.commit_repository_changes(::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest.new(name: name, commit_metadata: commit_metadata, required_head_commit_sha: required_head_commit_sha, file_operations: file_operations), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, commit_repository_changes_client_stub.call_rpc_count - end - end - - def test_read_repository_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - - read_repository_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :read_repository_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["commit_sha"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, read_repository_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.read_repository_file name: name, commit_sha: commit_sha, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.read_repository_file ::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.read_repository_file({ name: name, commit_sha: commit_sha, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.read_repository_file(::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest.new(name: name, commit_sha: commit_sha, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, read_repository_file_client_stub.call_rpc_count - end - end - - def test_query_repository_directory_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - commit_sha = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - - query_repository_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_repository_directory_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["commit_sha"] - assert_equal "hello world", request["path"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_repository_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_repository_directory_contents name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_repository_directory_contents ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_repository_directory_contents({ name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_repository_directory_contents(::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest.new(name: name, commit_sha: commit_sha, path: path, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_repository_directory_contents_client_stub.call_rpc_count - end - end - - def test_fetch_repository_history - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - fetch_repository_history_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_repository_history, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_repository_history_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_repository_history name: name, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_repository_history ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_repository_history({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_repository_history(::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_repository_history_client_stub.call_rpc_count - end - end - - def test_compute_repository_access_token_status - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - compute_repository_access_token_status_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :compute_repository_access_token_status, name - assert_kind_of ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, compute_repository_access_token_status_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.compute_repository_access_token_status({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.compute_repository_access_token_status name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.compute_repository_access_token_status ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.compute_repository_access_token_status({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.compute_repository_access_token_status(::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, compute_repository_access_token_status_client_stub.call_rpc_count - end - end - - def test_fetch_remote_branches - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_remote_branches_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_remote_branches, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_remote_branches_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_remote_branches({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_remote_branches name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_remote_branches ::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_remote_branches({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_remote_branches(::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_remote_branches_client_stub.call_rpc_count - end - end - - def test_list_workspaces - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workspaces_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workspaces, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkspacesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workspaces_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workspaces parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workspaces ::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workspaces({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workspaces(::Google::Cloud::Dataform::V1::ListWorkspacesRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workspaces_client_stub.call_rpc_count - end - end - - def test_get_workspace - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkspaceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workspace({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workspace name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workspace ::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workspace({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workspace(::Google::Cloud::Dataform::V1::GetWorkspaceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workspace_client_stub.call_rpc_count - end - end - - def test_create_workspace - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Workspace.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workspace = {} - workspace_id = "hello world" - - create_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Workspace), request["workspace"] - assert_equal "hello world", request["workspace_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workspace parent: parent, workspace: workspace, workspace_id: workspace_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workspace ::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workspace({ parent: parent, workspace: workspace, workspace_id: workspace_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workspace(::Google::Cloud::Dataform::V1::CreateWorkspaceRequest.new(parent: parent, workspace: workspace, workspace_id: workspace_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workspace_client_stub.call_rpc_count - end - end - - def test_delete_workspace - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workspace_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workspace, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workspace_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workspace({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workspace name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workspace ::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workspace({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workspace(::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workspace_client_stub.call_rpc_count - end - end - - def test_install_npm_packages - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - - install_npm_packages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :install_npm_packages, name - assert_kind_of ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest, request - assert_equal "hello world", request["workspace"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, install_npm_packages_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.install_npm_packages({ workspace: workspace }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.install_npm_packages workspace: workspace do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.install_npm_packages ::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.install_npm_packages({ workspace: workspace }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.install_npm_packages(::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest.new(workspace: workspace), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, install_npm_packages_client_stub.call_rpc_count - end - end - - def test_pull_git_commits - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - author = {} - - pull_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :pull_git_commits, name - assert_kind_of ::Google::Cloud::Dataform::V1::PullGitCommitsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, pull_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.pull_git_commits name: name, remote_branch: remote_branch, author: author do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.pull_git_commits ::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.pull_git_commits({ name: name, remote_branch: remote_branch, author: author }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.pull_git_commits(::Google::Cloud::Dataform::V1::PullGitCommitsRequest.new(name: name, remote_branch: remote_branch, author: author), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, pull_git_commits_client_stub.call_rpc_count - end - end - - def test_push_git_commits - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - push_git_commits_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :push_git_commits, name - assert_kind_of ::Google::Cloud::Dataform::V1::PushGitCommitsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, push_git_commits_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.push_git_commits({ name: name, remote_branch: remote_branch }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.push_git_commits name: name, remote_branch: remote_branch do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.push_git_commits ::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.push_git_commits({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.push_git_commits(::Google::Cloud::Dataform::V1::PushGitCommitsRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, push_git_commits_client_stub.call_rpc_count - end - end - - def test_fetch_file_git_statuses - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - fetch_file_git_statuses_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_file_git_statuses, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_file_git_statuses_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_file_git_statuses({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_file_git_statuses name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_file_git_statuses ::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_file_git_statuses({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_file_git_statuses(::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_file_git_statuses_client_stub.call_rpc_count - end - end - - def test_fetch_git_ahead_behind - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - remote_branch = "hello world" - - fetch_git_ahead_behind_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_git_ahead_behind, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["remote_branch"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_git_ahead_behind_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_git_ahead_behind name: name, remote_branch: remote_branch do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_git_ahead_behind ::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_git_ahead_behind({ name: name, remote_branch: remote_branch }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_git_ahead_behind(::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest.new(name: name, remote_branch: remote_branch), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_git_ahead_behind_client_stub.call_rpc_count - end - end - - def test_commit_workspace_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - author = {} - commit_message = "hello world" - paths = ["hello world"] - - commit_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :commit_workspace_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CommitAuthor), request["author"] - assert_equal "hello world", request["commit_message"] - assert_equal ["hello world"], request["paths"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, commit_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.commit_workspace_changes name: name, author: author, commit_message: commit_message, paths: paths do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.commit_workspace_changes ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.commit_workspace_changes({ name: name, author: author, commit_message: commit_message, paths: paths }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.commit_workspace_changes(::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest.new(name: name, author: author, commit_message: commit_message, paths: paths), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, commit_workspace_changes_client_stub.call_rpc_count - end - end - - def test_reset_workspace_changes - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - paths = ["hello world"] - clean = true - - reset_workspace_changes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :reset_workspace_changes, name - assert_kind_of ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest, request - assert_equal "hello world", request["name"] - assert_equal ["hello world"], request["paths"] - assert_equal true, request["clean"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, reset_workspace_changes_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.reset_workspace_changes name: name, paths: paths, clean: clean do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.reset_workspace_changes ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.reset_workspace_changes({ name: name, paths: paths, clean: clean }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.reset_workspace_changes(::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest.new(name: name, paths: paths, clean: clean), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, reset_workspace_changes_client_stub.call_rpc_count - end - end - - def test_fetch_file_diff - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - fetch_file_diff_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :fetch_file_diff, name - assert_kind_of ::Google::Cloud::Dataform::V1::FetchFileDiffRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, fetch_file_diff_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.fetch_file_diff({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.fetch_file_diff workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.fetch_file_diff ::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.fetch_file_diff({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.fetch_file_diff(::Google::Cloud::Dataform::V1::FetchFileDiffRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, fetch_file_diff_client_stub.call_rpc_count - end - end - - def test_query_directory_contents - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - page_size = 42 - page_token = "hello world" - view = :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED - - query_directory_contents_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_directory_contents, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal :DIRECTORY_CONTENTS_VIEW_UNSPECIFIED, request["view"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_directory_contents_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_directory_contents workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_directory_contents ::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_directory_contents({ workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_directory_contents(::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest.new(workspace: workspace, path: path, page_size: page_size, page_token: page_token, view: view), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_directory_contents_client_stub.call_rpc_count - end - end - - def test_search_files - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::SearchFilesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - search_files_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :search_files, name - assert_kind_of ::Google::Cloud::Dataform::V1::SearchFilesRequest, request - assert_equal "hello world", request["workspace"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, search_files_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.search_files workspace: workspace, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.search_files ::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.search_files({ workspace: workspace, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.search_files(::Google::Cloud::Dataform::V1::SearchFilesRequest.new(workspace: workspace, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, search_files_client_stub.call_rpc_count - end - end - - def test_make_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - make_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :make_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::MakeDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, make_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.make_directory({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.make_directory workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.make_directory ::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.make_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.make_directory(::Google::Cloud::Dataform::V1::MakeDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, make_directory_client_stub.call_rpc_count - end - end - - def test_remove_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :remove_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, remove_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.remove_directory({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.remove_directory workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.remove_directory ::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.remove_directory({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.remove_directory(::Google::Cloud::Dataform::V1::RemoveDirectoryRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, remove_directory_client_stub.call_rpc_count - end - end - - def test_move_directory - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_directory_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_directory, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveDirectoryRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["new_path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_directory_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_directory({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_directory workspace: workspace, path: path, new_path: new_path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_directory ::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_directory({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_directory(::Google::Cloud::Dataform::V1::MoveDirectoryRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_directory_client_stub.call_rpc_count - end - end - - def test_read_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReadFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - revision = "hello world" - - read_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :read_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::ReadFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["revision"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, read_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.read_file({ workspace: workspace, path: path, revision: revision }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.read_file workspace: workspace, path: path, revision: revision do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.read_file ::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.read_file({ workspace: workspace, path: path, revision: revision }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.read_file(::Google::Cloud::Dataform::V1::ReadFileRequest.new(workspace: workspace, path: path, revision: revision), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, read_file_client_stub.call_rpc_count - end - end - - def test_remove_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::RemoveFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - - remove_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :remove_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::RemoveFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, remove_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.remove_file({ workspace: workspace, path: path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.remove_file workspace: workspace, path: path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.remove_file ::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.remove_file({ workspace: workspace, path: path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.remove_file(::Google::Cloud::Dataform::V1::RemoveFileRequest.new(workspace: workspace, path: path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, remove_file_client_stub.call_rpc_count - end - end - - def test_move_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::MoveFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - new_path = "hello world" - - move_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :move_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::MoveFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["new_path"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, move_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.move_file({ workspace: workspace, path: path, new_path: new_path }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.move_file workspace: workspace, path: path, new_path: new_path do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.move_file ::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.move_file({ workspace: workspace, path: path, new_path: new_path }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.move_file(::Google::Cloud::Dataform::V1::MoveFileRequest.new(workspace: workspace, path: path, new_path: new_path), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, move_file_client_stub.call_rpc_count - end - end - - def test_write_file - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WriteFileResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - workspace = "hello world" - path = "hello world" - contents = "hello world" - - write_file_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :write_file, name - assert_kind_of ::Google::Cloud::Dataform::V1::WriteFileRequest, request - assert_equal "hello world", request["workspace"] - assert_equal "hello world", request["path"] - assert_equal "hello world", request["contents"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, write_file_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.write_file({ workspace: workspace, path: path, contents: contents }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.write_file workspace: workspace, path: path, contents: contents do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.write_file ::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.write_file({ workspace: workspace, path: path, contents: contents }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.write_file(::Google::Cloud::Dataform::V1::WriteFileRequest.new(workspace: workspace, path: path, contents: contents), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, write_file_client_stub.call_rpc_count - end - end - - def test_list_release_configs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_release_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_release_configs, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_release_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_release_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_release_configs ::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_release_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_release_configs(::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_release_configs_client_stub.call_rpc_count - end - end - - def test_get_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_release_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_release_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_release_config ::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_release_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_release_config(::Google::Cloud::Dataform::V1::GetReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_release_config_client_stub.call_rpc_count - end - end - - def test_create_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - release_config = {} - release_config_id = "hello world" - - create_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] - assert_equal "hello world", request["release_config_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_release_config parent: parent, release_config: release_config, release_config_id: release_config_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_release_config ::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_release_config({ parent: parent, release_config: release_config, release_config_id: release_config_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_release_config(::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest.new(parent: parent, release_config: release_config, release_config_id: release_config_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_release_config_client_stub.call_rpc_count - end - end - - def test_update_release_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ReleaseConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - release_config = {} - - update_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::ReleaseConfig), request["release_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_release_config({ update_mask: update_mask, release_config: release_config }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_release_config update_mask: update_mask, release_config: release_config do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_release_config ::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_release_config({ update_mask: update_mask, release_config: release_config }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_release_config(::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest.new(update_mask: update_mask, release_config: release_config), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_release_config_client_stub.call_rpc_count - end - end - - def test_delete_release_config - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_release_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_release_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_release_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_release_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_release_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_release_config ::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_release_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_release_config(::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_release_config_client_stub.call_rpc_count - end - end - - def test_list_compilation_results - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_compilation_results_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_compilation_results, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_compilation_results_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_compilation_results parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_compilation_results ::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_compilation_results({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_compilation_results(::Google::Cloud::Dataform::V1::ListCompilationResultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_compilation_results_client_stub.call_rpc_count - end - end - - def test_get_compilation_result - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_compilation_result, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetCompilationResultRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_compilation_result({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_compilation_result name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_compilation_result ::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_compilation_result({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_compilation_result(::Google::Cloud::Dataform::V1::GetCompilationResultRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_compilation_result_client_stub.call_rpc_count - end - end - - def test_create_compilation_result - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CompilationResult.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - compilation_result = {} - - create_compilation_result_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_compilation_result, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::CompilationResult), request["compilation_result"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_compilation_result_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_compilation_result parent: parent, compilation_result: compilation_result do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_compilation_result ::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_compilation_result({ parent: parent, compilation_result: compilation_result }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_compilation_result(::Google::Cloud::Dataform::V1::CreateCompilationResultRequest.new(parent: parent, compilation_result: compilation_result), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_compilation_result_client_stub.call_rpc_count - end - end - - def test_query_compilation_result_actions - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - query_compilation_result_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_compilation_result_actions, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_compilation_result_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_compilation_result_actions name: name, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_compilation_result_actions ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_compilation_result_actions({ name: name, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_compilation_result_actions(::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest.new(name: name, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_compilation_result_actions_client_stub.call_rpc_count - end - end - - def test_list_workflow_configs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_workflow_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workflow_configs, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workflow_configs_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workflow_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workflow_configs ::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workflow_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workflow_configs(::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workflow_configs_client_stub.call_rpc_count - end - end - - def test_get_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workflow_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workflow_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workflow_config ::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workflow_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workflow_config(::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workflow_config_client_stub.call_rpc_count - end - end - - def test_create_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_config = {} - workflow_config_id = "hello world" - - create_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] - assert_equal "hello world", request["workflow_config_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workflow_config parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workflow_config ::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workflow_config({ parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workflow_config(::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest.new(parent: parent, workflow_config: workflow_config, workflow_config_id: workflow_config_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workflow_config_client_stub.call_rpc_count - end - end - - def test_update_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - workflow_config = {} - - update_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowConfig), request["workflow_config"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_workflow_config update_mask: update_mask, workflow_config: workflow_config do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_workflow_config ::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_workflow_config({ update_mask: update_mask, workflow_config: workflow_config }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_workflow_config(::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest.new(update_mask: update_mask, workflow_config: workflow_config), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_workflow_config_client_stub.call_rpc_count - end - end - - def test_delete_workflow_config - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workflow_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workflow_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workflow_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workflow_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workflow_config ::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workflow_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workflow_config(::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workflow_config_client_stub.call_rpc_count - end - end - - def test_list_workflow_invocations - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - order_by = "hello world" - filter = "hello world" - - list_workflow_invocations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_workflow_invocations, name - assert_kind_of ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["order_by"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_workflow_invocations_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_workflow_invocations parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_workflow_invocations ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_workflow_invocations({ parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_workflow_invocations(::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest.new(parent: parent, page_size: page_size, page_token: page_token, order_by: order_by, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_workflow_invocations_client_stub.call_rpc_count - end - end - - def test_get_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_workflow_invocation ::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_workflow_invocation(::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_create_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::WorkflowInvocation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - workflow_invocation = {} - - create_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::WorkflowInvocation), request["workflow_invocation"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_workflow_invocation parent: parent, workflow_invocation: workflow_invocation do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_workflow_invocation ::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_workflow_invocation({ parent: parent, workflow_invocation: workflow_invocation }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_workflow_invocation(::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest.new(parent: parent, workflow_invocation: workflow_invocation), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_delete_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_workflow_invocation ::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_workflow_invocation(::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_cancel_workflow_invocation - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_workflow_invocation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_workflow_invocation, name - assert_kind_of ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_workflow_invocation_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_workflow_invocation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_workflow_invocation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_workflow_invocation ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_workflow_invocation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_workflow_invocation(::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_workflow_invocation_client_stub.call_rpc_count - end - end - - def test_query_workflow_invocation_actions - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - page_size = 42 - page_token = "hello world" - - query_workflow_invocation_actions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :query_workflow_invocation_actions, name - assert_kind_of ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest, request - assert_equal "hello world", request["name"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, query_workflow_invocation_actions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.query_workflow_invocation_actions name: name, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.query_workflow_invocation_actions ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.query_workflow_invocation_actions({ name: name, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.query_workflow_invocation_actions(::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest.new(name: name, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, query_workflow_invocation_actions_client_stub.call_rpc_count - end - end - - def test_get_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Config.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::GetConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_config ::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_config(::Google::Cloud::Dataform::V1::GetConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_config_client_stub.call_rpc_count - end - end - - def test_update_config - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataform::V1::Config.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - config = {} - update_mask = {} - - update_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_config, name - assert_kind_of ::Google::Cloud::Dataform::V1::UpdateConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataform::V1::Config), request["config"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_config_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_config({ config: config, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_config config: config, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_config ::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_config({ config: config, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_config(::Google::Cloud::Dataform::V1::UpdateConfigRequest.new(config: config, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_config_client_stub.call_rpc_count - end - end - - def test_get_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - options = {} - - get_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_iam_policy, name - assert_kind_of ::Google::Iam::V1::GetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::GetPolicyOptions), request["options"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_iam_policy({ resource: resource, options: options }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_iam_policy resource: resource, options: options do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_iam_policy ::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_iam_policy({ resource: resource, options: options }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_iam_policy(::Google::Iam::V1::GetIamPolicyRequest.new(resource: resource, options: options), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_iam_policy_client_stub.call_rpc_count - end - end - - def test_set_iam_policy - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::Policy.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - policy = {} - update_mask = {} - - set_iam_policy_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :set_iam_policy, name - assert_kind_of ::Google::Iam::V1::SetIamPolicyRequest, request - assert_equal "hello world", request["resource"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Iam::V1::Policy), request["policy"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, set_iam_policy_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.set_iam_policy resource: resource, policy: policy, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.set_iam_policy ::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.set_iam_policy({ resource: resource, policy: policy, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.set_iam_policy(::Google::Iam::V1::SetIamPolicyRequest.new(resource: resource, policy: policy, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, set_iam_policy_client_stub.call_rpc_count - end - end - - def test_test_iam_permissions - # Create GRPC objects. - grpc_response = ::Google::Iam::V1::TestIamPermissionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - resource = "hello world" - permissions = ["hello world"] - - test_iam_permissions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_iam_permissions, name - assert_kind_of ::Google::Iam::V1::TestIamPermissionsRequest, request - assert_equal "hello world", request["resource"] - assert_equal ["hello world"], request["permissions"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_iam_permissions_client_stub do - # Create client - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_iam_permissions({ resource: resource, permissions: permissions }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_iam_permissions resource: resource, permissions: permissions do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_iam_permissions ::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_iam_permissions({ resource: resource, permissions: permissions }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_iam_permissions(::Google::Iam::V1::TestIamPermissionsRequest.new(resource: resource, permissions: permissions), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_iam_permissions_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataform::V1::Dataform::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::Dataform::V1::Dataform::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb deleted file mode 100644 index 61e4289027f4..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/longrunning/operations_pb" -require "google/longrunning/operations_services_pb" -require "google/longrunning/operations" - -class ::Google::Longrunning::Operations::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Longrunning::Operations::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb deleted file mode 100644 index deeeeee2c568..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_rest_test.rb +++ /dev/null @@ -1,319 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/longrunning/operations_pb" -require "google/longrunning/operations/rest" - - -class ::Google::Longrunning::Operations::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create test objects. - client_result = ::Google::Longrunning::ListOperationsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_list_operations_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_count - end - end - end - - def test_get_operation - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_get_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_operation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_operation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_operation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_count - end - end - end - - def test_delete_operation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_delete_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_operation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_operation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_operation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_count - end - end - end - - def test_cancel_operation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Longrunning::Operations::Rest::ServiceStub.stub :transcode_cancel_operation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.cancel_operation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.cancel_operation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.cancel_operation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Longrunning::Operations::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb b/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb deleted file mode 100644 index 72ed015901db..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/google/longrunning/operations_test.rb +++ /dev/null @@ -1,433 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/longrunning/operations_pb" -require "google/longrunning/operations" - -class ::Google::Longrunning::Operations::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Longrunning::Operations::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Longrunning::Operations::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Longrunning::Operations::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Longrunning::Operations::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb b/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-dataform-v1/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct"